From 054578dbbc772c915900a0065ca27f131730c403 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 1 Feb 2023 13:27:26 -0600 Subject: [PATCH] added initial 55 Templates Signed-off-by: Matt Bruce --- .../JSONCreator.xcodeproj/project.pbxproj | 4 +++ JSONCreator_iOS/JSONCreator/AppDelegate.swift | 13 ++++--- .../JSONCreator/JSON/Samples/5G-3Layer.json | 35 +++++++++++++++++++ dependency.txt | 2 +- 4 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 JSONCreator_iOS/JSONCreator/JSON/Samples/5G-3Layer.json diff --git a/JSONCreator_iOS/JSONCreator.xcodeproj/project.pbxproj b/JSONCreator_iOS/JSONCreator.xcodeproj/project.pbxproj index fcc07ad..d1c705e 100644 --- a/JSONCreator_iOS/JSONCreator.xcodeproj/project.pbxproj +++ b/JSONCreator_iOS/JSONCreator.xcodeproj/project.pbxproj @@ -89,6 +89,7 @@ EA5B69702866BC1000B17D2E /* MVMCoreUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA5B696D2866BC1000B17D2E /* MVMCoreUI.framework */; }; EA5B69712866BC1000B17D2E /* MVMCoreUI.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EA5B696D2866BC1000B17D2E /* MVMCoreUI.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; EA985CC2298AED7000F2FF2E /* BGThreeLayerTemplate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA985CC1298AED7000F2FF2E /* BGThreeLayerTemplate.swift */; }; + EA985CC4298AF46100F2FF2E /* dependency.txt in Resources */ = {isa = PBXBuildFile; fileRef = EA985CC3298AF46000F2FF2E /* dependency.txt */; }; EAA658152875FA5E00484A7D /* VDSFormControlsTokens.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAA658142875FA5E00484A7D /* VDSFormControlsTokens.xcframework */; }; EAA658162875FA5E00484A7D /* VDSFormControlsTokens.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EAA658142875FA5E00484A7D /* VDSFormControlsTokens.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; EACA5E5E2853DBC900CBA65B /* VDSColorTokens.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EACA5E5D2853DBC900CBA65B /* VDSColorTokens.xcframework */; }; @@ -179,6 +180,7 @@ EA7E676927582F2200ABF773 /* MVMCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = MVMCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; EA7E676A27582F2200ABF773 /* MVMCoreUI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = MVMCoreUI.framework; sourceTree = BUILT_PRODUCTS_DIR; }; EA985CC1298AED7000F2FF2E /* BGThreeLayerTemplate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BGThreeLayerTemplate.swift; sourceTree = ""; }; + EA985CC3298AF46000F2FF2E /* dependency.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = dependency.txt; path = ../dependency.txt; sourceTree = ""; }; EAA658142875FA5E00484A7D /* VDSFormControlsTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSFormControlsTokens.xcframework; path = ../SharedFrameworks/VDSFormControlsTokens.xcframework; sourceTree = ""; }; EACA5E5D2853DBC900CBA65B /* VDSColorTokens.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = VDSColorTokens.xcframework; path = ../SharedFrameworks/VDSColorTokens.xcframework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -214,6 +216,7 @@ D2B1E3E622F4A68F0065F95C = { isa = PBXGroup; children = ( + EA985CC3298AF46000F2FF2E /* dependency.txt */, D2B1E3F122F4A68F0065F95C /* JSONCreator */, D2B1E3F022F4A68F0065F95C /* Products */, D2B1E42A22F9D0D90065F95C /* Frameworks */, @@ -440,6 +443,7 @@ files = ( D2B1E3FF22F4A6930065F95C /* LaunchScreen.storyboard in Resources */, D2B1E3FC22F4A6930065F95C /* Assets.xcassets in Resources */, + EA985CC4298AF46100F2FF2E /* dependency.txt in Resources */, D2B1E40A22F4C9F00065F95C /* JSON in Resources */, D2B1E3FA22F4A68F0065F95C /* Main.storyboard in Resources */, ); diff --git a/JSONCreator_iOS/JSONCreator/AppDelegate.swift b/JSONCreator_iOS/JSONCreator/AppDelegate.swift index 26f5d70..aa8eef5 100644 --- a/JSONCreator_iOS/JSONCreator/AppDelegate.swift +++ b/JSONCreator_iOS/JSONCreator/AppDelegate.swift @@ -114,7 +114,7 @@ extension AppDelegate: MVMCoreGlobalTopAlertDelegateProtocol { } return topAlertView; } - + func priorityForTopAlert(by object: MVMCoreTopAlertObject) -> Operation.QueuePriority { return object.queuePriority } @@ -122,9 +122,14 @@ extension AppDelegate: MVMCoreGlobalTopAlertDelegateProtocol { extension AppDelegate { func register(){ - if let mapper = CoreUIObject.sharedInstance()?.viewControllerMapping { - print(mapper) - //mapper.register(template: BGThreeLayerTemplate.self) + CoreUIObject.sharedInstance()?.register(template: BGThreeLayerTemplate.self) + } +} + +extension CoreUIObject { + func register(template: T.Type) { + if let mapper = viewControllerMapping as? MVMCoreUIViewControllerMappingObject { + mapper.register(template: BGThreeLayerTemplate.self) } } } diff --git a/JSONCreator_iOS/JSONCreator/JSON/Samples/5G-3Layer.json b/JSONCreator_iOS/JSONCreator/JSON/Samples/5G-3Layer.json new file mode 100644 index 0000000..de2be29 --- /dev/null +++ b/JSONCreator_iOS/JSONCreator/JSON/Samples/5G-3Layer.json @@ -0,0 +1,35 @@ +{ + "Page": { + "template": "bgThreeLayer", + "pageType": "moleculeStack", + "screenHeading": "Tilet Sample", + "hideFabOverlay": true, + "suppressPostLaunchRequests": false, + "tabBarHidden": true, + "backgroundImage": { + "moleculeName": "image", + "image": "https://ss7.vzw.com/is/image/VerizonWireless/Movers_Titan_getstarted" + }, + "header": { + "moleculeName": "header", + "molecule": { + "moleculeName": "label", + "fontStyle": "BoldTitle2XLarge", + "text": "Let's Get Started." + } + }, + "middle": {}, + "footer": { + "moleculeName": "container", + "molecule": { + "moleculeName": "button", + "title": "Continue", + "action": { + "actionType": "openPage", + "pageType": "rtlVisitUs" + } + } + } + } +} + diff --git a/dependency.txt b/dependency.txt index e567159..9faf6e3 100644 --- a/dependency.txt +++ b/dependency.txt @@ -1,6 +1,6 @@ mvm_core https://gitlab.verizon.com/BPHV_MIPS/mvm_core.git develop -mvm_core_ui https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui.git develop +mvm_core_ui https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui.git feature/5G-Template vds_ios https://gitlab.verizon.com/BPHV_MIPS/vds_ios.git develop