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

Fix dex-derived BuildUUID for proguard uploads #92

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Mar 22, 2024

Goal

Attempt to automatically derive a buildUuid from the classes.dex files for mapping.txt files.

Design

If the buildUuid for a proguard file is not specified as either an option, or in the AndroidManifest.xml then the tool will attempt to locate the appropriate classesN.dex files for the mapping.txt file, and derive the BuildUUID from these.

Added a new --no-build-uuid (which is mutually exclusive with --build-uuid) to the various Android upload options. If this is specified the buildUuid is set to "" and no attempt is made to find or generate a BuildUUID.

Testing

Manually tested

Copy link
Contributor

@tomlongridge tomlongridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - with a changelog

@@ -58,7 +58,7 @@ func MergeUploadOptionsFromAabManifest(path string, apiKey string, applicationId
log.Info("Using " + aabUploadOptions["buildUuid"] + " as build ID from dex signatures")
}
}
} else if aabUploadOptions["buildUuid"] == "none" {
} else if aabUploadOptions["buildUuid"] == "none" || noBuildUuid {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we ticket and/or comment here to remove this in a future release?

@lemnik lemnik merged commit dbb1a9e into next Mar 25, 2024
16 checks passed
@lemnik lemnik deleted the PLAT-11832/dex-build-uuid branch March 25, 2024 16:03
@joshedney joshedney mentioned this pull request Apr 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants