mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +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 {
|
Future<bool> shouldEnableAnalytics() async {
|
||||||
const _platform = const MethodChannel('gitjournal.io/git');
|
try {
|
||||||
final bool result = await _platform.invokeMethod('shouldEnableAnalytics');
|
const _platform = const MethodChannel('gitjournal.io/git');
|
||||||
return result;
|
final bool result = await _platform.invokeMethod('shouldEnableAnalytics');
|
||||||
|
return result;
|
||||||
|
} on MissingPluginException catch (e) {
|
||||||
|
print("shouldEnableAnalytics: $e");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// adb logcat
|
/// adb logcat
|
||||||
|
Reference in New Issue
Block a user