Show version name in settings, fix progress bar when purchase ended wit error

This commit is contained in:
Ivan Murashov
2018-03-12 22:33:31 +03:00
parent 11640c0a16
commit 02322a73ef
5 changed files with 44 additions and 12 deletions

View File

@@ -98,19 +98,21 @@
[controller presentViewController:modalViewController animated:YES completion:nil];
} else if ([@"isOnline" isEqualToString:call.method]) {
result(@YES);
} else if ([@"getSupportPhone" isEqualToString:call.method]) {
} else if ([@"getSupportPhone" isEqualToString:call.method]) {
result(buildSettings[@"supportPhone"]);
} else if ([@"getSupportUrl" isEqualToString:call.method]) {
result(buildSettings[@"supportUrl"]);
} else if ([@"getEndpoint" isEqualToString:call.method]) {
} else if ([@"getEndpoint" isEqualToString:call.method]) {
result(buildSettings[@"endPoint"]);
} else if ([@"getAppToken" isEqualToString:call.method]) {
} else if ([@"getAppToken" isEqualToString:call.method]) {
result(buildSettings[@"appToken"]);
} else if ([@"getAppTitle" isEqualToString:call.method]) {
} else if ([@"getAppTitle" isEqualToString:call.method]) {
result(buildSettings[@"appTitle"]);
} else if ([@"showBonus" isEqualToString:call.method]) {
} else if ([@"showBonus" isEqualToString:call.method]) {
result(buildSettings[@"showBonus"]);
} else {
} else if ([@"getVersionName" isEqualToString:call.method]) {
result([[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleShortVersionString"]);
} else {
result(FlutterMethodNotImplemented);
}