We store our RC builds on a server. When a build reaches QA approval, we'd like to upload that specific build. Our CI executes a job that will run publishApk task on demand on a clean directory. Placing a pre-built APK in the respective build/outputs folder doesn't seem to make publishApk task to take the APK and upload it. Instead, it goes through the whole build process from scratch.
Is it possible to make publishApk task upload existing APK instead of building from source?
Not right now, but this feature will be available in v2.0.
Hallelujah people! This will most likely be shipped in a week or two. 馃帀 In the meantime, please try a snapshot build to make sure the API fits your use case.
Lighting docs:
./gradlew publishApk --artifact-dir path/to/apk/dirartifactDir property in your Gradle DSL:kt
play {
// ...
artifactDir = file("path/to/apk/dir")
}
Most helpful comment
Hallelujah people! This will most likely be shipped in a week or two. 馃帀 In the meantime, please try a snapshot build to make sure the API fits your use case.
Lighting docs:
./gradlew publishApk --artifact-dir path/to/apk/dirartifactDirproperty in your Gradle DSL:kt play { // ... artifactDir = file("path/to/apk/dir") }