Sign Apk Manually
In this section you will how to sign the android apk files manually.
info
If you use version v1.5.6
or above, you do not need to follow this guide as these modifications are already done for you in the application already. If you need to create release keys for your application, please follow this guide instead Use Tools Scripts
#
Getting StartedIn this section we will modify some of the source files to sign the release build of android applications.
Before you proceed
The following guide assumes that you have created a release keystore file or already have one which you will use to sign the release builds of your android application.
If you have not already created a release keystore, please do that first by following this guide Create Release Keystore.
If you have a release keystore please follow the steps mentioned below to sign your apk builds.
#
Open app in android studioOpen woostore_pro
application root folder in android studio. If you do not know how to open the application in android studio then please follow the guide here Open app in android studio.
#
Reference the keystore from the appCreate a file named key.properties
in woostore_pro/android
directory.
You need to provide your values from the previous steps for the following variables:
- storePassword
- keyPassword
- keyAlias
- storeFile
After that save the file by pressing command + s
on Mac OS or control + s
on Windows
Warning
Keep the key.properties
file private. Don’t check it into public source control.
For more information check out this Official Flutter Link
#
Configure signing in gradleConfigure gradle to use your upload key when building your app in release mode by editing the woostore_pro / android / app / build.gradle
file.
Add the keystore information from your properties file before the android block:
woostore_pro / android / app / build.gradleThis will load the
key.properties
file into the keystoreProperties object.Replace the
buildTypes
block:With the signing configuration info:
Release builds of your app will now be signed automatically.
Now
Save
the file by pressingcommand + s
on Mac OS orcontrol + s
on Windows
note
You may need to run flutter clean
after changing the gradle file. This prevents cached builds from affecting the signing process.
For more information check out this Official Flutter Link.
Your modifications for creating a signed apk with your release keystore is complete. Now you can follow the guide from where you came here.