You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,25 @@
5
5
### Improvements
6
6
7
7
- Session Replay: Use main thread looper to schedule replay capture ([#4542](https://github.com/getsentry/sentry-java/pull/4542))
8
+
- Use single `LifecycleObserver` and multi-cast it to the integrations interested in lifecycle states ([#4567](https://github.com/getsentry/sentry-java/pull/4567))
9
+
- Prewarm `SentryExecutorService` for better performance at runtime ([#4606](https://github.com/getsentry/sentry-java/pull/4606))
8
10
9
11
### Fixes
10
12
11
13
- Cache network capabilities and status to reduce IPC calls ([#4560](https://github.com/getsentry/sentry-java/pull/4560))
- Remove unused method in ManifestMetadataReader ([#4585](https://github.com/getsentry/sentry-java/pull/4585))
14
16
- Have single `NetworkCallback` registered at a time to reduce IPC calls ([#4562](https://github.com/getsentry/sentry-java/pull/4562))
17
+
- Do not register for SystemEvents and NetworkCallbacks immediately when launched with non-foreground importance ([#4579](https://github.com/getsentry/sentry-java/pull/4579))
18
+
- Limit ProGuard keep rules for native methods within `sentry-android-ndk` to the `io.sentry.**` namespace. ([#4427](https://github.com/getsentry/sentry-java/pull/4427))
19
+
- If you relied on the Sentry SDK to keep native method names for JNI compatibility within your namespace, please review your ProGuard rules and ensure the configuration still works. Especially when you're not consuming any of the default Android proguard rules (`proguard-android.txt` or `proguard-android-optimize.txt`) the following config should be present:
20
+
```
21
+
-keepclasseswithmembernames class * {
22
+
native <methods>;
23
+
}
24
+
```
25
+
- Fix abstract method error in `SentrySupportSQLiteDatabase` ([#4597](https://github.com/getsentry/sentry-java/pull/4597))
26
+
- Ensure frame metrics listeners are registered/unregistered on the main thread ([#4582](https://github.com/getsentry/sentry-java/pull/4582))
Copy file name to clipboardExpand all lines: sentry-android-core/api/sentry-android-core.api
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -166,9 +166,28 @@ public final class io/sentry/android/core/AppLifecycleIntegration : io/sentry/In
166
166
public fun register (Lio/sentry/IScopes;Lio/sentry/SentryOptions;)V
167
167
}
168
168
169
-
public final class io/sentry/android/core/AppState {
169
+
public final class io/sentry/android/core/AppState : java/io/Closeable {
170
+
public fun addAppStateListener (Lio/sentry/android/core/AppState$AppStateListener;)V
171
+
public fun close ()V
170
172
public static fun getInstance ()Lio/sentry/android/core/AppState;
173
+
public fun getLifecycleObserver ()Lio/sentry/android/core/AppState$LifecycleObserver;
171
174
public fun isInBackground ()Ljava/lang/Boolean;
175
+
public fun registerLifecycleObserver (Lio/sentry/SentryOptions;)V
176
+
public fun removeAppStateListener (Lio/sentry/android/core/AppState$AppStateListener;)V
177
+
public fun resetInstance ()V
178
+
public fun unregisterLifecycleObserver ()V
179
+
}
180
+
181
+
public abstract interface class io/sentry/android/core/AppState$AppStateListener {
182
+
public abstract fun onBackground ()V
183
+
public abstract fun onForeground ()V
184
+
}
185
+
186
+
public final class io/sentry/android/core/AppState$LifecycleObserver : androidx/lifecycle/DefaultLifecycleObserver {
187
+
public fun <init> (Lio/sentry/android/core/AppState;)V
188
+
public fun getListeners ()Ljava/util/List;
189
+
public fun onStart (Landroidx/lifecycle/LifecycleOwner;)V
190
+
public fun onStop (Landroidx/lifecycle/LifecycleOwner;)V
172
191
}
173
192
174
193
public final class io/sentry/android/core/BuildConfig {
@@ -422,11 +441,13 @@ public class io/sentry/android/core/SpanFrameMetricsCollector : io/sentry/IPerfo
422
441
public fun onSpanStarted (Lio/sentry/ISpan;)V
423
442
}
424
443
425
-
public final class io/sentry/android/core/SystemEventsBreadcrumbsIntegration : io/sentry/Integration, java/io/Closeable {
444
+
public final class io/sentry/android/core/SystemEventsBreadcrumbsIntegration : io/sentry/Integration, io/sentry/android/core/AppState$AppStateListener, java/io/Closeable {
426
445
public fun <init> (Landroid/content/Context;)V
427
446
public fun <init> (Landroid/content/Context;Ljava/util/List;)V
428
447
public fun close ()V
429
448
public static fun getDefaultActions ()Ljava/util/List;
449
+
public fun onBackground ()V
450
+
public fun onForeground ()V
430
451
public fun register (Lio/sentry/IScopes;Lio/sentry/SentryOptions;)V
0 commit comments