Fix: crash when try to open camera on Android 6

This commit is contained in:
poka 2021-11-15 02:28:15 +01:00
parent 30d5cd2e31
commit f15306e083
3 changed files with 11 additions and 1 deletions

View File

@ -66,6 +66,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
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

7
android/app/proguard-rules.pro vendored Normal file
View File

@ -0,0 +1,7 @@
-ignorewarnings
-keep class * {
public private *;
}
-dontwarn org.xmlpull.v1.XmlPullParser
-dontwarn org.xmlpull.v1.XmlSerializer
-keep class org.xmlpull.v1.* {*;}

View File

@ -5,7 +5,7 @@ description: Pay with G1.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.0.2+8
version: 0.0.2+9
environment:
sdk: ">=2.7.0 <3.0.0"