Closed speigg closed 8 years ago
you need to cd into the bin
folder and execute npm install
there. I also needed to do a npm install cordova
so that it can resolve the util module.
so:
$ cd plugins/cordova-plugin-app-preferences/bin/
$ npm install
$ npm install cordova
$ cd ../../../
now I get:
$ ./plugins/cordova-plugin-app-preferences/bin/build-app-settings.js
will push strings array {"titles":["English (US)","English (UK)"],"values":["en-us","en-gb"]}
you must insert following xml node into <application> section of your Manifest:
<activity android:name="me.apla.cordova.AppPreferencesActivity"></activity>
ios settings bundle was successfully generated
android preferences file was successfully generated
Segmentation fault: 11
Using #50, Build can be done using Cordova CLI without requiring you to do:
$ cd plugins/cordova-plugin-app-preferences/bin/
$ npm install
$ npm install cordova
$ cd ../../../
$ node plugins/cordova-plugin-app-preferences/bin/build-app-settings.js
but only
$ cordova prepare
App settings now (finally!) generated at prepare