Skip to content

Commit 188f470

Browse files
authored
Fix: Rename auto initialize property (#857)
1 parent f13b57b commit 188f470

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
* Feat: Add Android thread to platform stacktraces (#853)
6+
* Fix: Rename auto initialize property (#857)
67

78
## 6.6.0-alpha.2
89

flutter/lib/src/default_integrations.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class NativeSdkIntegration extends Integration<SentryFlutterOptions> {
335335
@override
336336
FutureOr<void> call(Hub hub, SentryFlutterOptions options) async {
337337
_options = options;
338-
if (!options.autoInitializeNative) {
338+
if (!options.autoInitializeNativeSdk) {
339339
return;
340340
}
341341
try {
@@ -381,7 +381,7 @@ class NativeSdkIntegration extends Integration<SentryFlutterOptions> {
381381
@override
382382
FutureOr<void> close() async {
383383
final options = _options;
384-
if (options != null && !options.autoInitializeNative) {
384+
if (options != null && !options.autoInitializeNativeSdk) {
385385
return;
386386
}
387387
try {

flutter/lib/src/sentry_flutter_options.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SentryFlutterOptions extends SentryOptions {
1717
/// NOTE: Be careful and only use this if you know what you are doing.
1818
/// If you use this flag, make sure a native SDK is running before the Flutter Engine initializes or events might not be captured.
1919
/// Defaults to `true`.
20-
bool autoInitializeNative = true;
20+
bool autoInitializeNativeSdk = true;
2121

2222
/// Enable or disable reporting of used packages.
2323
bool reportPackages = true;

flutter/test/default_integrations_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void main() {
262262
_channel.setMockMethodCallHandler((MethodCall methodCall) async {
263263
methodChannelCalled = true;
264264
});
265-
fixture.options.autoInitializeNative = false;
265+
fixture.options.autoInitializeNativeSdk = false;
266266

267267
final integration = NativeSdkIntegration(_channel);
268268

@@ -277,7 +277,7 @@ void main() {
277277
_channel.setMockMethodCallHandler((MethodCall methodCall) async {
278278
methodChannelCalled = true;
279279
});
280-
fixture.options.autoInitializeNative = false;
280+
fixture.options.autoInitializeNativeSdk = false;
281281

282282
final integration = NativeSdkIntegration(_channel);
283283

0 commit comments

Comments
 (0)