Slide 34
Slide 34 text
Configurando a dependência
AppEdits - APKListings
Apks apks = edits.apks();
FileContent apkContent = new FileContent(APK_MIME_TYPE, apkFile);
Apk apk = apks.upload(PACKAGE, transactionId, apkContent).execute();
int version = apk.getVersionCode();
Tracks tracks = edits.tracks();
List versions = Collections.singletonList(version);
Track track = new Track().setVersionCodes(versions);
tracks.update(PACKAGE, transactionId, trackId, track).execute();
Apklistings apklistings = edits.apklistings();
ApkListing whatsnew = new ApkListing().setRecentChanges(whatsNewDescription);
apklistings.update(PACKAGE, transactionId, version, language, whatsnew).execute();
https://developers.google.com/android-publisher/#publishing