Skip to content

Commit

Permalink
feat: support user certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
lxjwlt committed Aug 15, 2022
1 parent 79c4e43 commit 0987490
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ tests

# attributions
licenseInfos.json

# map
*.map
15 changes: 11 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,19 @@ android {
}

signingConfigs {
// release {
// storeFile file('../keystores/release.keystore')
// storePassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
// keyAlias System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
// keyPassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
// }
release {
storeFile file('../keystores/release.keystore')
storePassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
keyAlias System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
keyPassword System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}

debug {
storeFile file('debug.keystore')
storePassword 'android'
Expand Down
7 changes: 6 additions & 1 deletion android/app/src/main/res/xml/react_native_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
<domain includeSubdomains="false">10.0.2.2</domain>
<domain includeSubdomains="false">10.0.3.2</domain>
</domain-config>
<base-config cleartextTrafficPermitted="false" />
<base-config cleartextTrafficPermitted="false">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>

0 comments on commit 0987490

Please sign in to comment.