3

In Cordova 5, how can I incorporate zipaligning and signing of the APK using my keystore into the build process?

Using the Ionic Framework, I can specify an ant.properties file that includes the lines below:

key.store=CylonApp.keystore
key.alias=CylonApp

such that running ionic build android --release automatically prepares an APK that can be submitted directly to the Play Store.

Is there an equivalent in Cordova?

Community
  • 1
  • 1
Huey
  • 5,110
  • 6
  • 32
  • 44

1 Answers1

1

You can create release-signing.properties in platforms/android and adding the following:

storeFile=<path to="" .keystore="" file="">
storeType=jks
keyAlias=<your key="" alias="">
// optional :
keyPassword=<your-key-password>
storePassword=<your-store-password>
Patrice
  • 1,404
  • 1
  • 14
  • 27