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

Hook to bundle tasks during Android export for symbols upload #1692

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

munkiki7
Copy link
Contributor

Fixes #1673

Previously, we were binding to the assemble tasks that get executed during Unity build (regardless of whether it is apk or abb).

But for the exported projects .aab artifacts are only created using the bundle task, during which the upload symbol task was not executed.

Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

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

Awesome fix!
We should consider adding the export of a Gradle project to CI.

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -87,6 +87,13 @@ private string _symbolUploadTaskFormat
stringBuilder.AppendLine(string.Empty);
stringBuilder.AppendLine("tasks.assembleDebug.finalizedBy sentryUploadSymbols");
stringBuilder.AppendLine("tasks.assembleRelease.finalizedBy sentryUploadSymbols");

if (_isExporting)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is _isExporting the correct condition for this? I thought this was related to .aab and not just the export of the Gradle project itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only if the user is exporting Android project, we need to add the additional hook for the bundle task.

Otherwise, the assemble task hook works whether .aab or .apk is built from Unity

Co-authored-by: Stefan Jandl <reg@bitfox.at>
@munkiki7 munkiki7 marked this pull request as ready for review June 18, 2024 06:44
@bitsandfoxes bitsandfoxes merged commit b8f9f8e into main Jun 18, 2024
4 checks passed
@bitsandfoxes bitsandfoxes deleted the fix/add-bundle-task-hook branch June 18, 2024 13:20
@cstavitsky
Copy link

@bitsandfoxes @munkiki7 thank you very much for working on this! When do you expect it to be released?

@bitsandfoxes
Copy link
Contributor

When do you expect it to be released?

Tomorrow at the latest!

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.

Line Numbers Not Showing for Mobile Exceptions (Android & some iOS)
3 participants