Skip to content

Commit 3b06815

Browse files
dulmandakhgrabbou
authored andcommitted
allow HTTP in debug builds (facebook#24066)
Summary: It allows HTTP connections in debug builds, and requires no configuration compared to previous/current solution where you need to edit config file to test on device. Consulted with Salakar about this. [Android] [Changed] - Allow HTTP in debug builds Pull Request resolved: facebook#24066 Differential Revision: D14540255 Pulled By: cpojer fbshipit-source-id: f1239154c27c36c21c9b080a826f8b1d0eb0fc7d
1 parent becc154 commit 3b06815

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

template/android/app/src/debug/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
66

7-
<application tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" android:networkSecurityConfig="@xml/react_native_config" />
8-
</manifest>
7+
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
8+
</manifest>

template/android/app/src/debug/res/xml/react_native_config.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)