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:30] admin |
flutterui:build_release [2023/02/22 07:31] (current) admin |
||
---|---|---|---|
Line 50: | Line 50: | ||
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 73: | 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> | ||