Fix ios Dinect (INT) config.

This commit is contained in:
Ivan Murashov
2018-03-04 22:26:06 +03:00
parent 538018bc52
commit f7ce5a8ed9
2 changed files with 11 additions and 22 deletions

View File

@@ -56,7 +56,7 @@ android {
}
dinect_INT {
dinect_INT {
applicationId 'com.dinect.checker.int'
buildConfigField "String", "locale", "\"ru\""
buildConfigField "String", "flavor", "\"dinect\""

View File

@@ -15,9 +15,9 @@
binaryMessenger:controller];
__weak FlutterMethodChannel* weekPlatformChannel = platformChannel;
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
NSDictionary *settings = @{
@"com.dinect.checker.dinect" : @{
@"locale" : @"ru",
@@ -30,26 +30,15 @@
@"appTitle" : @"Dinect",
@"showBonus" : @YES,
},
@"com.dinect.checker.int" = @{
@"locale" : @"ru",
@"flavor" : @"dinect",
@"currency" : @643,
@"supportPhone" : @"8-800-77-55-032",
@"supportUrl" : @"http://www.dinect.com",
@"endPoint" : @"https://pos-api-int.dinect.com/20130701/",
@"appToken" : @"9fec83cdca38c357e6b65dbb17514cdd36bf2a08",
@"appTitle" : @"Dinect (INT)",
@"showBonus" : @YES
},
@"com.dinect.develop-iOS" : @{
@"locale" : @"ru",
@"flavor" : @"autobonus",
@"flavor" : @"dinect",
@"currency" : @643,
@"supportPhone" : @"8 800 555 35 35",
@"supportUrl" : @"http://yandex.ru",
@"endPoint" : @"https://pos-api-int.dinect.com/20130701/",
@"appToken" : @"9fec83cdca38c357e6b65dbb17514cdd36bf2a08",
@"appTitle" : @"Autobonus (develop)",
@"appTitle" : @"Dinect (INT)",
@"showBonus" : @YES,
},
@"com.dinect.checker.autoclub.app" : @{
@@ -73,22 +62,22 @@
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
@"appTitle" : @"PIP",
@"showBonus" : @YES,
},
},
};
NSDictionary *buildSettings = settings[bundleIdentifier];
NSLog(@"%@", bundleIdentifier);
if (!buildSettings) {
NSLog(@"Settings for this bunndle id not defined (%@)", bundleIdentifier);
abort();
}
[platformChannel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) {
NSLog(@"%@", call.method);
NSLog(@"%@", buildSettings[@"supportPhone"]);
if ([@"getLocale" isEqualToString:call.method]) {