Fix ios Dinect (INT) config.
This commit is contained in:
@@ -56,7 +56,7 @@ android {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dinect_INT {
|
dinect_INT {
|
||||||
applicationId 'com.dinect.checker.int'
|
applicationId 'com.dinect.checker.int'
|
||||||
buildConfigField "String", "locale", "\"ru\""
|
buildConfigField "String", "locale", "\"ru\""
|
||||||
buildConfigField "String", "flavor", "\"dinect\""
|
buildConfigField "String", "flavor", "\"dinect\""
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
binaryMessenger:controller];
|
binaryMessenger:controller];
|
||||||
|
|
||||||
__weak FlutterMethodChannel* weekPlatformChannel = platformChannel;
|
__weak FlutterMethodChannel* weekPlatformChannel = platformChannel;
|
||||||
|
|
||||||
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||||
|
|
||||||
NSDictionary *settings = @{
|
NSDictionary *settings = @{
|
||||||
@"com.dinect.checker.dinect" : @{
|
@"com.dinect.checker.dinect" : @{
|
||||||
@"locale" : @"ru",
|
@"locale" : @"ru",
|
||||||
@@ -30,26 +30,15 @@
|
|||||||
@"appTitle" : @"Dinect",
|
@"appTitle" : @"Dinect",
|
||||||
@"showBonus" : @YES,
|
@"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" : @{
|
@"com.dinect.develop-iOS" : @{
|
||||||
@"locale" : @"ru",
|
@"locale" : @"ru",
|
||||||
@"flavor" : @"autobonus",
|
@"flavor" : @"dinect",
|
||||||
@"currency" : @643,
|
@"currency" : @643,
|
||||||
@"supportPhone" : @"8 800 555 35 35",
|
@"supportPhone" : @"8 800 555 35 35",
|
||||||
@"supportUrl" : @"http://yandex.ru",
|
@"supportUrl" : @"http://yandex.ru",
|
||||||
@"endPoint" : @"https://pos-api-int.dinect.com/20130701/",
|
@"endPoint" : @"https://pos-api-int.dinect.com/20130701/",
|
||||||
@"appToken" : @"9fec83cdca38c357e6b65dbb17514cdd36bf2a08",
|
@"appToken" : @"9fec83cdca38c357e6b65dbb17514cdd36bf2a08",
|
||||||
@"appTitle" : @"Autobonus (develop)",
|
@"appTitle" : @"Dinect (INT)",
|
||||||
@"showBonus" : @YES,
|
@"showBonus" : @YES,
|
||||||
},
|
},
|
||||||
@"com.dinect.checker.autoclub.app" : @{
|
@"com.dinect.checker.autoclub.app" : @{
|
||||||
@@ -73,22 +62,22 @@
|
|||||||
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
|
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
|
||||||
@"appTitle" : @"PIP",
|
@"appTitle" : @"PIP",
|
||||||
@"showBonus" : @YES,
|
@"showBonus" : @YES,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
NSDictionary *buildSettings = settings[bundleIdentifier];
|
NSDictionary *buildSettings = settings[bundleIdentifier];
|
||||||
|
|
||||||
NSLog(@"%@", bundleIdentifier);
|
NSLog(@"%@", bundleIdentifier);
|
||||||
|
|
||||||
if (!buildSettings) {
|
if (!buildSettings) {
|
||||||
NSLog(@"Settings for this bunndle id not defined (%@)", bundleIdentifier);
|
NSLog(@"Settings for this bunndle id not defined (%@)", bundleIdentifier);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[platformChannel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) {
|
[platformChannel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) {
|
||||||
NSLog(@"%@", call.method);
|
NSLog(@"%@", call.method);
|
||||||
|
|
||||||
NSLog(@"%@", buildSettings[@"supportPhone"]);
|
NSLog(@"%@", buildSettings[@"supportPhone"]);
|
||||||
|
|
||||||
if ([@"getLocale" isEqualToString:call.method]) {
|
if ([@"getLocale" isEqualToString:call.method]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user