Skip to content

Commit

Permalink
Add network config
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Jan 23, 2025
1 parent 824cfa5 commit 0c7572b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_config"
android:supportsRtl="true"
android:theme="@style/Theme.Simple"
tools:ignore="AllowBackup,DataExtractionRules,GoogleAppIndexingWarning,LockedOrientationActivity"
tools:replace="android:allowBackup">
tools:replace="android:allowBackup"
tools:targetApi="n">

<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/xml/network_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
</network-security-config>

0 comments on commit 0c7572b

Please sign in to comment.