File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,14 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
43
43
}
44
44
}
45
45
46
- NSString *token = call.arguments[@" token" ];
47
-
46
+
47
+ + (void )startWithToken : (NSString *)token invocationEvents : (NSArray *)invocationEventsArray {
48
+ NSDictionary *invocationEventsMap = [self constants ];
48
49
NSInteger invocationEvents = IBGInvocationEventNone;
49
- for (NSString * invocationEvent in call.arguments[ @" invocationEvents " ] ) {
50
+ for (NSString * invocationEvent in invocationEventsArray ) {
50
51
invocationEvents |= ((NSNumber *) invocationEventsMap[invocationEvent]).integerValue ;
51
52
}
52
-
53
53
[Instabug startWithToken: token invocationEvents: invocationEvents];
54
- result (nil );
55
- } else {
56
- result (FlutterMethodNotImplemented);
57
- }
58
54
}
59
55
60
56
@end
You can’t perform that action at this time.
0 commit comments