From ca600928f5ebd613141bdf71ddd8c5518e6ed4e6 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 26 Sep 2018 16:48:59 -0500 Subject: [PATCH] feat(build.gradle): Use the Dropbox app key specified in Info.plist. --- android/app/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 261bfb5e9c..6133ded2f5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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