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

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

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
         jcenter()
9
         jcenter()
10
     }
10
     }
11
     dependencies {
11
     dependencies {
12
-        classpath 'com.android.tools.build:gradle:3.1.4'
12
+        classpath 'com.android.tools.build:gradle:3.2.1'
13
         classpath 'com.google.gms:google-services:3.2.1'
13
         classpath 'com.google.gms:google-services:3.2.1'
14
 
14
 
15
         // NOTE: Do not place your application dependencies here; they belong
15
         // NOTE: Do not place your application dependencies here; they belong
172
 }
172
 }
173
 
173
 
174
 ext {
174
 ext {
175
-    buildToolsVersion = "27.0.3"
176
-    compileSdkVersion = 27
175
+    buildToolsVersion = "28.0.3"
176
+    compileSdkVersion = 28
177
     minSdkVersion    = 21
177
     minSdkVersion    = 21
178
-    targetSdkVersion = 26
179
-    supportLibVersion = "27.1.1"
178
+    targetSdkVersion = 28
179
+    supportLibVersion = "28.0.0"
180
 
180
 
181
     // The Maven artifact groupdId of the third-party react-native modules which
181
     // The Maven artifact groupdId of the third-party react-native modules which
182
     // Jitsi Meet SDK for Android depends on and which are not available in
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
-#Fri Sep 08 10:42:14 CEST 2017
1
+#Wed Dec 19 12:02:47 CET 2018
2
 distributionBase=GRADLE_USER_HOME
2
 distributionBase=GRADLE_USER_HOME
3
 distributionPath=wrapper/dists
3
 distributionPath=wrapper/dists
4
 zipStoreBase=GRADLE_USER_HOME
4
 zipStoreBase=GRADLE_USER_HOME
5
 zipStorePath=wrapper/dists
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