Skip to content

How can I still run a Flutter app on release mode on my machine? #1346

Closed Answered by mregnauld
mregnauld asked this question in Q&A
Discussion options

You must be logged in to vote

OK so after some research, here is how I managed to make it work:

  1. Using the terminal:
cd android
keytool -genkey -v -alias androiddebugkey -keystore keystore.p12 -storetype PKCS12 -storepass android -keypass android -keyalg RSA -keysize 4096 -validity 10000
  1. In the android/app/build.gradle file:
    signingConfigs {
        debug {
            keyAlias "androiddebugkey"
            keyPassword "android"
            storeFile file("../keystore.p12")
            storePassword "android"
        }
        release {
            if (System.getenv()["CI"]) // CI=true is exported by Codemagic
            {
                storeFile file(System.getenv()["CM_KEYSTORE_PATH"])
                stor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mregnauld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
flutter Queries Related to Flutter android Queries Related to Android code signing Queries Related to Code Signing
1 participant