File tree 5 files changed +12
-0
lines changed
5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Deprecations
6
+
7
+ - Deprecate ` autoAppStart ` and ` setAppStartEnd ` ([ #2681 ] ( https://github.com/getsentry/sentry-dart/pull/2681 ) )
8
+
5
9
### Other
6
10
7
11
- Remove macOS display refresh rate support ([ #2628 ] ( https://github.com/getsentry/sentry-dart/pull/2628 ) )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class NativeAppStartIntegration extends Integration<SentryFlutterOptions> {
18
18
DateTime ? _appStartEnd;
19
19
20
20
/// This timestamp marks the end of app startup. Either set by calling
21
+ // ignore: deprecated_member_use_from_same_package
21
22
/// [SentryFlutter.setAppStartEnd] . The [SentryFlutterOptions.autoAppStart]
22
23
/// option needs to be false.
23
24
@internal
@@ -43,6 +44,7 @@ class NativeAppStartIntegration extends Integration<SentryFlutterOptions> {
43
44
44
45
try {
45
46
DateTime ? appStartEnd;
47
+ // ignore: deprecated_member_use_from_same_package
46
48
if (options.autoAppStart) {
47
49
// ignore: invalid_use_of_internal_member
48
50
appStartEnd = DateTime .fromMicrosecondsSinceEpoch (timings.first
Original file line number Diff line number Diff line change @@ -230,6 +230,8 @@ mixin SentryFlutter {
230
230
/// Manually set when your app finished startup. Make sure to set
231
231
/// [SentryFlutterOptions.autoAppStart] to false on init. The timeout duration
232
232
/// for this to work is 10 seconds.
233
+ @Deprecated (
234
+ 'Will be removed in v9. This functionality will not be supported anymore.' )
233
235
static void setAppStartEnd (DateTime appStartEnd) {
234
236
// ignore: invalid_use_of_internal_member
235
237
final integrations = Sentry .currentHub.options.integrations
Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ class SentryFlutterOptions extends SentryOptions {
179
179
/// first transaction. Set to false when configuring option to disable or if
180
180
/// you want to set the end time of app startup manually using
181
181
/// [SentryFlutter.setAppStartEnd] .
182
+ @Deprecated (
183
+ 'Will be removed in v9. In order to disable app starts disable it via option.removeIntegration(...) instead' )
182
184
bool autoAppStart = true ;
183
185
184
186
/// Automatically attaches a screenshot when capturing an error or exception.
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ void main() {
118
118
119
119
test ('with disabled auto app start waits until appStartEnd is set' ,
120
120
() async {
121
+ // ignore: deprecated_member_use_from_same_package
121
122
fixture.options.autoAppStart = false ;
122
123
123
124
fixture.callIntegration ();
@@ -137,6 +138,7 @@ void main() {
137
138
});
138
139
139
140
test ('with disabled auto app start waits until timeout' , () async {
141
+ // ignore: deprecated_member_use_from_same_package
140
142
fixture.options.autoAppStart = false ;
141
143
142
144
fixture.callIntegration ();
You can’t perform that action at this time.
0 commit comments