Skip to content

Commit

Permalink
feat: Instruct sentry-cli to create/upload il2cpp mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jun 20, 2022
1 parent 7c4cb12 commit b71f7e2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
- Bump Native SDK to v0.4.17 ([#810](https://github.com/getsentry/sentry-unity/pull/810))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0417)
- [diff](https://github.com/getsentry/sentry-native/compare/0.4.15-7-g9eecb1b...0.4.17)
- Bump Sentry CLI 2.2.0 ([#790](https://github.com/getsentry/sentry-unity/pull/790))
- [changelog](https://github.com/getsentry/sentry-cli/releases/tag/2.2.0)
- [diff](https://github.com/getsentry/sentry-cli/compare/1.72.0...2.2.0)
- Generate and upload il2cpp line mappings alongside debug files. ([#790](https://github.com/getsentry/sentry-unity/pull/790))

## 0.19.0

Expand Down
Binary file modified package-dev/Editor/sentry-cli/sentry-cli-Darwin-universal
100644 → 100755
Binary file not shown.
Binary file modified package-dev/Editor/sentry-cli/sentry-cli-Linux-x86_64
100644 → 100755
Binary file not shown.
Binary file modified package-dev/Editor/sentry-cli/sentry-cli-Windows-x86_64.exe
100644 → 100755
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/download-sentry-cli.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
cd $(dirname "$0")
REPO=getsentry/sentry-cli
VERSION=1.71.0
VERSION=2.2.0
PLATFORMS="Darwin-universal Linux-x86_64 Windows-x86_64"
TARGETDIR="../package-dev/Editor/sentry-cli/"

Expand All @@ -16,4 +16,4 @@ for plat in $PLATFORMS; do
fn="${TARGETDIR}/sentry-cli-${plat}${suffix}"
curl -SL --progress-bar "$download_url" -o "$fn"
chmod +x "$fn"
done
done
4 changes: 2 additions & 2 deletions src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ public void AddBuildPhaseSymbolUpload(IDiagnosticLogger? logger, SentryCliOption
return;
}

var uploadDifArguments = string.Empty;
var uploadDifArguments = "--il2cpp-mapping";
if (sentryCliOptions.UploadSources)
{
uploadDifArguments += "--include-sources";
uploadDifArguments += " --include-sources";
}
var uploadScript = string.Format(_uploadScript, SentryCli.SentryCliMacOS, uploadDifArguments);

Expand Down
2 changes: 1 addition & 1 deletion src/Sentry.Unity.Editor/Android/DebugSymbolUpload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void AppendUploadToGradleFile(string sentryCliPath)
throw new FileNotFoundException("Failed to find sentry-cli", sentryCliPath);
}

var uploadDifArguments = string.Empty;
var uploadDifArguments = "\"--il2cpp-mapping\",";
if (_cliOptions?.UploadSources ?? false)
{
uploadDifArguments += "\"--include-sources\",";
Expand Down
2 changes: 1 addition & 1 deletion src/Sentry.Unity.Editor/Native/BuildPostProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar
addPath(Path.GetFullPath($"Packages/{SentryPackageInfo.GetName()}/Plugins/macOS/Sentry/Sentry.dylib.dSYM"));
}

var cliArgs = "upload-dif ";
var cliArgs = "upload-dif --il2cpp-mapping ";
if (cliOptions.UploadSources)
{
cliArgs += "--include-sources ";
Expand Down

0 comments on commit b71f7e2

Please sign in to comment.