Skip to content

Commit

Permalink
Add network_security_config.xml for Proxyman testing in demo app (#1679)
Browse files Browse the repository at this point in the history
* Add network_security_config.xml for Proxyman testing in demo app

* Add mavenLocal to example app
  • Loading branch information
priettt authored Nov 15, 2024
1 parent 94b6f38 commit cc98016
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/ExampleApp/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.ExampleApp"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
<certificates src="system" />
</trust-anchors>
</debug-overrides>

<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>
2 changes: 2 additions & 0 deletions examples/ExampleApp/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pluginManagement {
}
}
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
}
Expand All @@ -16,6 +17,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal()
}
}

Expand Down

0 comments on commit cc98016

Please sign in to comment.