flutter packaging policy

 

About flutter packaging policy record

There are records about the keystore situation:

1, the new file in the app in key.properties

Paste file

storePassword=xx
keyPassword=xx
keyAlias ​​= xx
storeFile=D:/appkey/xxx

2, in the app's build, find

android {

In the above paste

def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

3.

Replaced

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

4. Then as the open terminal, the input command flutter build apk

Packaged file in the / build / app / outputs / apk / release / xxx

Guess you like

Origin blog.csdn.net/qq_34262972/article/details/93761405