Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
flutterui:build_release [2023/02/22 07:29]
admin
flutterui:build_release [2023/02/22 07:30]
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:
Line 72: Line 74:
  
 <code gradle> <code gradle>
-    ​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>​
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information