Android

This is essentially a wrapper around the existing Fastlane Gradle wrapper which handles:

  • Naming the artifact as per Apadmi naming conventions
  • Providing a sensible output directory of the artifact and mapping file (defaulting to Bitrise artifact directory)
  • Passing signing properties through gradle from Bitrise environment variables.

Example

fastlane_require 'fastlane-plugin-apadmi_grout'
...
  artifact = build_apk_or_aab(
    gradle_command: "android:bundleQaRelease", # Gradle command
    build_number: lane_context[:version_code], # Android build number (defaults to number of commits)
    version: lane_context[:version_name]       # App Version e.g. 1.0.0
  )

Note

All Gradle parameters are supported: https://docs.fastlane.tools/actions/gradle/#parameters with the exception of tasks. Only one command should be run at once.

Back to top