Let shouldEnableAnalytics not be implemented

It's currently not implemented in ios
This commit is contained in:
Vishesh Handa
2019-06-03 00:18:08 +02:00
parent fb2cbbf3ce
commit 24a5f9b78d

View File

@ -21,9 +21,14 @@ Future<String> getVersionString() async {
}
Future<bool> shouldEnableAnalytics() async {
const _platform = const MethodChannel('gitjournal.io/git');
final bool result = await _platform.invokeMethod('shouldEnableAnalytics');
return result;
try {
const _platform = const MethodChannel('gitjournal.io/git');
final bool result = await _platform.invokeMethod('shouldEnableAnalytics');
return result;
} on MissingPluginException catch (e) {
print("shouldEnableAnalytics: $e");
return false;
}
}
/// adb logcat