diff --git a/CHANGELOG.md b/CHANGELOG.md index 252fc315b..9348e7a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Behavioral Changes + +- The `Override Release` and `Override Environment` fields have been removed from the Sentry editor window. Release and environment now come from the application's Player Settings by default and can be set in code through an options configuration. Values already saved in the options asset are still applied. ([#2922](https://github.com/getsentry/sentry-unity/pull/2922)) + ## 4.12.0 ### Behavioral Changes diff --git a/src/Sentry.Unity.Editor/ConfigurationWindow/EnrichmentTab.cs b/src/Sentry.Unity.Editor/ConfigurationWindow/EnrichmentTab.cs index 0d5a29783..4872cfb8c 100644 --- a/src/Sentry.Unity.Editor/ConfigurationWindow/EnrichmentTab.cs +++ b/src/Sentry.Unity.Editor/ConfigurationWindow/EnrichmentTab.cs @@ -103,24 +103,6 @@ internal static void Display(ScriptableSentryUnityOptions options) EditorGUI.DrawRect(EditorGUILayout.GetControlRect(false, 1), Color.gray); EditorGUILayout.Space(); - { - options.ReleaseOverride = EditorGUILayout.TextField( - new GUIContent("Override Release", "By default release is built from the Application info as: " + - "\"{productName}@{version}+{buildGUID}\". " + - "\nThis option is an override."), - options.ReleaseOverride); - - options.EnvironmentOverride = EditorGUILayout.TextField( - new GUIContent("Override Environment", "Auto detects 'production' or 'editor' by " + - "default based on 'Application.isEditor'." + - "\nThis option is an override."), - options.EnvironmentOverride); - } - - EditorGUILayout.Space(); - EditorGUI.DrawRect(EditorGUILayout.GetControlRect(false, 1), Color.gray); - EditorGUILayout.Space(); - { options.ReportAssembliesMode = (ReportAssembliesMode)EditorGUILayout.EnumPopup( new GUIContent("Report Assemblies Mode", "Whether or not to include referenced assemblies " +