Set playstore track from alpha to internal

This commit is contained in:
Gouri Panda 2023-06-02 14:56:04 +05:30 committed by Kelson
parent 7b96241950
commit 50d0941fc3
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ android {
play { play {
enabled.set(true) enabled.set(true)
serviceAccountCredentials.set(file("../playstore.json")) serviceAccountCredentials.set(file("../playstore.json"))
track.set("alpha") track.set("internal")
releaseStatus.set(com.github.triplet.gradle.androidpublisher.ReleaseStatus.DRAFT) releaseStatus.set(com.github.triplet.gradle.androidpublisher.ReleaseStatus.DRAFT)
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.FAIL) resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.FAIL)
} }

View File

@ -99,13 +99,13 @@ class Transaction(
} }
fun addToTrackInDraft(apkVariants: List<ApkVariantOutput>): Track = fun addToTrackInDraft(apkVariants: List<ApkVariantOutput>): Track =
publisher.edits().tracks().update(packageName, editId, "alpha", Track().apply { publisher.edits().tracks().update(packageName, editId, "internal", Track().apply {
releases = listOf(TrackRelease().apply { releases = listOf(TrackRelease().apply {
status = "draft" status = "draft"
name = apkVariants[0].versionNameOverride name = apkVariants[0].versionNameOverride
versionCodes = apkVariants.map { it.versionCodeOverride.toLong() } versionCodes = apkVariants.map { it.versionCodeOverride.toLong() }
}) })
track = "alpha" track = "internal"
}).execute().prettyPrint() }).execute().prettyPrint()
} }