Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support to upload multiple APKs. #110

Open
Kiran-B opened this issue Jul 4, 2022 · 0 comments
Open

[Feature Request] Support to upload multiple APKs. #110

Kiran-B opened this issue Jul 4, 2022 · 0 comments

Comments

@Kiran-B
Copy link

Kiran-B commented Jul 4, 2022

A single gradle command could generate multiple APKs. One of the most common usecases are,

  • debug & release flavor
  • multiple builds pointing to development, staging, pre-prod and prod backend end points.

Fastlane correctly recognizes them and the following Lane Context variables reflect the same.
GRADLE_ALL_APK_OUTPUT_PATHS = [
"/some-path/app/build/outputs/apk/prod/debug/App-prod-debug-1.0.0(3).apk",
"/some-path/app/build/outputs/apk/stage/debug/App-stage-debug-1.0.0(3).apk",
"/some-path/app/build/outputs/apk/dev/debug/COTO-dev-debug-1.0.0(3).apk"]

GRADLE_ALL_OUTPUT_JSON_OUTPUT_PATHS = [
"/some-path/app/build/outputs/apk/prod/debug/output-metadata.json",
"/some-path/app/build/outputs/apk/stage/debug/output-metadata.json",
"/some-path/app/build/outputs/apk/dev/debug/output-metadata.json"]

===

fastlane-plugin-s3, at the moment accepts only a single APK path via apk param. Also it (correctly) defaults it to lane context variable GRADLE_APK_OUTPUT_PATH

This approach requires app devs to publish each APK seperately.

Instead, if we could allows all APKs to be published in one go, and offer a way to list the links for each APK in the HTML as well, it would be a great feature.

The plugin could accept apkPaths param which takes an array of paths. It could be defaulted to GRADLE_ALL_APK_OUTPUT_PATHS for out of the box setup. The value of apkPaths will end up overriding apk and hopefully it would cause any issues. Because even in circumstances where the gradle task generates a single APK, GRADLE_ALL_APK_OUTPUT_PATHS would still include that one APK path.

Note:
Though multiple IPAs could possibly be built using custom xcode targets, I am not sure whether Fastlane identifies them and sets the approapriate Lane Context variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant