Ver código fonte

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

master
hristoterezov 7 anos atrás
pai
commit
ca600928f5
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      android/app/build.gradle

+ 5
- 1
android/app/build.gradle Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar