diff --git a/CHANGELOG.md b/CHANGELOG.md index c5294b83f..71b4424ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Fixed a crash during startup due in connection to the Google Ads Unity package ([#953](https://github.com/getsentry/sentry-unity/pull/953)) +### Features + +- IL2CPP line number support is enabled by default ([#963](https://github.com/getsentry/sentry-unity/pull/963)) + ### Dependencies - Bump Java SDK from v6.4.0 to v6.4.1 ([#954](https://github.com/getsentry/sentry-unity/pull/954)) diff --git a/package-dev/Editor/SentryPackageManager.cs b/package-dev/Editor/SentryPackageManager.cs new file mode 100644 index 000000000..8043ae01a --- /dev/null +++ b/package-dev/Editor/SentryPackageManager.cs @@ -0,0 +1,25 @@ +#if UNITY_2020_3_OR_NEWER +using UnityEditor; +using UnityEngine; + +namespace Sentry.Unity.Editor +{ + public static class SentryPackageManager + { + [InitializeOnLoadMethod] + public static void SentryPackageUpdate() + { + UnityEditor.PackageManager.Events.registeredPackages += eventArgs => + { + if (eventArgs.changedFrom.Count > 0) + { + var from = eventArgs.changedFrom[0]; + var to = eventArgs.changedTo[0]; + + Debug.Log($"Package changed from {from.name}-{from.version} to {to.name}-{to.version}"); + } + }; + } + } +} +#endif diff --git a/package-dev/Editor/io.sentry.unity.dev.editor.asmdef b/package-dev/Editor/io.sentry.unity.dev.editor.asmdef new file mode 100644 index 000000000..c8f0e9aaa --- /dev/null +++ b/package-dev/Editor/io.sentry.unity.dev.editor.asmdef @@ -0,0 +1,20 @@ +{ + "name": "io.sentry.unity.dev.editor", + "rootNamespace": "", + "references": [ + "" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [ + "" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file