File tree Expand file tree Collapse file tree 5 files changed +7
-25
lines changed
Expand file tree Collapse file tree 5 files changed +7
-25
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,3 @@ android {
4848flutter {
4949 source ' ../..'
5050}
51-
52- dependencies {
53- implementation " androidx.core:core:1.6.0-beta01"
54- implementation ' androidx.core:core-google-shortcuts:1.0.0-beta01'
55- }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
77 name: async
88 url: "https://pub.dartlang.org"
99 source: hosted
10- version: "2.5.0 "
10+ version: "2.6.1 "
1111 boolean_selector:
1212 dependency: transitive
1313 description:
@@ -113,7 +113,7 @@ packages:
113113 name: source_span
114114 url: "https://pub.dartlang.org"
115115 source: hosted
116- version: "1.8.0 "
116+ version: "1.8.1 "
117117 stack_trace:
118118 dependency: transitive
119119 description:
@@ -148,7 +148,7 @@ packages:
148148 name: test_api
149149 url: "https://pub.dartlang.org"
150150 source: hosted
151- version: "0.2.19 "
151+ version: "0.3.0 "
152152 typed_data:
153153 dependency: transitive
154154 description:
Original file line number Diff line number Diff line change @@ -17,14 +17,8 @@ export 'package:flutter_shortcuts/src/helper/helper.dart';
1717
1818class FlutterShortcuts {
1919 /// [initialize] initializes the flutter_shortcuts plugin.
20- Future <void > initialize ({
21- bool debug = true ,
22- bool voiceAssistantVisibility = true ,
23- }) async {
24- FlutterShortcutsPlatform .instance.initialize (
25- debug,
26- voiceAssistantVisibility,
27- );
20+ Future <void > initialize ({bool debug = true }) async {
21+ FlutterShortcutsPlatform .instance.initialize (debug);
2822 }
2923
3024 /// [listenAction] performs action when shortcut is initiated.
Original file line number Diff line number Diff line change @@ -20,13 +20,9 @@ class FlutterShortcutsMethodCallHandler extends FlutterShortcutsPlatform {
2020 MethodChannel get channel => _channel;
2121
2222 @override
23- Future <void > initialize (
24- bool debug,
25- bool voiceAssistantVisibility,
26- ) async {
23+ Future <void > initialize (bool debug) async {
2724 Map <String , String > initValue = {
2825 'debug' : kReleaseMode ? false .toString () : debug.toString (),
29- 'voiceAssistantVisibility' : voiceAssistantVisibility.toString (),
3026 };
3127 await channel.invokeMethod ('initialize' , [initValue]);
3228 }
Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ abstract class FlutterShortcutsPlatform extends PlatformInterface {
2828 _instance = instance;
2929 }
3030
31- Future <void > initialize (
32- bool debug,
33- bool voiceAssistantVisibility,
34- ) async {
31+ Future <void > initialize (bool debug) async {
3532 throw UnimplementedError ("initialize() has not been implemented." );
3633 }
3734
You can’t perform that action at this time.
0 commit comments