13450 merge 12267_new_flow and update to new flutter version

This commit is contained in:
nikitateplyakov
2019-11-20 16:37:36 +03:00
16 changed files with 490 additions and 226 deletions

View File

@@ -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);

View File

@@ -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])
}
}
})