|
|
@@ -1,6 +1,10 @@
|
|
1
|
1
|
apply plugin: 'com.android.application'
|
|
2
|
2
|
|
|
3
|
|
-def dropboxAppKey = ""
|
|
|
3
|
+def parser = new XmlSlurper(false, false, true)
|
|
|
4
|
+parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false)
|
|
|
5
|
+def plist = parser.parse('../ios/app/src/Info.plist')
|
|
|
6
|
+def dbScheme = plist.dict.array.dict.array.string.find{string-> string.text().startsWith('db-')}
|
|
|
7
|
+def dropboxAppKey = dbScheme?.text() - 'db-'
|
|
4
|
8
|
|
|
5
|
9
|
android {
|
|
6
|
10
|
compileSdkVersion rootProject.ext.compileSdkVersion
|