Skip to content

Commit

Permalink
feat(inji-398): enable cleartextTrafficPermitted in debug mode (mosip…
Browse files Browse the repository at this point in the history
…#895)

Signed-off-by: anil_majji <[email protected]>
  • Loading branch information
tilak-puli authored and Anil-kumar-Majji committed Oct 11, 2023
1 parent 68e77cf commit b7f1c03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
<!-- from Android 12, Location permission isn't required as we aren't using it to determine location -->

<application tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" >
<application tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" android:networkSecurityConfig="@xml/network_security_config">>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
</application>

</manifest>
9 changes: 9 additions & 0 deletions android/app/src/debug/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<!-- deny cleartext traffic for React Native packager ips in release -->
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">10.0.2.2</domain>
<domain includeSubdomains="true">10.0.3.2</domain>
</domain-config>
</network-security-config>

0 comments on commit b7f1c03

Please sign in to comment.