Browse Source

Support Android 9.0 Pie and update buildToolsVersion (#3995)

Antonio Moreno Valls 6 years ago
parent
commit
e61b3cbc1e
2 changed files with 14 additions and 6 deletions
  1. 5
    5
      android/app/build.gradle
  2. 9
    1
      android/build.gradle

+ 5
- 5
android/app/build.gradle View File

2
 apply from: '../prepare-robolectric.gradle'
2
 apply from: '../prepare-robolectric.gradle'
3
 
3
 
4
 android {
4
 android {
5
-    compileSdkVersion 26
6
-    buildToolsVersion '26.0.2'
5
+    compileSdkVersion 27
6
+    buildToolsVersion '27.0.3'
7
 
7
 
8
     defaultConfig {
8
     defaultConfig {
9
         minSdkVersion 16
9
         minSdkVersion 16
10
-        targetSdkVersion 23
10
+        targetSdkVersion 27
11
         versionCode 1
11
         versionCode 1
12
         versionName "1.0"
12
         versionName "1.0"
13
     }
13
     }
47
 dependencies {
47
 dependencies {
48
     compile fileTree(dir: "libs", include: ["*.jar"])
48
     compile fileTree(dir: "libs", include: ["*.jar"])
49
 
49
 
50
-	compile 'com.android.support:design:25.3.1'
51
-    compile "com.android.support:appcompat-v7:25.3.1"
50
+    compile 'com.android.support:design:27.1.1'
51
+    compile "com.android.support:appcompat-v7:27.1.1"
52
 
52
 
53
     // node_modules
53
     // node_modules
54
     compile "com.facebook.react:react-native:+"
54
     compile "com.facebook.react:react-native:+"

+ 9
- 1
android/build.gradle View File

3
 buildscript {
3
 buildscript {
4
     repositories {
4
     repositories {
5
         jcenter()
5
         jcenter()
6
+        maven {
7
+            url 'https://maven.google.com/'
8
+            name 'Google'
9
+        }
6
     }
10
     }
7
     dependencies {
11
     dependencies {
8
         classpath 'com.android.tools.build:gradle:2.2.2'
12
         classpath 'com.android.tools.build:gradle:2.2.2'
20
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
24
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21
             url "$rootDir/../node_modules/react-native/android"
25
             url "$rootDir/../node_modules/react-native/android"
22
         }
26
         }
27
+        maven {
28
+            url 'https://maven.google.com/'
29
+            name 'Google'
30
+        }
23
     }
31
     }
24
-}
32
+}