File tree 3 files changed +32
-1
lines changed 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<application
7
7
android : usesCleartextTraffic =" true"
8
+ tools : remove =" android:networkSecurityConfig"
8
9
tools : ignore =" GoogleAppIndexingWarning"
9
10
tools : targetApi =" 28" >
10
11
<activity android : name =" com.facebook.react.devsupport.DevSettingsActivity" />
Original file line number Diff line number Diff line change 67
67
android : allowBackup =" true"
68
68
android : icon =" @mipmap/ic_launcher"
69
69
android : label =" @string/app_name"
70
- android : theme =" @style/AppTheme" >
70
+ android : theme =" @style/AppTheme"
71
+ android : networkSecurityConfig =" @xml/network_security_config"
72
+ >
71
73
<activity
72
74
android : name =" .MainActivity"
73
75
android : exported =" true"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <network-security-config >
3
+ <!-- For reference on this file's semantics:
4
+ https://developer.android.com/training/articles/security-config#FileFormat -->
5
+ <base-config >
6
+ <!-- If the user has configured additional CAs on the device, trust those
7
+ too. This can be useful for an internal Zulip server in a corporate
8
+ or institutional environment, and was a recurring user request:
9
+ https://github.com/zulip/zulip-mobile/issues/3312 -->
10
+ <trust-anchors >
11
+ <certificates src =" system" />
12
+ <certificates src =" user" />
13
+ </trust-anchors >
14
+ </base-config >
15
+ <domain-config >
16
+ <!-- But revert to the default, stricter behavior — trusting only the
17
+ system CA list — where we know we can, which means for domains where
18
+ we know a legitimate cert will always come from a widely-trusted CA.
19
+ Specifically, we know this is the case for Zulip Cloud and other
20
+ domains operated by the core Zulip developers at Kandra Labs. -->
21
+ <domain includeSubdomains =" true" >zulipchat.com</domain >
22
+ <domain includeSubdomains =" true" >zulip.com</domain >
23
+ <domain includeSubdomains =" true" >zulip.org</domain >
24
+ <trust-anchors >
25
+ <certificates src =" system" />
26
+ </trust-anchors >
27
+ </domain-config >
28
+ </network-security-config >
You can’t perform that action at this time.
0 commit comments