Skip to content

Commit 612efb6

Browse files
committed
fix: remove platfrom check from NDK API
1 parent 5fcad06 commit 612efb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/modules/crash_reporting.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ class CrashReporting {
122122
/// [boolean] isEnabled
123123
///
124124
/// Requires the [Instabug NDK package](https://pub.dev/packages/instabug_flutter_ndk) to be added to the project for this to work.
125+
///
126+
/// This method is Android-only and has no effect on iOS.
125127
static Future<void> setNDKEnabled(bool isEnabled) async {
126-
if (Platform.isAndroid) {
127-
return _host.setNDKEnabled(isEnabled);
128-
}
128+
return _host.setNDKEnabled(isEnabled);
129129
}
130130
}

0 commit comments

Comments
 (0)