iOS zxing scanner, iOS localization
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#include "AppDelegate.h"
|
||||
#include "GeneratedPluginRegistrant.h"
|
||||
#import "Autobonus-Swift.h"
|
||||
#import "ZBarSDK.h"
|
||||
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
@@ -90,14 +88,9 @@
|
||||
} else if ([@"getCurrency" isEqualToString:call.method]) {
|
||||
result(buildSettings[@"currency"]);
|
||||
} else if ([@"startScanner" isEqualToString:call.method]) {
|
||||
NSString *locale = call.arguments[@"locale"];
|
||||
NSLog(@"locale is %@", locale);
|
||||
ScannerViewController *modalViewController = [[ScannerViewController alloc] initWithLocale:locale];
|
||||
ScannerViewController *modalViewController = [[ScannerViewController alloc] initWithStrings:call.arguments];
|
||||
modalViewController.platformChannel = weekPlatformChannel;
|
||||
[controller presentViewController:modalViewController animated:YES completion:nil];
|
||||
// [weekPlatformChannel invokeMethod:(@"findUserAndPurchase") arguments: @[@"79039441628", @"phone"]];
|
||||
|
||||
|
||||
} else if ([@"isOnline" isEqualToString:call.method]) {
|
||||
result(@YES);
|
||||
} else if ([@"getSupportPhone" isEqualToString:call.method]) {
|
||||
|
||||
Reference in New Issue
Block a user