13450 merge 12267_new_flow and update to new flutter version
This commit is contained in:
@@ -12,9 +12,7 @@
|
||||
|
||||
FlutterMethodChannel* platformChannel = [FlutterMethodChannel
|
||||
methodChannelWithName:@"com.dinect.checker/instance_id"
|
||||
binaryMessenger:controller];
|
||||
|
||||
__weak FlutterMethodChannel* weekPlatformChannel = platformChannel;
|
||||
binaryMessenger:controller.binaryMessenger];
|
||||
|
||||
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||
|
||||
@@ -116,7 +114,7 @@
|
||||
result(buildSettings[@"currency"]);
|
||||
} else if ([@"startScanner" isEqualToString:call.method]) {
|
||||
ScannerViewController *modalViewController = [[ScannerViewController alloc] initWithStrings:call.arguments];
|
||||
modalViewController.platformChannel = weekPlatformChannel;
|
||||
modalViewController.platformChannel = platformChannel;
|
||||
[controller presentViewController:modalViewController animated:YES completion:nil];
|
||||
} else if ([@"isOnline" isEqualToString:call.method]) {
|
||||
result(@YES);
|
||||
|
||||
@@ -272,7 +272,7 @@ import ZXingObjC
|
||||
} else {
|
||||
print("Result is not nil (ios code)");
|
||||
self.dismiss(animated: true) {
|
||||
self.platformChannel?.invokeMethod("purchase", arguments: [result, str])
|
||||
self.platformChannel?.invokeMethod("scanSuccess", arguments: [result!, str])
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user