Skip to content

Commit

Permalink
Merge pull request #22 from futuredapp/feature/charles-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelMesicek authored Feb 7, 2025
2 parents 265372b + d8f1f3e commit aea267f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ This project complies with ~~Standard (F0), High (F1), Highest (F2)~~ security s

~~[Project specific standard](www.notion.so)~~

#### Charles Proxy

[Charles Proxy](https://www.charlesproxy.com/documentation/welcome/) is enabled for debug and enterprise builds.

### Additional Scripts

1. `clean` - remove all `build` folders
Expand Down
5 changes: 5 additions & 0 deletions app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application android:networkSecurityConfig="@xml/network_security_config" />
</manifest>
9 changes: 9 additions & 0 deletions app/src/debug/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools">
<base-config>
<trust-anchors>
<certificates src="user" tools:ignore="AcceptsUserCertificates"/>
<certificates src="system"/>
</trust-anchors>
</base-config>
</network-security-config>
5 changes: 5 additions & 0 deletions app/src/enterprise/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application android:networkSecurityConfig="@xml/network_security_config" />
</manifest>
9 changes: 9 additions & 0 deletions app/src/enterprise/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools">
<base-config>
<trust-anchors>
<certificates src="user" tools:ignore="AcceptsUserCertificates"/>
<certificates src="system"/>
</trust-anchors>
</base-config>
</network-security-config>
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ProjectSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ object ProjectSettings {
const val applicationId = "app.futured.androidprojecttemplate"
const val compileSdkVersion = 34
const val targetSdk = 34
const val minSdk = 21
const val minSdk = 29
val versionName = System.getenv("VERSION_NAME") ?: "1.0.0"
val versionCode = System.getenv("BUILD_NUMBER")?.toInt() ?: 1

Expand Down

0 comments on commit aea267f

Please sign in to comment.