Skip to content

Commit 9b2a5f2

Browse files
gnpricechrisbobbe
authored andcommitted
android: Trust user-supplied CAs, take 2
The previous attempt at this (cffb112, #474) set the configuration used by the HTTP implementation from the Android SDK, and by some third-party HTTP implementations. But in the bulk of the app's code, we use the HTTP implementation from the Dart standard library, and by default that does not consult the Android configuration. Happily, Flutter has an opt-in feature to apply the same configuration to the Dart standard library: https://chat.zulip.org/#narrow/stream/48-mobile/topic/flutter.3A.20user-added.20certs/near/1716845 So use that. Fixes: #461
1 parent 423600d commit 9b2a5f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<data android:scheme="zulip" android:host="login" />
3939
</intent-filter>
4040
</activity>
41+
<meta-data
42+
android:name="io.flutter.network-policy"
43+
android:resource="@xml/network_security_config" />
4144
<!-- Don't delete the meta-data below.
4245
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
4346
<meta-data

0 commit comments

Comments
 (0)