Skip to content

Instantly share code, notes, and snippets.

@RyanDsilva
Created June 26, 2022 09:22
Show Gist options
  • Save RyanDsilva/24b6fd5efc3db80c5d8c4e797ebf6c64 to your computer and use it in GitHub Desktop.
Save RyanDsilva/24b6fd5efc3db80c5d8c4e797ebf6c64 to your computer and use it in GitHub Desktop.
Android Network Config
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.ryandsilva.flutter_app">
<application
android:label="flutter_app"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:networkSecurityConfig="@xml/security_config">
...
...
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">ryandsilva.dev</domain>
<trust-anchors>
<certificates src="@raw/ryandsilva-dev"/>
</trust-anchors>
</domain-config>
</network-security-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment