Skip to content

Commit ac5ff41

Browse files
MarcosSargeschristopherdro
authored andcommitted
Update build.gradle (#125)
1 parent 8993d30 commit ac5ff41

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

android/build.gradle

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,40 @@
11

22
buildscript {
3+
ext {
4+
buildToolsVersion = "28.0.3"
5+
minSdkVersion = 16
6+
compileSdkVersion = 28
7+
targetSdkVersion = 28
8+
supportLibVersion = "28.0.0"
9+
}
310
repositories {
11+
google()
412
jcenter()
513
}
6-
714
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.3.1'
15+
classpath 'com.android.tools.build:gradle:3.3.1'
16+
17+
// NOTE: Do not place your application dependencies here; they belong
18+
// in the individual module build.gradle files
919
}
1020
}
1121

1222

1323
apply plugin: 'com.android.library'
1424

1525
android {
16-
compileSdkVersion 25
17-
buildToolsVersion "25.0.1"
26+
compileSdkVersion rootProject.ext.compileSdkVersion
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
31+
32+
compileSdkVersion 26
33+
compileSdkVersion rootProject.ext.compileSdkVersion
1834

1935
defaultConfig {
20-
minSdkVersion 16
21-
targetSdkVersion 22
36+
minSdkVersion rootProject.ext.minSdkVersion
37+
targetSdkVersion rootProject.ext.targetSdkVersion
2238
versionCode 1
2339
versionName "1.0"
2440
ndk {
@@ -33,6 +49,6 @@ repositories {
3349

3450

3551
dependencies {
36-
compile 'com.tom_roush:pdfbox-android:1.8.10.0'
37-
compile 'com.facebook.react:react-native:+'
52+
implementation 'com.tom_roush:pdfbox-android:1.8.10.0'
53+
implementation 'com.facebook.react:react-native:+'
3854
}

0 commit comments

Comments
 (0)