From 31d8af45382597887f4e9b84e0a3c5e7b616fe3f Mon Sep 17 00:00:00 2001 From: kjxbyz Date: Sat, 8 Jun 2024 19:34:37 +0800 Subject: [PATCH] fix(android): update minSdkVersion to 23 --- android/app/build.gradle | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 4d18ac61..c7942c4f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -65,7 +65,7 @@ android { applicationId "com.chenyifaer.homingpigeon" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 21 + minSdkVersion 23 targetSdk 34 versionName flutterVersionName versionCode flutterVersionCode.toInteger() @@ -123,6 +123,7 @@ android { buildTypes { release { signingConfig signingConfigs.release + shrinkResources true minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } @@ -130,6 +131,13 @@ android { signingConfig signingConfigs.debug } } + + packagingOptions { + jniLibs { + // Enabling flag to compress JNI Libs to reduce APK size Ref: https://developer.android.com/topic/performance/reduce-apk-size?hl=zh-cn#extract-false + useLegacyPackaging true + } + } } flutter {