Android: Create build.json File
Next we need to create a build.json file. This file will include the operating system specific settings that the Buildbots will use to produce your app.
This file needs to be held in your project root folder - this is the folder that contains the config.xml file and the rest of your Cordova folders that you generated on the last step.
Create build.json File
To create this file yourself, simply create a new blank text file and name it build.json
Copy and paste the code below into your new build.json file:
{ "android": { "release": { "keystore": "myCordovaApp.jks", "storePassword": "", "alias": "myCordovaAppName", "password" : "", "keystoreType": "" } } }
Download build.json
Alternatively, you can download an example build.json file here:
Download Android Example build.json
Description of Values
The password fields are intentionally left blank - for added security, you'll be prompted for these when running the build request. The only fields you'll need to enter are:
keystore:
This is the path to the signing certificate file you generated in the previous step. In this example we've placed the certificate in the project root (at the same level as your config.xml file), therefore just the name of the file is enough.
alias:
This should be the same alias you set when generating your signing certificate (this would most commonly be the name of your app).