Skip to content

skip export fails to export APK/AAB for flavored Android app outputs #681

@Harryjeffs

Description

@Harryjeffs

Issue:

Running skip export on an Android build with flavors successfully generates the .apks but errors saying they are unable to be found.

build.gradle.kts:

...
android {
    flavorDimensions += "env"
...
    productFlavors {
        create("dev") { dimension = "env" }
        create("prod") { dimension = "env" }
    }
}
...

Actual Android outputs

Gradle produces flavored artifacts like:

.build/Android/app/outputs/apk/dev/debug/app-dev-debug.apk
.build/Android/app/outputs/apk/prod/debug/app-prod-debug.apk
.build/Android/app/outputs/bundle/devDebug/app-dev-debug.aab
.build/Android/app/outputs/bundle/prodDebug/app-prod-debug.aab

Expected behavior

skip export should either:

  • detect flavored outputs and export the generated APK/AAB correctly
  • provide a way to select which flavor to export
  • avoid treating this as a failure when the Android build itself succeeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions