Skip to content

Commit 56211a9

Browse files
committed
适配android 9 http连接
1 parent 6482758 commit 56211a9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<application
1515
android:name="io.flutter.app.FlutterApplication"
1616
android:label="玩儿Android"
17-
android:icon="@mipmap/wan_android_logo">
17+
android:icon="@mipmap/wan_android_logo"
18+
android:networkSecurityConfig="@xml/network_security_config">
1819
<activity
1920
android:name=".MainActivity"
2021
android:launchMode="singleTop"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<base-config cleartextTrafficPermitted="true" />
4+
</network-security-config>

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Flutter版&quot;玩Android&quot;
1111
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1212
# Read more about iOS versioning at
1313
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14-
version: 1.0.1+2
14+
version: 1.0.2+3
1515

1616
environment:
1717
sdk: ">=2.1.0 <3.0.0"

0 commit comments

Comments
 (0)