flutter app release code example

Example 1: flutter build android release apk small

flutter build apk --split-per-abi

Example 2: build apk flutter command

flutter clean
flutter build apk

Example 3: create signingConfigs flutter macos

keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key

Example 4: flutter app release

flutter build appbundle

Example 5: flutter app release

keytool -genkey -v -keystore c:\Users\USER_NAME\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key

Example 6: FLUUTER RElease app

signingConfigs {
       release {
           keyAlias keystoreProperties['keyAlias']
           keyPassword keystoreProperties['keyPassword']
           storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
           storePassword keystoreProperties['storePassword']
       }
   }
   buildTypes {
       release {
           signingConfig signingConfigs.release
       }
   }

Tags:

Java Example