From 7eb8adbec7f57a91736f144b92724e4c9952a707 Mon Sep 17 00:00:00 2001 From: Volodymyr Iatsyshyn Date: Tue, 16 Oct 2018 16:05:49 +0300 Subject: [PATCH 1/2] Added support of latest build tools --- android/build.gradle | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 7caf7e1..799e7ee 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,3 +1,7 @@ +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + buildscript { repositories { jcenter() @@ -11,12 +15,14 @@ buildscript { apply plugin: 'com.android.library' android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion safeExtGet('compileSdkVersion', 23) + //noinspection GradleDependency + buildToolsVersion safeExtGet('buildToolsVersion', '23.0.1') defaultConfig { - minSdkVersion 16 - targetSdkVersion 23 + minSdkVersion safeExtGet('minSdkVersion', 16) + //noinspection OldTargetApi + targetSdkVersion safeExtGet('targetSdkVersion', 23) versionCode 1 versionName "1.0" } @@ -36,4 +42,4 @@ repositories { dependencies { compile 'com.facebook.react:react-native:+' -} \ No newline at end of file +} From 6b15384e4a18d397ca22727764b89066bb1b2e80 Mon Sep 17 00:00:00 2001 From: ms Date: Wed, 18 Dec 2019 14:28:13 +0100 Subject: [PATCH 2/2] Allow testing for any appid on android,removed unnecessary log messages. --- app-installed-checker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app-installed-checker.js b/app-installed-checker.js index e08be30..4515545 100644 --- a/app-installed-checker.js +++ b/app-installed-checker.js @@ -21,11 +21,9 @@ class AppInstalledChecker { Linking .canOpenURL(proto + '://' + query || '') .then((isInstalled) => { - console.log('isInstalled', isInstalled); resolve(isInstalled); }) .catch((err) => { - console.log('erroer', err); reject(err); }); }); @@ -39,7 +37,7 @@ class AppInstalledChecker { } static isAppInstalledAndroid(key) { - return this.checkPackageName(APP_LIST[key] != null ? APP_LIST[key].pkgName : key); + return this.checkPackageName(key); } static isAppInstalledIOS(key) {