Browse Source

Add usesCleartextTraffic flag to playground application

required to run RN apps on Android 9 devices
Guy Carmeli 5 years ago
parent
commit
8336e2086a
1 changed files with 8 additions and 5 deletions
  1. 8
    5
      playground/android/app/src/main/AndroidManifest.xml

+ 8
- 5
playground/android/app/src/main/AndroidManifest.xml View File

1
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
-          package="com.reactnativenavigation.playground">
1
+<manifest xmlns:tools="http://schemas.android.com/tools"
2
+          package="com.reactnativenavigation.playground"
3
+          xmlns:android="http://schemas.android.com/apk/res/android">
3
 
4
 
4
     <uses-permission android:name="android.permission.INTERNET"/>
5
     <uses-permission android:name="android.permission.INTERNET"/>
5
     <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
6
     <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
9
         android:allowBackup="false"
10
         android:allowBackup="false"
10
         android:icon="@mipmap/ic_launcher"
11
         android:icon="@mipmap/ic_launcher"
11
         android:label="@string/app_name"
12
         android:label="@string/app_name"
12
-        android:theme="@style/AppTheme">
13
+        android:theme="@style/AppTheme"
14
+        android:usesCleartextTraffic="true"
15
+        tools:ignore="GoogleAppIndexingWarning">
13
         <activity
16
         <activity
14
             android:name=".MainActivity"
17
             android:name=".MainActivity"
15
             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
18
             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
16
-            android:windowSoftInputMode="adjustResize"
17
             android:label="@string/app_name"
19
             android:label="@string/app_name"
18
-            android:launchMode="singleTask">
20
+            android:launchMode="singleTask"
21
+            android:windowSoftInputMode="adjustResize">
19
             <intent-filter>
22
             <intent-filter>
20
                 <action android:name="android.intent.action.MAIN"/>
23
                 <action android:name="android.intent.action.MAIN"/>
21
                 <category android:name="android.intent.category.LAUNCHER"/>
24
                 <category android:name="android.intent.category.LAUNCHER"/>