Skip to content

Doesn't work with renamed apks #40

@ursusursus

Description

@ursusursus

Hi, we rename our release apks like this

applicationVariants.all { variant ->
        variant.outputs.all { output ->
            if (variant.buildType.name == "debug") return

            // Rename APK
            def variantName = variant.name
            def date = new Date().format("dd-MM-yyyy")
            def versionName = variant.versionName.replace(".", "-")
            def versionCode = output.versionCodeOverride
            def version = "v${versionName}_${versionCode}"
            def gitHash = getGitHash()

            outputFileName = "app_tm__${variantName}_${gitHash}__${date}__${version}.apk"
        }
    }

If I ran the uploadFooReleaseToBrowserstackAppLive it complains the apk is not found, even though it is there, but its renamed
If I disable the renaming, then it works fine

// agp 4.2.1, gradle 6.8.2, plugin 3.0.3

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