Skip to content

Commit

Permalink
fix: Add network security config
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos committed Apr 2, 2021
1 parent 4252070 commit daa4670
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="tech.relaycorp.gateway.SYNC" />

<application>
<application
android:networkSecurityConfig="@xml/network_security_config"
tools:ignore="UnusedAttribute"
>
<receiver
android:name=".background.NotificationBroadcastReceiver"
tools:ignore="ExportedReceiver">
Expand Down
7 changes: 7 additions & 0 deletions lib/src/main/res/xml/network_security_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>
<!-- Allow local cleartext networking with PDC Server -->
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">127.0.0.1</domain>
</domain-config>
</network-security-config>

0 comments on commit daa4670

Please sign in to comment.