This app is a simple demo application for developers who are interested in continuous deploy in the android platform.
For further details, check out my presentation, my personal website or my Medium profile.
This repo contains two projects related to the presentation linked above:
- android_app is the sample application I have written to exemplify the continous deploy process.
- publisher_project is the actual
Java
project for the Google Play Publisher code. It might serve as the starting point for your actual publisher project, as it contains the basic dependencies needed in order to alter your APK's listings through Google Play's API.
To be able to compile and run the publisher project, you will have to save your PEM key to the project's root folder and name it secret.pem
(you can put it or name it differently according to your needs, but you will have to change the publisher's code to read the file from the correct path
.
You will also have to add a Constants.java
file to the path /publisher_project/src/br/com/zynger/continuousdeploy/Constants.java
with the following content:
package br.com.zynger.continuousdeploy;
public class Constants {
public static final String KEY_ID = <YOUR_PRIVATE_KEY_ID>;
public static final String SERVICE_ACCOUNT_EMAIL = <YOUR_SERVICE_ACCOUNT_EMAIL>;
public static final String SECRET_FILE_PATH = "secret.pem";
public static final String PACKAGE = <PACKAGE_NAME_OF_THE_PROJECT_YOU_WANT_TO_PUBLISH>;
}