fish 1 week ago
parent
commit
4e24c92097
2 changed files with 12 additions and 2 deletions
  1. 2 2
      android/app/build.gradle
  2. 10 0
      android/app/src/main/AndroidManifest.xml

+ 2 - 2
android/app/build.gradle

@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
 
 
 android {
 android {
     namespace "io.github.jianboy.flutter.flutter_paydemo"
     namespace "io.github.jianboy.flutter.flutter_paydemo"
-    compileSdkVersion flutter.compileSdkVersion
+    compileSdkVersion 34
     ndkVersion flutter.ndkVersion
     ndkVersion flutter.ndkVersion
 
 
     compileOptions {
     compileOptions {
@@ -38,7 +38,7 @@ android {
         // You can update the following values to match your application needs.
         // You can update the following values to match your application needs.
         // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
         // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
         minSdkVersion flutter.minSdkVersion
         minSdkVersion flutter.minSdkVersion
-        targetSdkVersion flutter.targetSdkVersion
+        targetSdkVersion 34
         versionCode flutterVersionCode.toInteger()
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName
         versionName flutterVersionName
     }
     }

+ 10 - 0
android/app/src/main/AndroidManifest.xml

@@ -1,4 +1,14 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android">
 <manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
+    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
+    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
+
+    
+
     <application
     <application
         android:label="flutter_paydemo"
         android:label="flutter_paydemo"
         android:name="${applicationName}"
         android:name="${applicationName}"