Skip to content

Commit

Permalink
Add network security config
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Mar 9, 2019
1 parent 2f004c5 commit e2f7aa8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
<icon density="xhdpi" src="res/android/xhdpi/icon.png" />
<icon density="xxhdpi" src="res/android/xxhdpi/icon.png" />
<icon density="xxxhdpi" src="res/android/xxxhdpi/icon.png" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="res/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
</platform>
<engine name="android" spec="~8.0.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-chromecast" spec="https://github.com/jellyfin/cordova-plugin-chromecast" />
<plugin name="org.jellyfin.mobile" spec="file:src/NativeShell" />
<engine name="android" spec="^8.0.0" />
</widget>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"android"
]
}
}
}
10 changes: 10 additions & 0 deletions res/android/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" >
<trust-anchors>
<!-- Trust user added CAs -->
<certificates src="user" />
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>

0 comments on commit e2f7aa8

Please sign in to comment.