Companion sample project of the Medium article Learn how to create your own Gradle Tasks and Plugins.
This project showcases how to develop a Plugin that registers a simple Task.
The Task developed in this sample does a basic work. It copies in a new directory:
- the release APK
- the release Bundle
- the mapping file
It must be applied to an Android app module.
To do that, the Task needs 2 parameters:
- The Android app version to name the output directory from it.
- A File pointing where the generated directory will be put.
- Generate the 3 input files by executing:
./gradlew assembleRelease bundleRelease
- Execute
./gradlew bundleReleaseFiles
- Check that a new directory has been generated at path
app/build/outputs/1.00.00