Skip to content

Commit

Permalink
remove coffeescript, remove docs, add windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Jul 1, 2016
1 parent 4ddf9b1 commit f1c6268
Show file tree
Hide file tree
Showing 29 changed files with 85 additions and 15,078 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

- 1.2.0
- Remove coffeescript to remove barrier of entry to contributions
- Remove docs generation, just use the readme instead
- Improve readme
- Add Windows support from PR #120
- Fix JSON parse for Android 2.x as per PR #73
- 1.1.12
- Bump version to be higher than the previous `cordova-plugin-apprate` on the NPM registry
- Clean up readme
Expand Down
54 changes: 54 additions & 0 deletions Gruntfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
module.exports = function(grunt) {
var config = {
app: {
name: 'AppRateDemoProject',
path: '../'
}
};

grunt.initConfig({
config: config,
pkg: grunt.file.readJSON('package.json'),
cordovacli: {
options: {
path: '<%= config.app.path %><%= config.app.name %>/'
},
create: {
options: {
command: ['create', 'platform'],
platforms: ['ios', 'android'],
id: 'org.pushandplay.cordova.<%= config.app.name %>',
name: '<%= config.app.name %>',
args: ['--link-to', 'www_app']
}
},
plugin: {
options: {
command: 'plugin',
action: 'add',
plugins: ['../cordova-plugin-apprate']
}
},
prepare: {
options: {
command: ['prepare'],
platforms: ['ios', 'android']
}
},
run_ios: {
options: {
command: 'run',
platforms: ['ios'],
args: ['--debug']
}
}
}
});

grunt.loadNpmTasks('grunt-cordovacli');
grunt.registerTask('default', ['']);
grunt.registerTask('release', ['default']);
grunt.registerTask('app:create', ['cordovacli:create', 'cordovacli:plugin', 'cordovacli:prepare']);
grunt.registerTask('app:prepare', ['cordovacli:prepare']);
return grunt.registerTask('app:run_ios', ['default', 'cordovacli:run_ios']);
};
60 changes: 0 additions & 60 deletions Gruntfile.coffee

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This plugin provide the rate this app functionality into your Cordova/Phonegap a

- iOS
- Android
- Windows (experimental)
- Blackberry (experimental)
- Windows8 (experimental)

Expand All @@ -37,7 +38,7 @@ Phonegap / Cordova 3.0.0 or later
All `%@` patterns in customLocale object will be automatically replaced to your application title

#### Available preferences options ####

```
useLanguage {String} null - custom BCP 47 language tag
displayAppName {String} '' - custom application title
promptAgainForEachNewVersion {Boolean} true - show dialog again when application version will be updated
Expand All @@ -48,18 +49,21 @@ callbacks.onButtonClicked {Function} null - call back function. called when user
callbacks.onRateDialogShow {Function} null - call back function. called when rate-dialog showing
storeAppURL.ios {String} null - application id in AppStore
storeAppURL.android {String} null - application URL in GooglePlay
storeAppURL.windows {String} null - application URL in Windows Store
storeAppURL.blackberry {String} null - application URL in AppWorld
storeAppURL.windows8 {String} null - application URL in WindowsStore
customLocale {Object} null - custom locale object
```

## Examples ##
## Examples ##

#### Simple setup and call ####

```javascript
AppRate.preferences.storeAppURL = {
ios: '<my_app_id>',
android: 'market://details?id=<package_name>',
windows: 'ms-windows-store://pdp/?ProductId=<the apps Store ID>',
blackberry: 'appworld://content/[App Id]/',
windows8: 'ms-windows-store:Review?name=<the Package Family Name of the application>'
};
Expand Down
159 changes: 0 additions & 159 deletions docs/alphabetical_index.html

This file was deleted.

Loading

0 comments on commit f1c6268

Please sign in to comment.