diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c7e7e99f..1ba1115ac0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### API Changes +- You should no longer pass `AndroidContext` as an argument to `SentrySdk.Init` ([#3562](https://github.com/getsentry/sentry-dotnet/pull/3562)) + ## 4.10.2 ### Various fixes & improvements diff --git a/src/Sentry/Platforms/Android/SentrySdk.cs b/src/Sentry/Platforms/Android/SentrySdk.cs index f018ffdcd1..a346f581b3 100644 --- a/src/Sentry/Platforms/Android/SentrySdk.cs +++ b/src/Sentry/Platforms/Android/SentrySdk.cs @@ -20,34 +20,6 @@ public static partial class SentrySdk { private static AndroidContext AppContext { get; set; } = Application.Context; - /// - /// Initializes the SDK for Android, with an optional configuration options callback. - /// - /// The Android application context. - /// The configuration options callback. - /// An object that should be disposed when the application terminates. - [Obsolete("It is no longer required to provide the application context when calling Init. " + - "This method may be removed in a future major release.")] - public static IDisposable Init(AndroidContext context, Action? configureOptions) - { - AppContext = context; - return Init(configureOptions); - } - - /// - /// Initializes the SDK for Android, using a configuration options instance. - /// - /// The Android application context. - /// The configuration options instance. - /// An object that should be disposed when the application terminates. - [Obsolete("It is no longer required to provide the application context when calling Init. " + - "This method may be removed in a future major release.")] - public static IDisposable Init(AndroidContext context, SentryOptions options) - { - AppContext = context; - return Init(options); - } - private static void InitSentryAndroidSdk(SentryOptions options) { // Set default release and distribution