https://github.com/rhildred/cordovalogcatbugreport
uploads the bug report into a bitbucket issue
https://github.com/rhildred/cordovalogcatbugreport
Last synced: about 1 year ago
JSON representation
uploads the bug report into a bitbucket issue
- Host: GitHub
- URL: https://github.com/rhildred/cordovalogcatbugreport
- Owner: rhildred
- Created: 2016-03-17T17:29:19.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-04-19T01:19:46.000Z (over 10 years ago)
- Last Synced: 2025-02-17T12:45:21.757Z (over 1 year ago)
- Language: Java
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cordova Bug Report Plugin
Simple plugin that takes a bitbucket repository and returns an issueid in a JSON structure. This is based on a ["hello world" plugin](https://github.com/don/cordova-plugin-hello) that we also looked at in class. I have used ionic rather than cordova, so that there is a bit of a user interface.
## Using
Clone the plugin
$ git clone https://github.com/rhildred/cordovaLogcatBugReport.git
Create a new Ionic Project
$ ionic start bugreporttest
Install the plugin
$ cd bugreporttest
$ ionic plugin add ../cordovaLogcatBugReport
Edit `www/templates/tab-dash.html` and add the following button `Send Bug Report`. Then in `www/js/controllers.js` add the following code
```js
.controller('DashCtrl', function($scope) {
$scope.sendBugReport = function(){
var success = function(message) {
alert(message);
}
var failure = function() {
alert("Error calling BugReport Plugin");
}
bugreport.report("rhildred/logcattest", success, failure);
};
})
```
Install Android platform
ionic platform add android
Run the code
ionic run android
## More Info
For more information on setting up Cordova see [the documentation](http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface)
For more info on plugins see the [Plugin Development Guide](http://cordova.apache.org/docs/en/4.0.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide)