Browse Source

android: update build and target SDK versions

Note that Android 9 Pie (API 28) disallows HTTP requests by default, so an
exception was needed in the app in order for the Metro bundler to work in debug
mode.
j8
Saúl Ibarra Corretgé 6 years ago
parent
commit
0fc69416d4

+ 1
- 0
android/app/src/main/AndroidManifest.xml View File

@@ -6,6 +6,7 @@
6 6
       android:icon="@mipmap/ic_launcher"
7 7
       android:label="@string/app_name"
8 8
       android:name=".MainApplication"
9
+      android:networkSecurityConfig="@xml/network_security_config"
9 10
       android:theme="@style/AppTheme">
10 11
     <activity
11 12
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize"

+ 5
- 0
android/app/src/main/res/xml/network_security_config.xml View File

@@ -0,0 +1,5 @@
1
+<network-security-config>
2
+    <domain-config cleartextTrafficPermitted="true">
3
+        <domain includeSubdomains="true">localhost</domain>
4
+    </domain-config>
5
+</network-security-config>

+ 5
- 5
android/build.gradle View File

@@ -9,7 +9,7 @@ buildscript {
9 9
         jcenter()
10 10
     }
11 11
     dependencies {
12
-        classpath 'com.android.tools.build:gradle:3.1.4'
12
+        classpath 'com.android.tools.build:gradle:3.2.1'
13 13
         classpath 'com.google.gms:google-services:3.2.1'
14 14
 
15 15
         // NOTE: Do not place your application dependencies here; they belong
@@ -172,11 +172,11 @@ allprojects {
172 172
 }
173 173
 
174 174
 ext {
175
-    buildToolsVersion = "27.0.3"
176
-    compileSdkVersion = 27
175
+    buildToolsVersion = "28.0.3"
176
+    compileSdkVersion = 28
177 177
     minSdkVersion    = 21
178
-    targetSdkVersion = 26
179
-    supportLibVersion = "27.1.1"
178
+    targetSdkVersion = 28
179
+    supportLibVersion = "28.0.0"
180 180
 
181 181
     // The Maven artifact groupdId of the third-party react-native modules which
182 182
     // Jitsi Meet SDK for Android depends on and which are not available in

+ 2
- 2
android/gradle/wrapper/gradle-wrapper.properties View File

@@ -1,6 +1,6 @@
1
-#Fri Sep 08 10:42:14 CEST 2017
1
+#Wed Dec 19 12:02:47 CET 2018
2 2
 distributionBase=GRADLE_USER_HOME
3 3
 distributionPath=wrapper/dists
4 4
 zipStoreBase=GRADLE_USER_HOME
5 5
 zipStorePath=wrapper/dists
6
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip

Loading…
Cancel
Save