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

This commit is contained in:
hristoterezov 2018-09-26 16:48:59 -05:00 committed by Любомир Маринов
parent 60decf7692
commit ca600928f5
1 changed files with 5 additions and 1 deletions

View File

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