mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
Let shouldEnableAnalytics not be implemented
It's currently not implemented in ios
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user