Merge branch 'feature/ONEAPP-3998' into 'develop'

ONEAPP-3998: Convenience function to simplify the current objc-swift bridge of...

### Summary
Allows convenient testing of flows through json modification.

### JIRA Ticket
https://onejira.verizon.com/browse/ONEAPP-3998

Co-authored-by: Scott Pfeil <Scott.Pfeil3@verizonwireless.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/266
This commit is contained in:
Hedden, Kyle Matthew 2023-06-22 15:03:32 +00:00
commit 674cff506d
2 changed files with 7 additions and 3 deletions

View File

@ -19,3 +19,9 @@ public extension ActionDelegateProtocol {
try await MVMCoreActionHandler.shared()?.handleAction(with: model, additionalData: additionalData, delegateObject: delegateObject)
}
}
public extension MVMCoreActionDelegateProtocol {
func action(with model: ActionModelProtocol, additionalData: [AnyHashable : Any]?, delegateObject: DelegateObject?) async throws {
try await (self as? ActionDelegateProtocol)?.performAction(with: model, additionalData: additionalData, delegateObject: delegateObject)
}
}

View File

@ -25,9 +25,7 @@
self.session = [[MVMCoreSessionObject alloc] init];
self.cache = [[MVMCoreCache alloc] init];
self.viewControllerMapping = [[MVMCoreViewControllerMappingObject alloc] init];
[MVMCoreDispatchUtility performSyncBlockOnMainThread:^{
self.sessionHandler = [[MVMCoreSessionTimeHandler alloc] init];
}];
self.sessionHandler = [[MVMCoreSessionTimeHandler alloc] init];
self.actionHandler = [[MVMCoreActionHandler alloc] init];
self.loggingDelegate = [[MVMCoreLoggingHandler alloc] init];
self.loadHandler = [[MVMCoreLoadHandler alloc] init];