From 768092bba743c93aaf9c07e75cf908b62d7e7e6c Mon Sep 17 00:00:00 2001 From: Sampo Juustila Date: Wed, 21 Apr 2021 02:03:41 +0300 Subject: [PATCH] fix(android): read minSdkVersion from root project (#1960) --- android/build.gradle | 2 +- android/gradle.properties | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c4f24c0..00e75f9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -40,7 +40,7 @@ android { compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') buildToolsVersion getExtOrDefault('buildToolsVersion') defaultConfig { - minSdkVersion 16 + minSdkVersion getExtOrIntegerDefault('minSdkVersion') targetSdkVersion getExtOrIntegerDefault('targetSdkVersion') versionCode 1 versionName "1.0" diff --git a/android/gradle.properties b/android/gradle.properties index b45b8c8..76ae422 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,4 +1,5 @@ ReactNativeWebView_kotlinVersion=1.3.50 ReactNativeWebView_compileSdkVersion=29 ReactNativeWebView_buildToolsVersion=29.0.3 -ReactNativeWebView_targetSdkVersion=28 \ No newline at end of file +ReactNativeWebView_targetSdkVersion=28 +ReactNativeWebView_minSdkVersion=16 \ No newline at end of file