-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
There was a problem hiding this 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.
@@ -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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 <[email protected]>
@bitsandfoxes @munkiki7 thank you very much for working on this! When do you expect it to be released? |
Tomorrow at the latest! |
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.