From 29645a18684af98e864c49419a495865f2a24445 Mon Sep 17 00:00:00 2001 From: "Jason C.H" Date: Sat, 23 Apr 2022 01:04:04 +0800 Subject: [PATCH] Fix crash on release --- CHANGELOG.md | 5 +++++ example/android/app/build.gradle | 7 +++++-- example/android/app/src/main/AndroidManifest.xml | 1 + example/android/build.gradle | 4 ++-- example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- pubspec.yaml | 2 +- 6 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d44110c..22df824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.10.0 +- Upgrade to StrongSwan 5.9.0. +- Fix typo in event channel. +- Expose port and name settings (Android). + ## 0.9.0 - Upgrade to StrongSwan 5.9.0. - Add `prepared` for checking vpn preparation on android. diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 397d7eb..51bdbdb 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -39,7 +39,7 @@ android { defaultConfig { applicationId "io.xdea.flutter_vpn_example" minSdkVersion 16 - targetSdkVersion 30 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -49,6 +49,9 @@ android { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug + + shrinkResources false + minifyEnabled false ndk { if (!project.hasProperty('target-platform')) { diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index c2294a2..7606c11 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ android:label="flutter_vpn_example"> - Jerry Wang