Skip to content

Commit

Permalink
Add network_security_config.xml to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Jan 5, 2024
1 parent 457d2e3 commit acf22a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@
</config-file>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true" />
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />

<resource-file src="build-extras.gradle" target="build-extras.gradle" />
<resource-file src="etc/android-notification-icons/ic_stat_notification.png" target="app/src/main/res/drawable/ic_stat_notification.png" />
<resource-file src="etc/android-tv-banner/banner.png" target="res/drawable/banner.png" />
Expand Down
4 changes: 4 additions & 0 deletions resources/android/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>

0 comments on commit acf22a8

Please sign in to comment.