-
-
Notifications
You must be signed in to change notification settings - Fork 57
chore: Remove deprecated runtime/build time configuration #2337
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
Changes from all commits
a799aac
78a6aab
6094e32
1210c3b
5e90ca7
36d1df3
9f99808
0c49188
34d0657
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
using System.Collections.Generic; | ||
using Sentry.Extensibility; | ||
using Sentry.Unity.Integrations; | ||
using Sentry.Unity.NativeUtils; | ||
using UnityEngine; | ||
|
||
namespace Sentry.Unity; | ||
|
@@ -105,9 +104,6 @@ public static string GetConfigPath(string? notDefaultConfigName = null) | |
[field: SerializeField] public bool LinuxNativeSupportEnabled { get; set; } = true; | ||
[field: SerializeField] public bool XboxNativeSupportEnabled { get; set; } = true; | ||
[field: SerializeField] public bool Il2CppLineNumberSupportEnabled { get; set; } = true; | ||
|
||
[field: SerializeField] public SentryRuntimeOptionsConfiguration? RuntimeOptionsConfiguration { get; set; } | ||
[field: SerializeField] public SentryBuildTimeOptionsConfiguration? BuildTimeOptionsConfiguration { get; set; } | ||
[field: SerializeField] public SentryOptionsConfiguration? OptionsConfiguration { get; set; } | ||
|
||
[field: SerializeField] public bool Debug { get; set; } = true; | ||
|
@@ -182,6 +178,7 @@ internal SentryUnityOptions ToSentryUnityOptions( | |
AndroidNativeSupportEnabled = AndroidNativeSupportEnabled, | ||
NdkIntegrationEnabled = NdkIntegrationEnabled, | ||
NdkScopeSyncEnabled = NdkScopeSyncEnabled, | ||
PostGenerateGradleProjectCallbackOrder = PostGenerateGradleProjectCallbackOrder, | ||
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. This was previously wrongly only on the scriptable object and not on the actual options, making them inaccessible programmatically. |
||
WindowsNativeSupportEnabled = WindowsNativeSupportEnabled, | ||
MacosNativeSupportEnabled = MacosNativeSupportEnabled, | ||
LinuxNativeSupportEnabled = LinuxNativeSupportEnabled, | ||
|
@@ -225,14 +222,6 @@ internal SentryUnityOptions ToSentryUnityOptions( | |
OptionsConfiguration.Configure(options); | ||
} | ||
|
||
// TODO: Deprecated and to be removed in the next major | ||
// This has to happen in between options object creation and updating the options based on programmatic changes | ||
if (RuntimeOptionsConfiguration != null && !isBuilding) | ||
{ | ||
options.DiagnosticLogger?.LogDebug("RuntimeOptionsConfiguration found. Calling configure."); | ||
RuntimeOptionsConfiguration.Configure(options); | ||
} | ||
|
||
// We need to set up logging here because the configure callback might have changed the debug options. | ||
// Without setting up here we might miss out on logs between option-loading (now) and Init - i.e. native configuration | ||
options.SetupUnityLogging(); | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
Missed checking this in to the samples when adding Xbox support.