Skip to content

Commit

Permalink
feat: added support for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Nov 12, 2023
1 parent 08d4881 commit 0630814
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/core/alice_core.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:io';

import 'package:alice/core/alice_logger.dart';
import 'package:alice/core/alice_utils.dart';
Expand Down Expand Up @@ -66,12 +67,14 @@ class AliceCore {
_callsSubscription = callsSubject.listen((_) => _onCallsChanged());
}
if (showInspectorOnShake) {
_shakeDetector = ShakeDetector.autoStart(
onPhoneShake: () {
navigateToCallListScreen();
},
shakeThresholdGravity: 4,
);
if (Platform.isAndroid || Platform.isIOS) {
_shakeDetector = ShakeDetector.autoStart(
onPhoneShake: () {
navigateToCallListScreen();
},
shakeThresholdGravity: 4,
);
}
}
}

Expand Down

0 comments on commit 0630814

Please sign in to comment.