Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
flutterui:build_release [2023/02/22 07:29] admin |
flutterui:build_release [2023/02/22 07:31] (current) admin |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| //<project>/creator/android//, together with your keystore. It's also possible to put the file in your android project folder. We support both locations. | //<project>/creator/android//, together with your keystore. It's also possible to put the file in your android project folder. We support both locations. | ||
| - | The key.properties will be used to read all relevant information and should contain: | + | The **key.properties** will be used to read all relevant information and should contain: |
| + | <code properties> | ||
| keyAlias=<alias> | keyAlias=<alias> | ||
| keyPassword=<keypassword> | keyPassword=<keypassword> | ||
| Line 45: | Line 46: | ||
| storeFile=<keystore_filename> | storeFile=<keystore_filename> | ||
| storePassword=<storepassword> | storePassword=<storepassword> | ||
| + | </code> | ||
| To support signing, it's important to change your gradle build in folder //<project>/android/app/build.gradle//. We need following changes: | To support signing, it's important to change your gradle build in folder //<project>/android/app/build.gradle//. We need following changes: | ||
| - | <code gradle> | + | <code javascript> |
| def keystoreProperties = new Properties() | def keystoreProperties = new Properties() | ||
| def keystorePropertiesFile = rootProject.file('key.properties') | def keystorePropertiesFile = rootProject.file('key.properties') | ||
| Line 71: | Line 73: | ||
| and | and | ||
| - | <code gradle> | + | <code javascript> |
| - | signingConfigs { | + | signingConfigs { |
| - | release { | + | release { |
| - | keyAlias keystoreProperties['keyAlias'] | + | keyAlias keystoreProperties['keyAlias'] |
| - | keyPassword keystoreProperties['keyPassword'] | + | keyPassword keystoreProperties['keyPassword'] |
| - | storeFile keystoreProperties['storeFile'] ? rootProject.file(keystorePropertiesFile.getParent() + '/' + keystoreProperties['storeFile']) : null | + | storeFile keystoreProperties['storeFile'] ? rootProject.file(keystorePropertiesFile.getParent() + '/' + keystoreProperties['storeFile']) : null |
| - | storePassword keystoreProperties['storePassword'] | + | storePassword keystoreProperties['storePassword'] |
| - | } | + | |
| } | } | ||
| + | } | ||
| - | buildTypes { | + | buildTypes { |
| - | release { | + | release { |
| - | signingConfig signingConfigs.release | + | signingConfig signingConfigs.release |
| - | } | + | |
| } | } | ||
| + | } | ||
| </code> | </code> | ||
