-
-
Notifications
You must be signed in to change notification settings - Fork 222
Fixes symbolication for net9.0-android applications in Release config #4221
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
Open
jamescrosswell
wants to merge
10
commits into
main
Choose a base branch
from
android-release-symbols
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+86
−18
Open
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2c13d2f
Fixes symbolication for net9.0-android applications in Release config…
jamescrosswell d6bb57d
Merge branch 'main' into android-release-symbols
jamescrosswell 102d413
Update CHANGELOG.md
jamescrosswell af4bd0f
Merge branch 'main' into android-release-symbols
jamescrosswell 9933938
Merge branch 'main' into android-release-symbols
bruno-garcia e4faacd
Read assembly from device specific APKs when AndroidUseAssemblyStore …
jamescrosswell 691aaa2
Format code
getsentry-bot c11bb2d
release: 5.8.2-beta.1
getsentry-bot f170d7d
Merge branch 'release/5.8.2-beta.1' into android-release-symbols
2b57b5c
Update CHANGELOG.md
jamescrosswell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,29 @@ public static string MakeZipArchivePath(string part1, ICollection<string>? pathP | |
public const string MANGLED_ASSEMBLY_REGULAR_ASSEMBLY_MARKER = "lib_"; | ||
public const string MANGLED_ASSEMBLY_SATELLITE_ASSEMBLY_MARKER = "lib-"; | ||
public const string SATELLITE_CULTURE_END_MARKER_CHAR = "_"; | ||
|
||
/// <summary> | ||
/// When an AAB file is deployed, the APK is split into multiple APKs so our modules can end up in a companion | ||
/// architecture specific APK like split_config.arm64_v8a.apk. This method returns the path to that split_config APK | ||
/// if it exists... otherwise we just return the original archive path. | ||
/// </summary> | ||
internal static string GetArchivePathForArchitecture(this string archivePath, AndroidTargetArch arch, DebugLogger? logger) | ||
{ | ||
return ArchToAbiMap.TryGetValue(arch, out var abi) | ||
? GetArchivePathForAbi(archivePath, abi, logger) | ||
: archivePath; | ||
} | ||
|
||
/// <summary> | ||
/// When an AAB file is deployed, the APK is split into multiple APKs so our modules can end up in a companion | ||
/// architecture specific APK like split_config.arm64_v8a.apk. This method returns the path to that split_config APK | ||
/// if it exists... otherwise we just return the original archive path. | ||
/// </summary> | ||
internal static string GetArchivePathForAbi(this string archivePath, string abi, DebugLogger? logger) | ||
{ | ||
var basePath = Path.GetDirectoryName(archivePath) ?? string.Empty; | ||
var abiPart = abi.Replace("-", "_"); | ||
var splitFilePath = Path.Combine(basePath, $"split_config.{abiPart}.apk"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if |
||
return splitFilePath; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I wonder if we can avoid this by having
supportedAbis
be provided in the right formatThere 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.
The
abi.Replace("-", "_")
you mean? Not really... most of the time it is used with a hyphen. When building the file names for thesplit_config
APKs though it gets replaced with an underscore (I'm sure there's a reason... not sure what it is though).