Merge branch 'bugfix/warnings' into 'develop'
Warning fix See merge request BPHV_MIPS/mvm_core!141
This commit is contained in:
commit
07ac92e0f5
@ -395,7 +395,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
|
|||||||
} else {
|
} else {
|
||||||
[MVMCoreDispatchUtility performBlockInBackground:^{
|
[MVMCoreDispatchUtility performBlockInBackground:^{
|
||||||
// Cannot linkaway, show error.
|
// Cannot linkaway, show error.
|
||||||
MVMCoreErrorObject *error = error = [[MVMCoreErrorObject alloc] initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle] message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] code:ErrorCodeLinkawayFailed domain:ErrorDomainNative location:[NSString stringWithFormat:@"%@_%@",NSStringFromClass([delegateObject.actionDelegate class]),KeyActionTypeLinkAway]];
|
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle] message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] code:ErrorCodeLinkawayFailed domain:ErrorDomainNative location:[NSString stringWithFormat:@"%@_%@",NSStringFromClass([delegateObject.actionDelegate class]),KeyActionTypeLinkAway]];
|
||||||
[self handleActionError:error actionInformation:actionInformation additionalData:additionalData delegateObject:delegateObject];
|
[self handleActionError:error actionInformation:actionInformation additionalData:additionalData delegateObject:delegateObject];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,11 +68,11 @@
|
|||||||
self.contextRoot = [actionMap string:KeyContextRoot];
|
self.contextRoot = [actionMap string:KeyContextRoot];
|
||||||
NSString *alternateBase = [actionMap string:@"baseURL"];
|
NSString *alternateBase = [actionMap string:@"baseURL"];
|
||||||
if (alternateBase) {
|
if (alternateBase) {
|
||||||
self.alternateBaseURL = [NSURL URLWithString:[alternateBase stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLHostAllowedCharacterSet]];
|
self.alternateBaseURL = [NSURL URLWithString:alternateBase];
|
||||||
}
|
}
|
||||||
NSString *url = [actionMap string:@"URL"];
|
NSString *url = [actionMap string:@"URL"];
|
||||||
if (url) {
|
if (url) {
|
||||||
self.URL = [NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
self.URL = [NSURL URLWithString:url];
|
||||||
}
|
}
|
||||||
self.actionMap = actionMap;
|
self.actionMap = actionMap;
|
||||||
self.customTimeoutTime = [actionMap optionalNumberForKey:@"customTimeoutTime"];
|
self.customTimeoutTime = [actionMap optionalNumberForKey:@"customTimeoutTime"];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user