Re: Android Plugin Resource Control

2014-01-01 Thread Ross Gerbasi
Alrighty I can get on board with the separate xml file but I was not concerned about the android build system parsing the res file I am worried about cordova setting the res file prior to building. What would be the user workflow for this? Ideally it needs to be something like - run add plugin - a

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
I am not sure why you need to modify my_val at build time. Could you please change your example so that you really need this at build time? If you want a "product name displayed in your glass app then you could use the 0) { for (String key : extras.keySet()) { Log.d(TAG, "KEY=" + ke

Re: Android Plugin Resource Control

2014-01-01 Thread Ross Gerbasi
That would work great if there was a way to set the property I need at runtime. Currently there does not seem to be a way to set the app launch voice trigger string at runtime. Probably because Glass needs this trigger before your application even launches. This trigger will show up in a menu insid

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
Didn't you solve this with --variable? I never used --variable myself. -Axel Am 01.01.2014 18:24 schrieb "Ross Gerbasi" : > That would work great if there was a way to set the property I need at > runtime. Currently there does not seem to be a way to set the app launch > voice trigger string at ru

Re: Android Plugin Resource Control

2014-01-01 Thread Ross Gerbasi
Variable was a mess. You can add a variable when you add a plugin so if you worked this way all was ok -- create cordova project -- add android platform -- add plugin with variable but if you do it on a different order like -- create cordova project -- add plugin with variable -- add android pla

Re: Android Plugin Resource Control

2014-01-01 Thread Axel Nennker
I don't understand the "other users"-part. Not sure about the "mess" part. I looked at the plugman code and it looks ok. The plugin in /plugins/glass_root has the modified resource files with "OK Glass" or whatever. It should not matter whether you add the plugin before or after the platform. Cord

Re: Android Plugin Resource Control

2014-01-01 Thread Ross Gerbasi
Other users would be team members that are working on the project with you via git or svn or something. Just to confirm if you run cordova platform remove android in your example then run cordova platform add android again it applies the variable to the new android project? So the whole thing wou

Re: Moving .cordova/config.json -> cordova.json

2014-01-01 Thread Gorkem Ercan
There is also another proposal to move config.xml out of www. Can we merge this two moves and 1. remove .cordova 2. remove config.json 3. move config.xml to root 4. rename config.xml to cordova.xml AFAIK config,json does not carry any information that is not already available on the config.xml. Si