Skip to content

Commit 0d59b74

Browse files
cristiantxzxcpoiu
authored andcommitted
Added Android Build Support for newer React Native Versions
1 parent 043cb43 commit 0d59b74

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

android/build.gradle

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

3+
def _ext = rootProject.ext
4+
5+
def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 27
6+
def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '27.0.3'
7+
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16
8+
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 27
9+
310
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.1"
11+
compileSdkVersion _compileSdkVersion
12+
buildToolsVersion _buildToolsVersion
613

714
defaultConfig {
8-
minSdkVersion 16
9-
targetSdkVersion 22
15+
minSdkVersion _minSdkVersion
16+
targetSdkVersion _targetSdkVersion
1017
versionCode 1
1118
versionName "1.0"
1219
}

0 commit comments

Comments
 (0)