Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit c876971

Browse files
Added compatibility with latest RN version(0.56) (#1342)
* Added using project-wide properties. * Upgrade compileSdkVersion to 26 version * Upgrade buildToolsVersion to 26.0.3 version * Upgrade targedSdkVersion to 26 version
1 parent 3069ba3 commit c876971

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

android/app/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
apply plugin: "com.android.library"
22

3+
def DEFAULT_COMPILE_SDK_VERSION = 26
4+
def DEFAULT_BUILD_TOOLS_VERSION = "26.0.3"
5+
def DEFAULT_TARGET_SDK_VERSION = 26
6+
def DEFAULT_MIN_SDK_VERSION = 16
7+
38
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.1"
9+
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10+
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
611

712
defaultConfig {
8-
minSdkVersion 16
9-
targetSdkVersion 22
13+
minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
14+
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1015
versionCode 1
1116
versionName "1.0"
1217
}

0 commit comments

Comments
 (0)