fix: follow android 11 storage permissions (#66)

This commit is contained in:
Li Wei authored and GitHub committed 2022-12-16 21:43:06 +08:00
1 parent dda44cc770
commit 21ec1e4539
11 files changed
+55 -90

No files matched your search

+14 -3
View File
@@ -53,11 +53,22 @@ android {
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias "upload"
keyPassword System.getenv("APK_KEY_PASSWORD")
storeFile file("upload-keystore.jks")
storePassword System.getenv("APK_STORE_PASSWORD")
}
}
buildTypes {
release {
// 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
if (signingConfigs.release.keyPassword != null) {
signingConfig signingConfigs.release
} else {
signingConfig signingConfigs.debug
}
}
}