File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ android {
4848 debug {
4949 applicationIdSuffix = " .debug"
5050 resValue(" string" , " application_name" , " Droid-ify-Debug" )
51+ resValue(" string" , " cleartext_allowed" , " true" )
5152 }
5253 release {
5354 isMinifyEnabled = true
5455 isShrinkResources = true
5556 resValue(" string" , " application_name" , " Droid-ify" )
57+ resValue(" string" , " cleartext_allowed" , " false" )
5658 proguardFiles(
5759 getDefaultProguardFile(" proguard-android-optimize.txt" ),
5860 " proguard.pro" ,
@@ -62,6 +64,7 @@ android {
6264 initWith(getByName(" debug" ))
6365 applicationIdSuffix = " .alpha"
6466 resValue(" string" , " application_name" , " Droid-ify Alpha" )
67+ resValue(" string" , " cleartext_allowed" , " false" )
6568 proguardFiles(
6669 getDefaultProguardFile(" proguard-android-optimize.txt" ),
6770 " proguard.pro" ,
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22
33<network-security-config >
4- <base-config cleartextTrafficPermitted =" true " >
4+ <base-config cleartextTrafficPermitted =" @string/cleartext_allowed " >
55 <trust-anchors >
66 <!-- Trust preinstalled CAs -->
77 <certificates src =" system" />
You can’t perform that action at this time.
0 commit comments