mwaylabs/Espresso — pull request #86 by siamak-haschemi (2012-05-20 01:28:15+00:00)
Title: Detox

My proposal for Issue #85 'Add more configuration options for the AndroidManifest.xml'.

- The idea is to allow arbritary json-data in the 'manifest' section of config.json, which is converted later to XML.

- In order to avoid writing the complete AndroidManifest in the config.json, a default-manifest.json contains the default data. The json data of the 'manifest' section in the config.json gets MERGED with the default config.

- pretty prints the resulting XML

With this extension, I can write arbritary manifest configs:

...
"package":{
"android":{
"method":"PhoneGap",
"os":"Android",
"sdk":"android-15",
"package":"com.fourtytwocom.mobile",
"activity":"FourtyTwoMobile",
"mode":"release",
"keystore":"release-key.keystore",
"keyalias":"release-key",
"storepass":"******",
"manifest":{
"-android:versionCode":"1",
"-android:versionName":"0.0.1",
"uses-permission":[
{ "-android:name":"android.permission.READ_CONTACTS" },
{ "-android:name":"android.permission.WRITE_CONTACTS" }
],
"uses-sdk":{ "-android:minSdkVersion":"10" }
},
"plugins":{
},
"plists":{
"PhoneGap":{
"ExternalHosts":["*"]
}
},
"autoScaleIcon":true
}
}
...