diff --git a/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java b/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java index 2aee56dee94e37d4f0d1cdc8b96dc5d952d96922..3df6fe097f81f3cbf43c3b92a78dd64288db7439 100644 --- a/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java +++ b/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java @@ -216,10 +216,9 @@ public class FlutterLoader { } shellArgs.add("--cache-dir-path=" + result.engineCachesPath); - // TODO(mehmetf): Announce this since it is a breaking change then enable it. - // if (!flutterApplicationInfo.clearTextPermitted) { - // shellArgs.add("--disallow-insecure-connections"); - // } + if (!flutterApplicationInfo.clearTextPermitted) { + shellArgs.add("--disallow-insecure-connections"); + } if (flutterApplicationInfo.domainNetworkPolicy != null) { shellArgs.add("--domain-network-policy=" + flutterApplicationInfo.domainNetworkPolicy); } diff --git a/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm b/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm index 4f6a2acdf7b76040169e587b3600c17d416375a1..f080460f99b8a8b20c6932f09db444fb683e5616 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm @@ -140,12 +140,6 @@ static flutter::Settings DefaultSettingsForProcess(NSBundle* bundle = nil) { settings.domain_network_policy = [FlutterDartProject domainNetworkPolicy:appTransportSecurity].UTF8String; - // TODO(mehmetf): We need to announce this change since it is breaking. - // Remove these two lines after we announce and we know which release this is - // going to be part of. - settings.may_insecurely_connect_to_all_domains = true; - settings.domain_network_policy = ""; - #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG // There are no ownership concerns here as all mappings are owned by the // embedder and not the engine.