Translate iOS scan page

This commit is contained in:
vtretyakov
2018-01-24 13:48:46 +07:00
parent 3f108ae928
commit 300c61fddf
2 changed files with 87 additions and 23 deletions

View File

@@ -3,6 +3,7 @@
#import "Autobonus-Swift.h"
#import "ZBarSDK.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
@@ -89,7 +90,9 @@
} else if ([@"getCurrency" isEqualToString:call.method]) {
result(buildSettings[@"currency"]);
} else if ([@"startScanner" isEqualToString:call.method]) {
ScannerViewController *modalViewController = [ScannerViewController new];
NSString *locale = call.arguments[@"locale"];
NSLog(@"locale is %@", locale);
ScannerViewController *modalViewController = [[ScannerViewController alloc] initWithLocale:locale];
modalViewController.platformChannel = weekPlatformChannel;
[controller presentViewController:modalViewController animated:YES completion:nil];
// [weekPlatformChannel invokeMethod:(@"findUserAndPurchase") arguments: @[@"79039441628", @"phone"]];