Skip to content

Commit 3e1c2c9

Browse files
authored
Merge branch 'main' into v9
2 parents e401af3 + d7dc4e5 commit 3e1c2c9

File tree

6 files changed

+19
-1
lines changed

6 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@
1616

1717
## Unreleased
1818

19+
### Deprecations
20+
21+
- Deprecate `autoAppStart` and `setAppStartEnd` ([#2681](https://github.com/getsentry/sentry-dart/pull/2681))
22+
1923
### Other
2024

2125
- Remove macOS display refresh rate support ([#2628](https://github.com/getsentry/sentry-dart/pull/2628))
2226
- Can't reliably detect on multi-monitor systems and on older macOS versions.
2327
- Not very meaningful, as other applications may be running in parallel and affecting it.
2428

29+
### Dependencies
30+
31+
- Bump Native SDK from v0.7.19 to v0.7.20 ([#2652](https://github.com/getsentry/sentry-dart/pull/2652))
32+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720)
33+
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.19...0.7.20)
34+
2535
## 8.13.0
2636

2737
### Breaking changes

flutter/lib/src/integrations/native_app_start_integration.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class NativeAppStartIntegration extends Integration<SentryFlutterOptions> {
1818
DateTime? _appStartEnd;
1919

2020
/// This timestamp marks the end of app startup. Either set by calling
21+
// ignore: deprecated_member_use_from_same_package
2122
/// [SentryFlutter.setAppStartEnd]. The [SentryFlutterOptions.autoAppStart]
2223
/// option needs to be false.
2324
@internal
@@ -43,6 +44,7 @@ class NativeAppStartIntegration extends Integration<SentryFlutterOptions> {
4344

4445
try {
4546
DateTime? appStartEnd;
47+
// ignore: deprecated_member_use_from_same_package
4648
if (options.autoAppStart) {
4749
// ignore: invalid_use_of_internal_member
4850
appStartEnd = DateTime.fromMicrosecondsSinceEpoch(timings.first

flutter/lib/src/sentry_flutter.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ mixin SentryFlutter {
225225
/// Manually set when your app finished startup. Make sure to set
226226
/// [SentryFlutterOptions.autoAppStart] to false on init. The timeout duration
227227
/// for this to work is 10 seconds.
228+
@Deprecated(
229+
'Will be removed in v9. This functionality will not be supported anymore.')
228230
static void setAppStartEnd(DateTime appStartEnd) {
229231
// ignore: invalid_use_of_internal_member
230232
final integrations = Sentry.currentHub.options.integrations

flutter/lib/src/sentry_flutter_options.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ class SentryFlutterOptions extends SentryOptions {
179179
/// first transaction. Set to false when configuring option to disable or if
180180
/// you want to set the end time of app startup manually using
181181
/// [SentryFlutter.setAppStartEnd].
182+
@Deprecated(
183+
'Will be removed in v9. In order to disable app starts disable it via option.removeIntegration(...) instead')
182184
bool autoAppStart = true;
183185

184186
/// Automatically attaches a screenshot when capturing an error or exception.

flutter/sentry-native/CMakeCache.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Basically, this is a properties file we use both in CMake and update-deps.yml to update dependencies.
33

44
repo=https://github.com/getsentry/sentry-native
5-
version=0.7.19
5+
version=0.7.20

flutter/test/integrations/native_app_start_integration_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void main() {
118118

119119
test('with disabled auto app start waits until appStartEnd is set',
120120
() async {
121+
// ignore: deprecated_member_use_from_same_package
121122
fixture.options.autoAppStart = false;
122123

123124
fixture.callIntegration();
@@ -137,6 +138,7 @@ void main() {
137138
});
138139

139140
test('with disabled auto app start waits until timeout', () async {
141+
// ignore: deprecated_member_use_from_same_package
140142
fixture.options.autoAppStart = false;
141143

142144
fixture.callIntegration();

0 commit comments

Comments
 (0)