Browse Source

feat(build.gradle): Use the Dropbox app key specified in Info.plist.

master
hristoterezov 7 years ago
parent
commit
ca600928f5
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      android/app/build.gradle

+ 5
- 1
android/app/build.gradle View File

1
 apply plugin: 'com.android.application'
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
 android {
9
 android {
6
     compileSdkVersion rootProject.ext.compileSdkVersion
10
     compileSdkVersion rootProject.ext.compileSdkVersion

Loading…
Cancel
Save