Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Support Custom Mapping File Path #868

Closed ccjernigan closed 4 years ago

ccjernigan commented 4 years ago

Problem description

I am specifying the app bundle path explicitly (artifactDir.set), rather than building it on the fly. However, there is no option in the extension to support supplying the mapping file. This means I cannot upload a mapping file automatically when specifying the app bundle path.

I would like something like mappingDir.set so that I can explicitly define where to upload the mapping from too.

Potential solutions/workarounds

Currently, I have to upload the mapping file manually through the Play Store console after the automatic upload completes.

Additional context

I have a quirky setup. I'm integrated with DexGuard which post-processes my APK file. However, I also need to run the Play Publisher plugin before DexGuard runs, in order to automatically increment the version code. So on the command line my build happens in two steps: ./gradlew :app:publishBundle -PPUBLISH_MODE=build ./gradlew :app:publishBundle -PPUBLISH_MODE=upload

In my app's build.gradle, I provide different options to the Play Publisher based on PUBLISH_MODE. The build mode uploads automatically but disables commits, so that a version code is generated. After the fake "upload", the DexGuard plugin post-processes the app bundle and generates a new bundle and mapping file.

The upload mode is supplied the path to the app bundle, but there's no way to supply a path to the mapping file that I can see.

SUPERCILEX commented 4 years ago

2 things:

ccjernigan commented 4 years ago

Cool, thank you for the reply. It wasn't clear from the documentation that the first option would work, so I'll give that a try. That should solve what I need for the time being.

SUPERCILEX commented 4 years ago

Oh wait, you're right. I thought I had docs for that.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.