Browse Source

fix error

fish 7 months ago
parent
commit
f31a59a3a1

+ 1 - 1
.github/workflows/build.yml

@@ -23,7 +23,7 @@ jobs:
         uses: subosito/flutter-action@v1.5.3
         with:
           channel: "stable"
-          flutter-version: "2.5.2"
+          flutter-version: "3.13.8"
 
       - name: Cache Dependencies
         id: cache

+ 2 - 2
android/app/build.gradle

@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
 apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
 
 android {
-    compileSdkVersion 33
+    compileSdkVersion 34
     signingConfigs {
         release {
             storeFile file("../sign/release.jks")
@@ -42,7 +42,7 @@ android {
     defaultConfig {
         applicationId "me.yoqi.flutter.tracker"
         minSdkVersion 21
-        targetSdkVersion 33
+        targetSdkVersion 34
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName
     }

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

@@ -27,7 +27,6 @@
         android:networkSecurityConfig="@xml/network_security_config">
         <activity
             android:name=".MainActivity"
-            android:exported="true"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
             android:hardwareAccelerated="true"
             android:exported="true"

+ 1 - 1
android/build.gradle

@@ -22,6 +22,6 @@ subprojects {
     project.evaluationDependsOn(':app')
 }
 
-task clean(type: Delete) {
+tasks.register("clean", Delete) {
     delete rootProject.buildDir
 }