I am trying to build signed app from cordova in my mac. Whenever I run cordova build android --release it release unsigned apk.
I have created the account on Play store. Also I checked multiple links to get this working.
How to create a signed APK file using Cordova command line interface?
http://cordova.apache.org/docs/en/6.x/guide/platforms/android/index.html#signing-an-app
I have few concern regarding key file.
As per Cordova documentation we can use build.json or Gradle to build the signed apk.
{
"android": {
"debug": {
"keystore": "../android.keystore",
"storePassword": "android",
"alias": "mykey1",
"password" : "password",
"keystoreType": ""
},
"release": {
"keystore": "../android.keystore",
"storePassword": "",
"alias": "mykey2",
"password" : "password",
"keystoreType": ""
}
}
}
Above code from Cordova site but I am not able to find build.json file.
Here is the code from gradle.
You can also specify signing properties by including a .properties file and pointing to it with the cdvReleaseSigningPropertiesFile and cdvDebugSigningPropertiesFile Gradle properties (see Setting Gradle Properties). The file should look like this:
storeFile=relative/path/to/keystore.p12
storePassword=SECRET1
storeType=pkcs12
keyAlias=DebugSigningKey
keyPassword=SECRET2
storePassword and keyPassword are optional, and will be prompted for if omitted.
But I am not sure from where I will get the details like storePassword KeyPassword DebugSigningKey.
I am using latest version of Cordova, 7.0.1.