File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 2222 run : |
2323 rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
2424 cargo install cargo-ndk
25+ - name : Setup Keystore
26+ run : |
27+ echo $ANDROID_KEYSTORE | base64 --decode > ./android/app/key.jks
28+ echo $ANDROID_KEY_PROPERTIES | base64 --decode > ./android/key.properties
2529 - name : Build for Android
2630 env :
2731 SDK_REGISTRY_TOKEN : ${{ secrets.MAP_SDK_SECRET_KEY }}
Original file line number Diff line number Diff line change 1+ def keystorePropertiesFile = rootProject. file(" key.properties" )
2+ def keystoreProperties = new Properties ()
3+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
4+
15def localProperties = new Properties ()
26def localPropertiesFile = rootProject. file(' local.properties' )
37if (localPropertiesFile. exists()) {
@@ -50,11 +54,18 @@ android {
5054 versionName flutterVersionName
5155 }
5256
57+ signingConfigs {
58+ release {
59+ storeFile file(keystoreProperties[' storeFile' ])
60+ storePassword keystoreProperties[' storePassword' ]
61+ keyAlias keystoreProperties[' keyAlias' ]
62+ keyPassword keystoreProperties[' keyPassword' ]
63+ }
64+ }
65+
5366 buildTypes {
5467 release {
55- // TODO: Add your own signing config for the release build.
56- // Signing with the debug keys for now, so `flutter run --release` works.
57- signingConfig signingConfigs. debug
68+ signingConfig signingConfigs. release
5869 }
5970 }
6071}
You can’t perform that action at this time.
0 commit comments