├── .gitignore ├── .DS_Store ├── bin ├── Banner.jpg ├── Distribution.png ├── WS1_Actions.png ├── WS1_Actions_3501.jpg ├── AppReviewInformation.png └── WS1_Actions_appconfig.xml ├── Commands ├── .DS_Store ├── Assets.xcassets │ ├── Contents.json │ ├── .DS_Store │ ├── wipe.imageset │ │ ├── wipe.png │ │ └── Contents.json │ ├── device.imageset │ │ ├── device.png │ │ └── Contents.json │ ├── settings.imageset │ │ ├── .DS_Store │ │ ├── settings.png │ │ └── Contents.json │ ├── background.imageset │ │ ├── .DS_Store │ │ ├── background.png │ │ └── Contents.json │ ├── devicewipe.imageset │ │ ├── .DS_Store │ │ ├── devicewipe.png │ │ └── Contents.json │ ├── syncdevice.imageset │ │ ├── .DS_Store │ │ ├── sync.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── ActionsIcon-20.png │ │ ├── ActionsIcon-29.png │ │ ├── ActionsIcon-40.png │ │ ├── ActionsIcon-76.png │ │ ├── ActionsIcon-1024.png │ │ ├── ActionsIcon-20@2x.png │ │ ├── ActionsIcon-20@3x.png │ │ ├── ActionsIcon-29@2x.png │ │ ├── ActionsIcon-29@3x.png │ │ ├── ActionsIcon-40@2x.png │ │ ├── ActionsIcon-40@3x.png │ │ ├── ActionsIcon-60@2x.png │ │ ├── ActionsIcon-60@3x.png │ │ ├── ActionsIcon-76@2x.png │ │ ├── ActionsIcon-83.5@2x.png │ │ └── Contents.json │ ├── wifi.imageset │ │ ├── Tilda_Icons_7cafe_wifi.pdf │ │ └── Contents.json │ ├── clearpasscode.imageset │ │ ├── Clear Passcode.png │ │ └── Contents.json │ ├── enterprisewipe.imageset │ │ ├── Enterprise Wipe.png │ │ └── Contents.json │ ├── pluto-fatal-error.imageset │ │ ├── pluto-fatal-error.png │ │ └── Contents.json │ ├── bluetooth.imageset │ │ ├── Tilda_Icons_30_system_bleutooth.pdf │ │ └── Contents.json │ ├── default.imageset │ │ ├── Tilda_Icons_38_Cleaning company_clean.pdf │ │ └── Contents.json │ └── error-red.colorset │ │ └── Contents.json ├── Omnissa_Action.xcdatamodeld │ ├── .xccurrentversion │ └── Omnissa_Action.xcdatamodel │ │ └── contents ├── Extensions │ └── String.swift ├── Commands Endpoints │ ├── DeviceSyncEndpoint.swift │ ├── DeviceClearPasscodeEndpoint.swift │ ├── DeviceEnterpriseWipeEndpoint.swift │ ├── DeviceShutdownEndpoint.swift │ ├── DeviceCommandEndpoint.swift │ └── DeviceWipeEndpoint.swift ├── AppDelegate.swift ├── UI │ ├── Dashboard │ │ ├── OverDashboardViewController.swift │ │ ├── ActionCell.swift │ │ └── DashboardViewController.swift │ ├── DashboardPresenter.swift │ ├── TroubleshootViewController.swift │ ├── ConfigurationViewController.swift │ └── SetupViewController.swift ├── Network Service │ ├── ConsoleAuthorizer.swift │ └── NetworkService.swift ├── Models │ ├── APIConfiguration.swift │ ├── Actions.swift │ └── AppConfig.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── Context.swift ├── Screenshots for AppStore Submission ├── .DS_Store ├── iPhone 5.5" Display │ ├── iPhone 8 Plus_Image2.png │ ├── iPhone 8 Plus_Image3.png │ └── iPhone 8 Plus_Image1.png.png ├── iPhone 6.5" Display │ ├── iPhone 11 Pro Max_Image1.png │ ├── iPhone 11 Pro Max_Image2.png │ └── iPhone 11 Pro Max_Image3.png └── iPad Pro 12.9" Display │ ├── iPad Pro (12.9-inch) (2nd and 3rd generation)_Image1.png │ ├── iPad Pro (12.9-inch) (2nd and 3rd generation)_Image2.png │ └── iPad Pro (12.9-inch) (2nd and 3rd generation)_Image3.png ├── Commands.xcodeproj ├── project.xcworkspace │ ├── xcuserdata │ │ ├── mlazim.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ ├── pevans.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ ├── rahul.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── npitchandi.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcuserdata │ ├── rahul.xcuserdatad │ │ ├── xcschemes │ │ │ └── xcschememanagement.plist │ │ └── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ └── mlazim.xcuserdatad │ │ ├── xcschemes │ │ └── xcschememanagement.plist │ │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist ├── xcshareddata │ └── xcschemes │ │ └── Commands.xcscheme └── project.pbxproj ├── CommandsTests ├── Info.plist └── ContextSetupTests.swift ├── CommandsUITests ├── Info.plist └── Omnissa_ActionUITests.swift ├── LICENSE.txt ├── CONTRIBUTING.md ├── CODE_OF_CONDUCT.md └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/.DS_Store -------------------------------------------------------------------------------- /bin/Banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/bin/Banner.jpg -------------------------------------------------------------------------------- /Commands/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/.DS_Store -------------------------------------------------------------------------------- /bin/Distribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/bin/Distribution.png -------------------------------------------------------------------------------- /bin/WS1_Actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/bin/WS1_Actions.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /bin/WS1_Actions_3501.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/bin/WS1_Actions_3501.jpg -------------------------------------------------------------------------------- /bin/AppReviewInformation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/bin/AppReviewInformation.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/.DS_Store -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/.DS_Store -------------------------------------------------------------------------------- /Commands/Assets.xcassets/wipe.imageset/wipe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/wipe.imageset/wipe.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/device.imageset/device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/device.imageset/device.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/settings.imageset/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/settings.imageset/.DS_Store -------------------------------------------------------------------------------- /Commands/Assets.xcassets/background.imageset/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/background.imageset/.DS_Store -------------------------------------------------------------------------------- /Commands/Assets.xcassets/devicewipe.imageset/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/devicewipe.imageset/.DS_Store -------------------------------------------------------------------------------- /Commands/Assets.xcassets/settings.imageset/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/settings.imageset/settings.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/syncdevice.imageset/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/syncdevice.imageset/.DS_Store -------------------------------------------------------------------------------- /Commands/Assets.xcassets/syncdevice.imageset/sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/syncdevice.imageset/sync.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/background.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/background.imageset/background.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/devicewipe.imageset/devicewipe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/devicewipe.imageset/devicewipe.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-76.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-1024.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-20@3x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-29@3x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-40@3x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-60@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-60@3x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-76@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/wifi.imageset/Tilda_Icons_7cafe_wifi.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/wifi.imageset/Tilda_Icons_7cafe_wifi.pdf -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/AppIcon.appiconset/ActionsIcon-83.5@2x.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/clearpasscode.imageset/Clear Passcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/clearpasscode.imageset/Clear Passcode.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/enterprisewipe.imageset/Enterprise Wipe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/enterprisewipe.imageset/Enterprise Wipe.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/pluto-fatal-error.imageset/pluto-fatal-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/pluto-fatal-error.imageset/pluto-fatal-error.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/bluetooth.imageset/Tilda_Icons_30_system_bleutooth.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/bluetooth.imageset/Tilda_Icons_30_system_bleutooth.pdf -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image2.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image3.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/default.imageset/Tilda_Icons_38_Cleaning company_clean.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands/Assets.xcassets/default.imageset/Tilda_Icons_38_Cleaning company_clean.pdf -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image1.png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 5.5" Display/iPhone 8 Plus_Image1.png.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image1.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image2.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPhone 6.5" Display/iPhone 11 Pro Max_Image3.png -------------------------------------------------------------------------------- /Commands/Assets.xcassets/syncdevice.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "sync.png", 5 | "idiom" : "universal" 6 | } 7 | ], 8 | "info" : { 9 | "author" : "xcode", 10 | "version" : 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/settings.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "settings.png", 5 | "idiom" : "universal" 6 | } 7 | ], 8 | "info" : { 9 | "author" : "xcode", 10 | "version" : 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/xcuserdata/mlazim.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands.xcodeproj/project.xcworkspace/xcuserdata/mlazim.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/xcuserdata/pevans.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands.xcodeproj/project.xcworkspace/xcuserdata/pevans.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/xcuserdata/rahul.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands.xcodeproj/project.xcworkspace/xcuserdata/rahul.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Commands/Assets.xcassets/devicewipe.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "devicewipe.png", 5 | "idiom" : "universal" 6 | } 7 | ], 8 | "info" : { 9 | "author" : "xcode", 10 | "version" : 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/wifi.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Tilda_Icons_7cafe_wifi.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/xcuserdata/npitchandi.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Commands.xcodeproj/project.xcworkspace/xcuserdata/npitchandi.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Commands/Assets.xcassets/bluetooth.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Tilda_Icons_30_system_bleutooth.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Commands/Assets.xcassets/default.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Tilda_Icons_38_Cleaning company_clean.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image1.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image2.png -------------------------------------------------------------------------------- /Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omnissa-archive/workspaceone-commands-for-ios/master/Screenshots for AppStore Submission/iPad Pro 12.9" Display/iPad Pro (12.9-inch) (2nd and 3rd generation)_Image3.png -------------------------------------------------------------------------------- /Commands.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Commands/Omnissa_Action.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | Omnissa_Action.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "background.png", 5 | "idiom" : "universal" 6 | } 7 | ], 8 | "info" : { 9 | "author" : "xcode", 10 | "version" : 1 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "original" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Commands/Omnissa_Action.xcdatamodeld/Omnissa_Action.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Commands/Extensions/String.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 2/17/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | extension String { 11 | 12 | func base64Encoded() -> String? { 13 | if let data = self.data(using: .utf8) { 14 | return data.base64EncodedString() 15 | } 16 | return nil 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/wipe.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "wipe.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/device.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "device.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Commands.xcodeproj/xcuserdata/rahul.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Commands.xcscheme_^#shared#^_ 8 | 9 | isShown 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/clearpasscode.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Clear Passcode.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/enterprisewipe.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "Enterprise Wipe.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/pluto-fatal-error.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "pluto-fatal-error.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceSyncEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceQueryEndpoint.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 5/1/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | class DeviceSyncEndpoint: DeviceCommandEndpoint { 11 | var command: String = "SyncDevice" 12 | 13 | var networkService: NetworkService 14 | 15 | init(service: NetworkService) { 16 | self.networkService = service 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceClearPasscodeEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceLockEndpoint.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 4/7/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | class DeviceClearPasscodeEndpoint: DeviceCommandEndpoint { 11 | var command: String = "ClearPasscode" 12 | 13 | var networkService: NetworkService 14 | 15 | init(service: NetworkService) { 16 | self.networkService = service 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceEnterpriseWipeEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceEnterpriseWipeEndpoint.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 5/1/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | class DeviceEnterpriseWipeEndpoint: DeviceCommandEndpoint { 11 | var command: String = "EnterpriseWipe" 12 | 13 | var networkService: NetworkService 14 | 15 | init(service: NetworkService) { 16 | self.networkService = service 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceShutdownEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceShutdownEndpoint.swift 3 | // Omnissa Action 4 | // 5 | // Created by Mohammed Lazim on 5/1/19. 6 | // Copyright © 2019 Omnissa. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class DeviceShutdownEndpoint: DeviceCommandEndpoint { 12 | var command: String = "Shutdown" 13 | 14 | var networkService: NetworkService 15 | 16 | init(service: NetworkService) { 17 | self.networkService = service 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Commands/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 1/20/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import UIKit 9 | import CoreData 10 | 11 | 12 | 13 | @UIApplicationMain 14 | class AppDelegate: UIResponder, UIApplicationDelegate { 15 | 16 | var window: UIWindow? 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 19 | 20 | return true 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /CommandsTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /CommandsUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Commands.xcodeproj/xcuserdata/mlazim.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Omnissa Action.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 792057A521F4562200FD6888 16 | 17 | primary 18 | 19 | 20 | 792057BC21F4562400FD6888 21 | 22 | primary 23 | 24 | 25 | 792057C721F4562400FD6888 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/error-red.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "0.879", 8 | "blue" : "0.382", 9 | "green" : "0.413", 10 | "red" : "1.000" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | }, 15 | { 16 | "appearances" : [ 17 | { 18 | "appearance" : "luminosity", 19 | "value" : "dark" 20 | } 21 | ], 22 | "color" : { 23 | "color-space" : "srgb", 24 | "components" : { 25 | "alpha" : "0.879", 26 | "blue" : "0.382", 27 | "green" : "0.413", 28 | "red" : "1.000" 29 | } 30 | }, 31 | "idiom" : "universal" 32 | } 33 | ], 34 | "info" : { 35 | "author" : "xcode", 36 | "version" : 1 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Commands/UI/Dashboard/OverDashboardViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // OverDashboardViewController.swift 3 | // Omnissa Action 4 | // 5 | // Created by Paul Evans on 5/13/20. 6 | // Copyright © 2020 Omnissa. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class OverDashboardViewController: UIViewController { 12 | 13 | let actionDashboardView = DashboardViewController() 14 | 15 | @IBOutlet weak var settingsButton: UIBarButtonItem! 16 | @IBOutlet weak var backgroundView: UIImageView! 17 | @IBOutlet weak var navigationBar: UINavigationItem! 18 | 19 | static let screenIdentifier = "com.omnissa.action.screen.dashboard" 20 | static let storyboard = UIStoryboard(name: "Main", bundle: nil) 21 | 22 | var service: NetworkService? 23 | 24 | var context = ApplicationContext.shared 25 | 26 | lazy var enabledActions = self.context.configuration?.supportedActions ?? [Actions]() 27 | 28 | override func viewDidLoad() { 29 | super.viewDidLoad() 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Commands.xcodeproj/xcuserdata/mlazim.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Commands/UI/DashboardPresenter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DashboardPresenter.swift 3 | // Commands 4 | // 5 | // Created by Mohammed Lazim on 25/10/20. 6 | // Copyright © 2020 Omnissa. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol DashboardPresenter { 12 | func presentDashboard(animated: Bool) 13 | } 14 | 15 | extension DashboardPresenter where Self: UIViewController { 16 | func presentDashboard(animated: Bool) { 17 | let screenIdentifier = DashboardViewController.screenIdentifier 18 | 19 | DispatchQueue.main.async { [weak self] in 20 | /// No need to animate. 21 | /// Since this VC is there only for a micro-seconds, user should 22 | /// believe that the first screen is dashboard itself. 23 | let screen = DashboardViewController.storyboard.instantiateViewController(withIdentifier: screenIdentifier) 24 | let presentable = UINavigationController(rootViewController: screen) 25 | presentable.modalPresentationStyle = .fullScreen 26 | self?.present(presentable, animated: animated, completion: nil) 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Commands/Network Service/ConsoleAuthorizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConsoleAuthorizer.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/13/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | protocol AuthorizationProvider { 11 | var tenantCode: String? { get } 12 | var username: String? { get } 13 | var password: String? { get } 14 | 15 | var authorization: String? { get } 16 | } 17 | 18 | extension AuthorizationProvider { 19 | var authorization: String? { 20 | guard let username = self.username, let password = self.password else { 21 | return nil 22 | } 23 | 24 | let credentials = username + ":" + password 25 | guard let base64Credentials = credentials.base64Encoded() else { 26 | return nil 27 | } 28 | 29 | return "Basic " + base64Credentials 30 | } 31 | } 32 | 33 | struct ConsoleAuthorizer: AuthorizationProvider { 34 | var apiConfiguration: APIConfiguration? 35 | 36 | var tenantCode: String? { 37 | return apiConfiguration?.tenant 38 | } 39 | 40 | var username: String? { 41 | return apiConfiguration?.username 42 | } 43 | 44 | var password: String? { 45 | return apiConfiguration?.password 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /CommandsUITests/Omnissa_ActionUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ActionUITests.swift 3 | // ActionUITests 4 | // 5 | // Created by Mohammed Lazim on 1/20/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import XCTest 9 | 10 | class Omnissa_ActionUITests: XCTestCase { 11 | 12 | override func setUp() { 13 | // Put setup code here. This method is called before the invocation of each test method in the class. 14 | 15 | // In UI tests it is usually best to stop immediately when a failure occurs. 16 | continueAfterFailure = false 17 | 18 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 19 | XCUIApplication().launch() 20 | 21 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 22 | } 23 | 24 | override func tearDown() { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | } 27 | 28 | func testExample() { 29 | // Use recording to get started writing UI tests. 30 | // Use XCTAssert and related functions to verify your tests produce the correct results. 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Commands/Models/APIConfiguration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // APIConfiguration.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/13/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | struct APIConfiguration { 11 | enum AuthenticationType { 12 | case credentials(username: String, password: String) 13 | } 14 | 15 | let hostname: String 16 | let tenant: String 17 | 18 | let username: String 19 | let password: String 20 | } 21 | 22 | extension APIConfiguration { 23 | init?(configuration: [AppConfig.Key: AppConfig.Value]) { 24 | guard let hostValue = configuration[.apiHostname], case let AppConfig.Value.string(host) = hostValue else { 25 | return nil 26 | } 27 | 28 | guard let tenantValue = configuration[.apiKey], case let AppConfig.Value.string(tenant) = tenantValue else { 29 | return nil 30 | } 31 | 32 | guard let usernameValue = configuration[.apiUsername], case let AppConfig.Value.string(username) = usernameValue else { 33 | return nil 34 | } 35 | 36 | guard let passwordValue = configuration[.apiPassword], case let AppConfig.Value.string(password) = passwordValue else { 37 | return nil 38 | } 39 | 40 | self.hostname = host 41 | self.tenant = tenant 42 | self.username = username 43 | self.password = password 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Commands/UI/Dashboard/ActionCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ActionCell.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/13/19. 6 | // Copyright © 2020 Omnissa, LLC. All rights reserved. 7 | 8 | import UIKit 9 | 10 | struct CellReuseIdentifiers { 11 | struct DashboardCollection { 12 | static let action: String = "dashboard.collectioncell.action" 13 | } 14 | } 15 | 16 | struct ActionCellInfo { 17 | static let wipe = ActionCellInfo(title: "Wipe Device", icon: "devicewipe") 18 | static let clearPasscode = ActionCellInfo(title: "Clear Passcode", icon: "clearpasscode") 19 | static let shutdown = ActionCellInfo(title: "Shutdown") 20 | static let enterpriseWipe = ActionCellInfo(title: "Enterprise Wipe", icon: "enterprisewipe") 21 | static let reboot = ActionCellInfo(title: "Reboot") 22 | static let toggleBluetooth = ActionCellInfo(title: "Toggle Bluetooth", icon: "bluetooth") 23 | static let deviceSync = ActionCellInfo(title: "Sync Device", icon: "syncdevice") 24 | 25 | let title: String 26 | let icon: String 27 | 28 | init(title: String, icon: String = "default") { 29 | self.title = title 30 | self.icon = icon 31 | } 32 | } 33 | 34 | class ActionCell: UICollectionViewCell { 35 | @IBOutlet weak var iconView: UIImageView! 36 | @IBOutlet weak var titleLabel: UILabel! 37 | 38 | func configure(with action: ActionCellInfo) { 39 | iconView.image = UIImage(named: action.icon) 40 | titleLabel.text = action.title 41 | } 42 | } 43 | 44 | 45 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Workspace ONE Commands for iOS 2 | Copyright (c) 2020 Omnissa, LLC. All rights reserved 3 | 4 | The BSD-2 license (the "License") set forth below applies to all parts of the Workspace ONE Commands for iOS project. You may not use this file except in compliance with the License. 5 | 6 | BSD-2 License 7 | 8 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 9 | 10 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 11 | 12 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Commands/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Commands/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleVersion 20 | 1 21 | LSApplicationQueriesSchemes 22 | 23 | airwatch 24 | 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /bin/WS1_Actions_appconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1.0 4 | com.omnissa.ws1-action 5 | 6 | 7 | 8 | {DeviceUid} 9 | 10 | 11 | 12 | 13 | https://apiurl.com/api 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | username 24 | 25 | 26 | 27 | 28 | password 29 | 30 | 31 | 32 | 33 | true 34 | 35 | 36 | 37 | 38 | true 39 | 40 | 41 | 42 | 43 | true 44 | 45 | 46 | 47 | 48 | true 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Commands/UI/TroubleshootViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TroubleshootViewController.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 5/18/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import UIKit 9 | 10 | class TroubleshootViewController: UIViewController { 11 | 12 | @IBOutlet weak var rawConfigTextView: UITextView! 13 | @IBOutlet weak var deviceIDLabel: UILabel! 14 | @IBOutlet weak var supportedActionsLabel: UILabel! 15 | @IBOutlet weak var apiHostLabel: UILabel! 16 | @IBOutlet weak var apiTenantLabel: UILabel! 17 | @IBOutlet weak var apiCredentialsLabel: UILabel! 18 | 19 | var context: ApplicationContext = .shared 20 | 21 | override func viewDidLoad() { 22 | super.viewDidLoad() 23 | 24 | let userDefaults = UserDefaults.standard 25 | if let config = userDefaults.dictionary(forKey: "com.apple.configuration.managed") { 26 | self.rawConfigTextView.text = String(describing: config) 27 | } 28 | 29 | if let deviceIdentifier = self.context.deviceIdentifier { 30 | self.deviceIDLabel.text = deviceIdentifier 31 | } 32 | 33 | let supportedActions = self.context.supportedActions 34 | if supportedActions.count > 0 { 35 | let actionTitles = supportedActions.map { $0.actionInfo().title } 36 | let titlesString = actionTitles.joined(separator: ", ") 37 | self.supportedActionsLabel.text = titlesString 38 | } 39 | 40 | if let apiConfiguration = self.context.configuration?.apiConfiguration { 41 | self.apiHostLabel.text = apiConfiguration.hostname 42 | self.apiTenantLabel.text = apiConfiguration.tenant 43 | self.apiCredentialsLabel.text = "\(apiConfiguration.username) / \(apiConfiguration.password)" 44 | } 45 | } 46 | 47 | @IBAction func doneButtonPressed(_ sender: Any) { 48 | self.dismiss(animated: true, completion: nil) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Commands/Models/Actions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Actions.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/13/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Copyright © 2019-2020 Omnissa, LLC. 8 | 9 | import Foundation 10 | 11 | enum Actions { 12 | case wipe 13 | case clearPasscode 14 | case enterpriseWipe 15 | case deviceSync 16 | 17 | func actionEndpoint(service: NetworkService) -> ConsoleActionsEndpoint? { 18 | switch self { 19 | 20 | case .wipe: 21 | return DeviceWipeEndpoint(service: service) 22 | 23 | case .clearPasscode: 24 | return DeviceClearPasscodeEndpoint(service: service) 25 | 26 | case .enterpriseWipe: 27 | return DeviceEnterpriseWipeEndpoint(service: service) 28 | 29 | case .deviceSync: 30 | return DeviceSyncEndpoint(service: service) 31 | 32 | } 33 | } 34 | 35 | var configurationKey: String { 36 | switch self { 37 | 38 | case .wipe: 39 | return AppConfig.Key.actionWipe.rawValue 40 | 41 | case .clearPasscode: 42 | return AppConfig.Key.actionClearPasscode.rawValue 43 | 44 | case .enterpriseWipe: 45 | return AppConfig.Key.actionEnterpriseWipe.rawValue 46 | 47 | case .deviceSync: 48 | return AppConfig.Key.actionSync.rawValue 49 | 50 | } 51 | } 52 | 53 | func actionInfo() -> ActionCellInfo { 54 | switch self { 55 | case .wipe: return .wipe 56 | case .clearPasscode: return .clearPasscode 57 | case .enterpriseWipe: return .enterpriseWipe 58 | case .deviceSync: return .deviceSync 59 | } 60 | } 61 | 62 | func confirmationMessage() -> String { 63 | switch self { 64 | case .wipe: return "Are you sure you want to perform a Device Wipe? This will factory reset this device and delete all saved data." 65 | case .clearPasscode: return "Are you sure you want to clear passcode on this device? This will remove any passcode and biometric information from this device." 66 | case .enterpriseWipe: return "Are you sure you want to perform an Enterprise Wipe? This will remove all managed data and apps from your device." 67 | case .deviceSync: return "Are you sure you want to perform a Device Sync? This will perform a sync with the management server to verify the desired state and take remediation actions if necessary." 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Contributing to workspaceone-commands-for-ios 4 | 5 | The workspaceone-commands-for-ios project team welcomes contributions from the community. 6 | 7 | ## Contribution Flow 8 | 9 | This is a rough outline of what a contributor's workflow looks like: 10 | 11 | - Create a topic branch from where you want to base your work 12 | - Make commits of logical units 13 | - Make sure your commit messages are in the proper format (see below) 14 | - Push your changes to a topic branch in your fork of the repository 15 | - Submit a pull request 16 | 17 | Example: 18 | 19 | ``` shell 20 | git remote add upstream https://github.com/omnissa-archive/workspaceone-commands-for-ios.git 21 | git checkout -b my-new-feature master 22 | git commit -a 23 | git push origin my-new-feature 24 | ``` 25 | 26 | ### Staying In Sync With Upstream 27 | 28 | When your branch gets out of sync with the omnissa-archive/master branch, use the following to update: 29 | 30 | ``` shell 31 | git checkout my-new-feature 32 | git fetch -a 33 | git pull --rebase upstream master 34 | git push --force-with-lease origin my-new-feature 35 | ``` 36 | 37 | ### Updating pull requests 38 | 39 | If your PR fails to pass CI or needs changes based on code review, you'll most likely want to squash these changes into 40 | existing commits. 41 | 42 | If your pull request contains a single commit or your changes are related to the most recent commit, you can simply 43 | amend the commit. 44 | 45 | ``` shell 46 | git add . 47 | git commit --amend 48 | git push --force-with-lease origin my-new-feature 49 | ``` 50 | 51 | If you need to squash changes into an earlier commit, you can use: 52 | 53 | ``` shell 54 | git add . 55 | git commit --fixup 56 | git rebase -i --autosquash master 57 | git push --force-with-lease origin my-new-feature 58 | ``` 59 | 60 | Be sure to add a comment to the PR indicating your new changes are ready to review, as GitHub does not generate a 61 | notification when you git push. 62 | 63 | ### Code Style 64 | 65 | ### Formatting Commit Messages 66 | 67 | We follow the conventions on [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/). 68 | 69 | Be sure to include any related GitHub issue references in the commit message. See 70 | [GFM syntax](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) for referencing issues 71 | and commits. 72 | 73 | ## Reporting Bugs and Creating Issues 74 | 75 | When opening a new issue, try to roughly follow the commit message format conventions above. 76 | -------------------------------------------------------------------------------- /Commands/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom": "iphone", 6 | "filename" : "ActionsIcon-20@2x.png", 7 | "scale": "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom": "iphone", 12 | "filename" : "ActionsIcon-20@3x.png", 13 | "scale": "3x" 14 | }, 15 | { 16 | "size" : "20x20", 17 | "idiom": "ipad", 18 | "filename" : "ActionsIcon-20.png", 19 | "scale": "1x" 20 | }, 21 | { 22 | "size" : "20x20", 23 | "idiom": "ipad", 24 | "filename" : "ActionsIcon-20@2x.png", 25 | "scale": "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "ActionsIcon-29@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "29x29", 35 | "idiom" : "iphone", 36 | "filename" : "ActionsIcon-29@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "ActionsIcon-40@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "40x40", 47 | "idiom" : "iphone", 48 | "filename" : "ActionsIcon-40@3x.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "ActionsIcon-60@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "60x60", 59 | "idiom" : "iphone", 60 | "filename" : "ActionsIcon-60@3x.png", 61 | "scale" : "3x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "ActionsIcon-29.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "ActionsIcon-29@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "ActionsIcon-40.png", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "ActionsIcon-40@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "76x76", 89 | "idiom" : "ipad", 90 | "filename" : "ActionsIcon-76.png", 91 | "scale" : "1x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "ActionsIcon-76@2x.png", 97 | "scale" : "2x" 98 | }, 99 | { 100 | "size" : "83.5x83.5", 101 | "idiom" : "ipad", 102 | "filename" : "ActionsIcon-83.5@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "1024x1024", 107 | "idiom" : "ios-marketing", 108 | "filename" : "ActionsIcon-1024.png", 109 | "scale" : "1x" 110 | } 111 | ], 112 | "info" : { 113 | "version" : 1, 114 | "author" : "xcode" 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Contributor Covenant Code of Conduct 4 | 5 | ## Our Pledge 6 | 7 | In the interest of fostering an open and welcoming environment, we as 8 | contributors and maintainers pledge to making participation in workspaceone-commands-for-ios project and 9 | our community a harassment-free experience for everyone, regardless of age, body 10 | size, disability, ethnicity, sex characteristics, gender identity and expression, 11 | level of experience, education, socio-economic status, nationality, personal 12 | appearance, race, religion, or sexual identity and orientation. 13 | 14 | ## Our Standards 15 | 16 | Examples of behavior that contributes to creating a positive environment 17 | include: 18 | 19 | * Using welcoming and inclusive language 20 | * Being respectful of differing viewpoints and experiences 21 | * Gracefully accepting constructive criticism 22 | * Focusing on what is best for the community 23 | * Showing empathy towards other community members 24 | 25 | Examples of unacceptable behavior by participants include: 26 | 27 | * The use of sexualized language or imagery and unwelcome sexual attention or 28 | advances 29 | * Trolling, insulting/derogatory comments, and personal or political attacks 30 | * Public or private harassment 31 | * Publishing others' private information, such as a physical or electronic 32 | address, without explicit permission 33 | * Other conduct which could reasonably be considered inappropriate in a 34 | professional setting 35 | 36 | ## Our Responsibilities 37 | 38 | Project maintainers are responsible for clarifying the standards of acceptable 39 | behavior and are expected to take appropriate and fair corrective action in 40 | response to any instances of unacceptable behavior. 41 | 42 | Project maintainers have the right and responsibility to remove, edit, or 43 | reject comments, commits, code, wiki edits, issues, and other contributions 44 | that are not aligned to this Code of Conduct, or to ban temporarily or 45 | permanently any contributor for other behaviors that they deem inappropriate, 46 | threatening, offensive, or harmful. 47 | 48 | ## Scope 49 | 50 | This Code of Conduct applies both within project spaces and in public spaces 51 | when an individual is representing the project or its community. Examples of 52 | representing a project or community include using an official project e-mail 53 | address, posting via an official social media account, or acting as an appointed 54 | representative at an online or offline event. Representation of a project may be 55 | further defined and clarified by project maintainers. 56 | 57 | ## Enforcement 58 | 59 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 60 | reported by contacting the project team at oss-coc@omnissa.com. All 61 | complaints will be reviewed and investigated and will result in a response that 62 | is deemed necessary and appropriate to the circumstances. The project team is 63 | obligated to maintain confidentiality with regard to the reporter of an incident. 64 | Further details of specific enforcement policies may be posted separately. 65 | 66 | Project maintainers who do not follow or enforce the Code of Conduct in good 67 | faith may face temporary or permanent repercussions as determined by other 68 | members of the project's leadership. 69 | 70 | ## Attribution 71 | 72 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 73 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 74 | 75 | [homepage]: https://www.contributor-covenant.org 76 | 77 | For answers to common questions about this code of conduct, see 78 | https://www.contributor-covenant.org/faq 79 | 80 | -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceCommandEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceCommandEndpoint.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 5/1/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | /* 11 | 12 | Request Body: 13 | { 14 | "CommandXml" : "LOCK" // Can be any XML 15 | } 16 | */ 17 | struct DeviceCommandRequest: Codable { 18 | let xml: String 19 | 20 | init(for command: String) { 21 | self.xml = "\(command)" 22 | } 23 | 24 | enum CodingKeys: String, CodingKey { 25 | case xml = "CommandXml" 26 | } 27 | 28 | } 29 | 30 | 31 | protocol DeviceCommandEndpoint: ConsoleActionsEndpoint { 32 | var command: String { get } 33 | } 34 | 35 | 36 | extension DeviceCommandEndpoint { 37 | 38 | var path: String { 39 | return "/mdm/devices/commands?command=%@&searchBy=Udid&id=%@" 40 | } 41 | 42 | func perform(udid: String, completion: @escaping (Bool, String, String?) -> Void) { 43 | 44 | let command = self.command 45 | 46 | let path = String(format: self.path, command, udid) 47 | 48 | let endpointRequest = DeviceCommandRequest(for: command) 49 | 50 | guard let body = try? JSONEncoder().encode(endpointRequest) else { 51 | print("Failed to create request.") 52 | completion(false, "Failed to \(command) the device", "Failed to create the command request.") 53 | return 54 | } 55 | 56 | self.networkService.response(from: path, 57 | type: .post(body), 58 | expectedStatus: 202) 59 | { (response: DeviceWipeEndpointResponse?, error) in 60 | 61 | print("\(String(describing: response))") 62 | print("\(String(describing: error))") 63 | 64 | if let serviceError = error { 65 | if case NetworkServiceError.emptyData = serviceError { 66 | var message = "Command queued successfully" 67 | switch (command) { 68 | case "SyncDevice": 69 | message = "Your device will now be synced to its expected state." 70 | case "ClearPasscode": 71 | message = "The passcode on your device will now be cleared." 72 | case "EnterpriseWipe": 73 | message = "All Corporate apps and content will now be removed from your device." 74 | case "DeviceWipe": 75 | message = "Your device will now wiped." 76 | default: 77 | message = "Command queued successfully" 78 | } 79 | completion(true, message, nil) 80 | return 81 | } else if case let NetworkServiceError.badStatusCode(statusCode , response: data) = serviceError, let errorData = data { 82 | do { 83 | let errorResponse = try JSONDecoder().decode(DeviceWipeEndpointErrorResponse.self, from: errorData) 84 | print("Error Response \n\(errorResponse)") 85 | completion(false, errorResponse.message, "Failed to \(command) the device with status code: \(statusCode) and error code \(errorResponse.errorCode)") 86 | } catch { 87 | print("Cannot parse Error Response") 88 | completion(false, "Failed to send command \(command) to the device", "Failed to parse the error response from the server. Status Code:\(statusCode)") 89 | } 90 | 91 | return 92 | } 93 | } 94 | 95 | completion(false, "Failed to \(command) the device", "Service Error : \(String(describing: error))") 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Commands/UI/ConfigurationViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfigurationViewController.swift 3 | // Commands 4 | // 5 | // Created by Mohammed Lazim on 24/10/20. 6 | // Copyright © 2020 Omnissa. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UITextField { 12 | func showValueInvalid() { 13 | self.backgroundColor = UIColor(named: "error-red") ?? .systemRed 14 | } 15 | 16 | func showValueValid() { 17 | if #available(iOS 13.0, *) { 18 | self.backgroundColor = .systemBackground 19 | } else { 20 | self.backgroundColor = .white 21 | } 22 | } 23 | } 24 | 25 | class ConfigurationViewController: UIViewController, DashboardPresenter { 26 | 27 | static let screenIdentifier = "com.omnissa.action.screen.configuration" 28 | static let storyboard = UIStoryboard(name: "Main", bundle: nil) 29 | 30 | @IBOutlet weak var hostnameTextField: UITextField! 31 | @IBOutlet weak var apiKeyTextField: UITextField! 32 | @IBOutlet weak var usernameTextField: UITextField! 33 | @IBOutlet weak var passwordTextField: UITextField! 34 | @IBOutlet weak var deviceIdentifierTextField: UITextField! 35 | 36 | var context: ApplicationContext { return .shared } 37 | 38 | lazy var contextSetupProvider: UserDefaultsContextSetupProvider = StoredConfigurationContextSetupProvider(context: self.context) 39 | 40 | var hostname: String { 41 | self.hostnameTextField.text ?? "" 42 | } 43 | 44 | var apiKey: String { 45 | self.apiKeyTextField.text ?? "" 46 | } 47 | 48 | var username: String { 49 | self.usernameTextField.text ?? "" 50 | } 51 | 52 | var password: String { 53 | self.passwordTextField.text ?? "" 54 | } 55 | 56 | var deviceID: String { 57 | self.deviceIdentifierTextField.text ?? "" 58 | } 59 | 60 | override func viewDidLoad() { 61 | super.viewDidLoad() 62 | print("[ConfigurationViewController] Loaded") 63 | } 64 | 65 | @IBAction func saveClicked() { 66 | guard self.validateUserEnteredValues() else { 67 | print("[ConfigurationViewController] Invalid values") 68 | return 69 | } 70 | 71 | // Save the values 72 | let apiConfig = APIConfiguration( 73 | hostname: self.hostname, 74 | tenant: self.apiKey, 75 | username: self.username, 76 | password: self.password 77 | ) 78 | 79 | let appConfig = AppConfig.dictionaryRepresentation( 80 | apiConfig: apiConfig, 81 | deviceID: self.deviceID, 82 | supportedActions: [.deviceSync] 83 | ) 84 | 85 | UserDefaults.standard.setValue(appConfig, forKey: StoredConfigurationContextSetupProvider.configurationKey) 86 | 87 | // Setup context with the saved value 88 | guard case .success = self.contextSetupProvider.setup() else { 89 | print("[ConfigurationViewController] Failed to setup context with user entered configuration.") 90 | return 91 | } 92 | 93 | self.presentDashboard(animated: true) 94 | } 95 | 96 | private func validateUserEnteredValues() -> Bool { 97 | 98 | func validateEmptyTextField(_ textfield: UITextField) -> Bool { 99 | guard let value = textfield.text else { 100 | return false 101 | } 102 | 103 | guard value.isEmpty == false else { 104 | textfield.showValueInvalid() 105 | return false 106 | } 107 | 108 | textfield.showValueValid() 109 | return true 110 | } 111 | 112 | // Validate Hostname 113 | let validValues = 114 | validateEmptyTextField(self.hostnameTextField) 115 | && validateEmptyTextField(self.apiKeyTextField) 116 | && validateEmptyTextField(self.usernameTextField) 117 | && validateEmptyTextField(self.passwordTextField) 118 | && validateEmptyTextField(self.deviceIdentifierTextField) 119 | 120 | 121 | return validValues 122 | } 123 | 124 | } 125 | -------------------------------------------------------------------------------- /Commands/Network Service/NetworkService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NetworkService.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 2/17/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import Foundation 9 | 10 | enum RequestHeaderKeys: String { 11 | case tenantCode = "aw-tenant-code" 12 | case authorization = "Authorization" 13 | case contentType = "Content-Type" 14 | case accept = "Accept" 15 | } 16 | 17 | extension URLRequest { 18 | mutating func addHeader(key: RequestHeaderKeys, value: String) { 19 | self.addValue(value, forHTTPHeaderField: key.rawValue) 20 | } 21 | } 22 | 23 | enum RequestType { 24 | case get 25 | case post(Data) 26 | } 27 | 28 | enum NetworkServiceError: Error { 29 | case wrongUrlFormat 30 | case missingRequiredAuthorization 31 | case unknownUrlResponse(URLResponse?) 32 | case urlError(Error) 33 | case emptyData 34 | case badStatusCode(Int, response: Data?) 35 | case responseParsing(Error) 36 | } 37 | 38 | class NetworkService { 39 | 40 | private let host: String 41 | private let authorizer: AuthorizationProvider 42 | private let session: URLSession 43 | 44 | init(host: String, authorizer: AuthorizationProvider) { 45 | self.host = host 46 | self.authorizer = authorizer 47 | self.session = URLSession(configuration: .default) 48 | } 49 | 50 | func response(from path: String, type: RequestType = .get, expectedStatus: Int = 200, completion: @escaping (ResponseType?, NetworkServiceError?) -> Void) { 51 | 52 | let urlString = host + path 53 | guard let url = URL(string: urlString) else { 54 | completion(nil, NetworkServiceError.wrongUrlFormat) 55 | return 56 | } 57 | 58 | var request = URLRequest(url: url) 59 | 60 | // Add required Authorization 61 | guard let tenantCode = authorizer.tenantCode, let authorization = authorizer.authorization else { 62 | completion(nil, NetworkServiceError.missingRequiredAuthorization) 63 | return 64 | } 65 | 66 | // Add required headers 67 | request.addHeader(key: .tenantCode, value: tenantCode) 68 | request.addHeader(key: .authorization, value: authorization) 69 | request.addHeader(key: .accept, value: "application/json") 70 | request.addHeader(key: .contentType, value: "application/json") 71 | 72 | if case let RequestType.post(body) = type { 73 | request.httpMethod = "POST" 74 | request.httpBody = body 75 | } else { 76 | request.httpMethod = "GET" 77 | } 78 | 79 | 80 | print("Sending Request: \(request)") 81 | 82 | let task = self.session.dataTask(with: request) { (data, response, error) in 83 | print("Response: \n\(data?.count ?? 0) \n\(String(describing: response))\n\(String(describing: error))") 84 | 85 | if let networkError = error { 86 | completion(nil, NetworkServiceError.urlError(networkError)) 87 | return 88 | } 89 | 90 | guard let httpResponse = response as? HTTPURLResponse else { 91 | completion(nil, NetworkServiceError.unknownUrlResponse(response)) 92 | return 93 | } 94 | 95 | print("Status Code: \(httpResponse.statusCode)") 96 | 97 | guard httpResponse.statusCode == expectedStatus else { 98 | completion(nil, NetworkServiceError.badStatusCode(httpResponse.statusCode, response: data)) 99 | return 100 | } 101 | 102 | guard let responseData = data, responseData.count > 0 else { 103 | completion(nil, NetworkServiceError.emptyData) 104 | return 105 | } 106 | 107 | do { 108 | let responseObject = try JSONDecoder().decode(ResponseType.self, from: responseData) 109 | completion(responseObject, nil) 110 | } catch let parsingError { 111 | completion(nil, NetworkServiceError.responseParsing(parsingError)) 112 | } 113 | } 114 | task.resume() 115 | 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /Commands/Commands Endpoints/DeviceWipeEndpoint.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DeviceWipeEndpoint.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 2/17/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Copyright © 2019-2020 Omnissa, LLC. 8 | 9 | import Foundation 10 | 11 | protocol ConsoleActionsEndpoint { 12 | var networkService: NetworkService { get } 13 | var path: String { get } 14 | 15 | /// (success: Bool, userMessage: String, detailedMessage: String) 16 | func perform(udid: String, completion: @escaping (Bool, String, String?) -> Void) 17 | } 18 | /* 19 | Request Body: 20 | { 21 | "BulkValues": { 22 | "Value": [ 23 | "{{UDID}}" 24 | ] 25 | } 26 | } 27 | */ 28 | struct DeviceWipeEndpointRequest: Codable { 29 | struct BulkValuesContainer: Codable { 30 | enum CodingKeys: String, CodingKey { 31 | case value = "Value" 32 | } 33 | let value: [String] 34 | } 35 | 36 | enum CodingKeys: String, CodingKey { 37 | case bulkValue = "BulkValues" 38 | } 39 | 40 | let bulkValue: BulkValuesContainer 41 | 42 | init(with singleValue: String) { 43 | self.bulkValue = BulkValuesContainer(value: [singleValue]) 44 | } 45 | } 46 | 47 | /* 48 | Response Body 49 | 50 | SUCCESS: 51 | { 52 | "TotalItems": 1, 53 | "AcceptedItems": 1, 54 | "FailedItems": 0 55 | } 56 | 57 | FAILURE WITH MULTIPLE UDID (WONT HAPPEN IN OUR CASE): 58 | Status Code: 200 59 | { 60 | "TotalItems": 2, 61 | "AcceptedItems": 1, 62 | "FailedItems": 1, 63 | "Faults": { 64 | "Fault": [ 65 | { 66 | "ErrorCode": 404, 67 | "ItemValue": "4d2002bffa6c6bdd5b8fc868e6ae70158c0d1724", 68 | "Message": "Device Not Found" 69 | } 70 | ] 71 | } 72 | } 73 | 74 | FAILURE WITH SINGLE UDID: 75 | Status Code: 404 76 | { 77 | "errorCode": 404, 78 | "message": "Devices provided in the input could not be found or not enrolled or user does not have access.", 79 | "activityId": "7e74ca07-50a3-48da-ba07-79e3c77c6ed2" 80 | } 81 | */ 82 | struct DeviceWipeEndpointResponse: Codable { 83 | 84 | struct FaultContainer: Codable { 85 | struct Fault: Codable { 86 | enum CodingKeys: String, CodingKey { 87 | case errorCode = "ErrorCode" 88 | case value = "ItemValue" 89 | case message = "Message" 90 | } 91 | 92 | let errorCode: Int 93 | let value: String 94 | let message: String 95 | } 96 | 97 | enum CodingKeys: String, CodingKey { 98 | case faults = "Fault" 99 | } 100 | 101 | let faults: [Fault] 102 | } 103 | 104 | 105 | 106 | enum CodingKeys: String, CodingKey { 107 | case totalItems = "TotalItems" 108 | case acceptedItems = "AcceptedItems" 109 | case failedItems = "FailedItems" 110 | case faults = "Faults" 111 | } 112 | 113 | let totalItems: Int 114 | let acceptedItems: Int 115 | let failedItems: Int 116 | let faults: FaultContainer? 117 | } 118 | 119 | 120 | struct DeviceWipeEndpointErrorResponse: Codable { 121 | // 1013: Wrong Tenant (Tenant code <> does not identify an Organization Group.) 122 | // 1005: Wrong Credentials, Empty Password (An error occurred while validating remote service client credentials or user not found : <>) 123 | // Bad Request 500: when empty username 124 | // 125 | // 1022: Your account has been locked. Please reset the password to unlock your account or contact your IT Administrator. 126 | let errorCode: Int 127 | let message: String 128 | } 129 | 130 | /// MDM (Mobile Device Management) REST API V1 131 | /// 132 | 133 | class DeviceWipeEndpoint: DeviceCommandEndpoint { 134 | var command: String = "DeviceWipe" 135 | 136 | var networkService: NetworkService 137 | 138 | init(service: NetworkService) { 139 | self.networkService = service 140 | } 141 | } 142 | 143 | 144 | 145 | /// POST /devices/commands 146 | /// [Lock, EnterpriseWipe, DeviceWipe, DeviceQuery, ClearPasscode, SyncDevice, StopAirPlay, ScheduleOsUpdate, CustomMdmCommand, InstallPackagedMacOSXAgent, SoftReset, Shutdown, EnterpriseReset, SyncSensors, OsUpdateStatus, RotateFileVaultKey] 147 | 148 | -------------------------------------------------------------------------------- /CommandsTests/ContextSetupTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContextSetupTests.swift 3 | // ActionTests 4 | // 5 | // Created by Mohammed Lazim on 7/13/19. 6 | // Copyright © 2019-2020 Omnissa, LLC. 7 | 8 | import XCTest 9 | 10 | @testable import Actions 11 | 12 | private let validConfigurations: [String: Any] = [ 13 | "DEVICE_UID": "1231235245", 14 | 15 | "API_HOSTNAME": "https://cnaapp.ssdevrd.com/api", 16 | "API_KEY": "sadfsad23234", 17 | "API_USERNAME": "naveen", 18 | "API_PASSWORD": "naveen5", 19 | 20 | "BACKGROUND_IMAGE": "https://www.testwebsite.com/image.png", 21 | 22 | "ENABLE_TROUBLESHOOTING": 1, 23 | 24 | "ACTION_WIPE": 1, 25 | "ACTION_LOCK": 1, 26 | "ACTION_QUERY": 1, 27 | "ACTION_ENTERPRISEWIPE": 1 28 | ] 29 | 30 | private struct TestConfigurationContextSetupProvider: UserDefaultsContextSetupProvider { 31 | var context: ApplicationContext = ApplicationContext() 32 | 33 | var store: UserDefaults { 34 | return .standard 35 | } 36 | 37 | var configurationKey: String { 38 | return TestConfigurationContextSetupProvider.testConfigKey 39 | } 40 | 41 | static var testConfigKey = "com.air-watch.action.configuration.managed" 42 | } 43 | 44 | class ContextSetupTests: XCTestCase { 45 | 46 | override func tearDown() { 47 | UserDefaults.standard.removeObject(forKey: TestConfigurationContextSetupProvider.testConfigKey) 48 | 49 | super.tearDown() 50 | } 51 | 52 | 53 | func testContextSetupWithValidConfigurations() { 54 | 55 | UserDefaults.standard.set(validConfigurations, forKey: TestConfigurationContextSetupProvider.testConfigKey) 56 | 57 | let sut = TestConfigurationContextSetupProvider() 58 | let status = sut.setup() 59 | XCTAssertEqual(status, .success, "Context should have been setup correctly") 60 | 61 | } 62 | 63 | func testContextSetupWithMissingConfigurationInfo() { 64 | 65 | let sut = TestConfigurationContextSetupProvider() 66 | 67 | let status = sut.setup() 68 | XCTAssertEqual(status, ContextSetupStatus.missingConfigInfo, "Context should have been failed when config map is missing") 69 | 70 | } 71 | 72 | func testContextSetupWithMissingDeviceIdentifier() { 73 | 74 | var newConfig = validConfigurations 75 | newConfig.removeValue(forKey: "DEVICE_UID") 76 | 77 | UserDefaults.standard.set(newConfig, forKey: TestConfigurationContextSetupProvider.testConfigKey) 78 | 79 | let sut = TestConfigurationContextSetupProvider() 80 | 81 | let status = sut.setup() 82 | XCTAssertEqual(status, ContextSetupStatus.missingDeviceIdentifier, "Context should have been failed when device info is missing") 83 | 84 | } 85 | 86 | func testContextSetupWithMissingAPIConfig() { 87 | 88 | var newConfig = validConfigurations 89 | newConfig.removeValue(forKey: "API_HOSTNAME") 90 | 91 | UserDefaults.standard.set(newConfig, forKey: TestConfigurationContextSetupProvider.testConfigKey) 92 | 93 | let sut = TestConfigurationContextSetupProvider() 94 | 95 | 96 | var status = sut.setup() 97 | XCTAssertEqual(status, ContextSetupStatus.missingAPIInfo, "Context should have been failed when API config is missing") 98 | 99 | newConfig.removeValue(forKey: "API_KEY") 100 | status = sut.setup() 101 | XCTAssertEqual(status, ContextSetupStatus.missingAPIInfo, "Context should have been failed when API config is missing") 102 | 103 | newConfig.removeValue(forKey: "API_USERNAME") 104 | status = sut.setup() 105 | XCTAssertEqual(status, ContextSetupStatus.missingAPIInfo, "Context should have been failed when API config is missing") 106 | 107 | newConfig.removeValue(forKey: "API_PASSWORD") 108 | status = sut.setup() 109 | XCTAssertEqual(status, ContextSetupStatus.missingAPIInfo, "Context should have been failed when API config is missing") 110 | 111 | } 112 | 113 | func testContextSetupWithNoSupportedActions() { 114 | 115 | var newConfig = validConfigurations 116 | newConfig.removeValue(forKey: "ACTION_WIPE") 117 | newConfig.removeValue(forKey: "ACTION_LOCK") 118 | newConfig.removeValue(forKey: "ACTION_QUERY") 119 | newConfig.removeValue(forKey: "ACTION_ENTERPRISEWIPE") 120 | 121 | UserDefaults.standard.set(newConfig, forKey: TestConfigurationContextSetupProvider.testConfigKey) 122 | 123 | let sut = TestConfigurationContextSetupProvider() 124 | 125 | let status = sut.setup() 126 | XCTAssertEqual(status, ContextSetupStatus.noSupportedActions, "Context should have been failed when no supported actions are found") 127 | 128 | } 129 | 130 | } 131 | -------------------------------------------------------------------------------- /Commands/Context.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Context.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/8/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Copyright © 2019-2020 Omnissa, LLC. 8 | 9 | import Foundation 10 | 11 | protocol Context { 12 | var deviceIdentifier: String? { get } 13 | var supportedActions: [Actions] { get } 14 | var troubleshootingEnabled: Bool? { get } 15 | var backgroundImageURL: String? { get } 16 | } 17 | 18 | 19 | class ApplicationContext: Context { 20 | var configuration: AppConfig? 21 | 22 | var deviceIdentifier: String? { 23 | return self.configuration?.deviceIdentifier 24 | } 25 | 26 | var supportedActions: [Actions] { 27 | return self.configuration?.supportedActions ?? [Actions]() 28 | } 29 | 30 | var troubleshootingEnabled: Bool? { 31 | return self.configuration?.troubleshootingEnabled 32 | } 33 | 34 | var backgroundImageURL: String? { 35 | return self.configuration?.backgroundImageURL 36 | } 37 | 38 | static let shared: ApplicationContext = ApplicationContext() 39 | } 40 | 41 | enum ContextSetupStatus { 42 | case success 43 | case missingConfigInfo 44 | case missingDeviceIdentifier 45 | case missingAPIInfo 46 | case noSupportedActions 47 | 48 | func errorDescription() -> String { 49 | switch self { 50 | case .missingConfigInfo: 51 | return "Failed to get configurations.\n Please contact your administrator." 52 | 53 | case .missingDeviceIdentifier: 54 | return "Failed to get device info.\n Please contact your administrator." 55 | 56 | case .missingAPIInfo: 57 | return "Failed to get server details.\n Please contact your administrator." 58 | 59 | case .noSupportedActions: 60 | return "No actions found.\n Please contact your administrator." 61 | default: 62 | return "" 63 | } 64 | } 65 | } 66 | 67 | protocol ApplicationContextSetupProvider { 68 | var context: ApplicationContext { get set} 69 | 70 | func setup(with configuration: [String: Any]) -> ContextSetupStatus 71 | } 72 | 73 | 74 | extension ApplicationContextSetupProvider { 75 | func setup(with configuration: [String: Any]) -> ContextSetupStatus { 76 | 77 | print("[ContextSetup] Available configuration: \(configuration)") 78 | 79 | let applicationConfigurations = AppConfig(configuration) 80 | guard applicationConfigurations.apiConfiguration != nil else { 81 | print("[ContextSetup] ❗️ API information not available") 82 | return .missingAPIInfo 83 | } 84 | 85 | guard applicationConfigurations.deviceIdentifier != nil else { 86 | print("[ContextSetup] ❗️ Device Identifier not available") 87 | return .missingDeviceIdentifier 88 | } 89 | 90 | guard applicationConfigurations.supportedActions.count > 0 else { 91 | print("[ContextSetup] ❗️ No supported actions found") 92 | return .noSupportedActions 93 | } 94 | 95 | 96 | self.context.configuration = applicationConfigurations 97 | 98 | print("[ContextSetup] Context setup complete") 99 | return .success 100 | } 101 | } 102 | 103 | 104 | protocol UserDefaultsContextSetupProvider: ApplicationContextSetupProvider { 105 | var store: UserDefaults { get } 106 | var configurationKey: String { get } 107 | 108 | func setup()-> ContextSetupStatus 109 | } 110 | 111 | extension UserDefaultsContextSetupProvider { 112 | 113 | func setup() -> ContextSetupStatus { 114 | guard let config = self.store.object(forKey: self.configurationKey) as? [String : Any] else { 115 | print("[ContextSetup] ❗️ No configurations available for \(self.configurationKey)") 116 | return .missingConfigInfo 117 | } 118 | 119 | return self.setup(with: config) 120 | } 121 | } 122 | 123 | 124 | struct ManagedConfigurationContextSetupProvider: UserDefaultsContextSetupProvider { 125 | var context: ApplicationContext 126 | 127 | init(context: ApplicationContext) { 128 | self.context = context 129 | } 130 | 131 | var store: UserDefaults { 132 | return .standard 133 | } 134 | 135 | var configurationKey: String { 136 | return "com.apple.configuration.managed" 137 | } 138 | } 139 | 140 | struct StoredConfigurationContextSetupProvider: UserDefaultsContextSetupProvider { 141 | 142 | static var configurationKey = "com.omnissa.commands.configuration" 143 | 144 | var context: ApplicationContext 145 | 146 | init(context: ApplicationContext) { 147 | self.context = context 148 | } 149 | 150 | var store: UserDefaults { 151 | return .standard 152 | } 153 | 154 | var configurationKey: String { 155 | return Self.configurationKey 156 | } 157 | } 158 | 159 | -------------------------------------------------------------------------------- /Commands.xcodeproj/xcshareddata/xcschemes/Commands.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 32 | 33 | 39 | 40 | 41 | 42 | 48 | 49 | 50 | 51 | 53 | 59 | 60 | 61 | 63 | 69 | 70 | 71 | 72 | 73 | 83 | 85 | 91 | 92 | 93 | 94 | 100 | 102 | 108 | 109 | 110 | 111 | 113 | 114 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /Commands/Models/AppConfig.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppConfig.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 2/10/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Copyright © 2019-2020 Omnissa, LLC. 8 | 9 | import Foundation 10 | 11 | class AppConfig { 12 | 13 | enum Key: String, CustomDebugStringConvertible { 14 | case apiHostname = "API_HOSTNAME" 15 | case apiKey = "API_KEY" 16 | case apiUsername = "API_USERNAME" 17 | case apiPassword = "API_PASSWORD" 18 | case deviceIdentifier = "DEVICE_UID" 19 | 20 | case backgroundImage = "BACKGROUND_IMAGE" 21 | case troubleshootingEnabled = "ENABLE_TROUBLESHOOTING" 22 | case actionWipe = "ACTION_WIPE" 23 | case actionClearPasscode = "ACTION_CLEARPASSCODE" 24 | case actionSync = "ACTION_SYNC" 25 | case actionEnterpriseWipe = "ACTION_ENTERPRISEWIPE" 26 | 27 | var debugDescription: String { 28 | return self.rawValue 29 | } 30 | } 31 | 32 | enum Value: CustomDebugStringConvertible { 33 | case string(String) 34 | case boolean(Bool) 35 | 36 | var debugDescription: String { 37 | switch self { 38 | case .string(let value): return value 39 | case .boolean(let value): return String(value) 40 | } 41 | } 42 | 43 | static func parseString(from value: Any) -> Value? { 44 | if let stringValue = value as? String { 45 | return Value.string(stringValue) 46 | } 47 | 48 | return nil 49 | } 50 | 51 | static func parseBool(from value: Any) -> Value? { 52 | if let boolValue = value as? Bool { 53 | return Value.boolean(boolValue) 54 | } else if let intValue = value as? Int { 55 | return Value.boolean(intValue != 0) 56 | } 57 | return nil 58 | } 59 | } 60 | 61 | private var configs: [Key: Value] 62 | 63 | public var apiConfiguration: APIConfiguration? 64 | public var deviceIdentifier: String? 65 | public var supportedActions = [Actions]() 66 | public var troubleshootingEnabled: Bool? 67 | public var backgroundImageURL: String? 68 | 69 | init(_ info: [String: Any]) { 70 | 71 | self.configs = [Key: Value]() 72 | 73 | /// Loop via each of the elements in the info map 74 | /// to parse each of the item we need. 75 | for (item, value) in info { 76 | var val: Value? 77 | if let key = Key(rawValue: item) { 78 | switch key{ 79 | 80 | case .apiHostname, .apiKey, .apiUsername, .apiPassword, .deviceIdentifier, .backgroundImage: 81 | val = Value.parseString(from: value) 82 | 83 | case .troubleshootingEnabled, .actionWipe, .actionClearPasscode, .actionSync, .actionEnterpriseWipe: 84 | val = Value.parseBool(from: value) 85 | } 86 | 87 | 88 | if let parsedValue = val { 89 | configs[key] = parsedValue 90 | } 91 | } 92 | } 93 | 94 | self.apiConfiguration = APIConfiguration(configuration: configs) 95 | 96 | print("\n\nAPI Configuration:\n" + String(describing: self.apiConfiguration)) 97 | 98 | guard let udidValue = configs[.deviceIdentifier], case let AppConfig.Value.string(deviceUDID) = udidValue else { 99 | return 100 | } 101 | self.deviceIdentifier = deviceUDID 102 | 103 | print("\n\nDevice Identifier:\n" + String(describing: self.deviceIdentifier)) 104 | 105 | self.backgroundImageURL = getBackgroundURL() 106 | 107 | self.troubleshootingEnabled = checkTroubleshootingEnabled() 108 | 109 | self.setupSupportedActions() 110 | } 111 | 112 | func checkTroubleshootingEnabled() -> Bool { 113 | guard let troubleshootingValue = configs[.troubleshootingEnabled] else { 114 | return false 115 | } 116 | guard case let AppConfig.Value.boolean(tsEnabled) = troubleshootingValue else { 117 | return false 118 | } 119 | return tsEnabled 120 | } 121 | 122 | func getBackgroundURL() -> String { 123 | guard let imageURL = configs[.backgroundImage], case let AppConfig.Value.string(backgroundImageURL) = imageURL else { 124 | return "" 125 | } 126 | return backgroundImageURL 127 | } 128 | 129 | /// Use `forceEnableAllActions` argument for testing purpose 130 | func setupSupportedActions(forceEnableAllActions: Bool = false) { 131 | 132 | guard forceEnableAllActions == false else { 133 | self.supportedActions.append(.wipe) 134 | self.supportedActions.append(.clearPasscode) 135 | self.supportedActions.append(.enterpriseWipe) 136 | self.supportedActions.append(.deviceSync) 137 | 138 | return 139 | } 140 | 141 | func isActionEnabled(actionKey: Key) -> Bool { 142 | 143 | guard let actionValue = configs[actionKey] else { 144 | return false 145 | } 146 | 147 | guard case let AppConfig.Value.boolean(actionEnabled) = actionValue else { 148 | return false 149 | } 150 | 151 | return actionEnabled 152 | } 153 | 154 | if isActionEnabled(actionKey: .actionWipe) { 155 | self.supportedActions.append(.wipe) 156 | } 157 | 158 | if isActionEnabled(actionKey: .actionClearPasscode) { 159 | self.supportedActions.append(.clearPasscode) 160 | } 161 | 162 | if isActionEnabled(actionKey: .actionSync) { 163 | self.supportedActions.append(.deviceSync) 164 | } 165 | 166 | if isActionEnabled(actionKey: .actionEnterpriseWipe) { 167 | self.supportedActions.append(.enterpriseWipe) 168 | } 169 | } 170 | 171 | static func dictionaryRepresentation(apiConfig: APIConfiguration, deviceID: String, supportedActions: [Actions]) -> [String: Any] { 172 | var map = [String: Any]() 173 | map[Key.apiHostname.rawValue] = apiConfig.hostname 174 | map[Key.apiKey.rawValue] = apiConfig.tenant 175 | map[Key.apiUsername.rawValue] = apiConfig.username 176 | map[Key.apiPassword.rawValue] = apiConfig.password 177 | 178 | map[Key.deviceIdentifier.rawValue] = deviceID 179 | 180 | map[Key.troubleshootingEnabled.rawValue] = 1 181 | 182 | supportedActions.compactMap { $0.configurationKey }.forEach { map[$0] = 1 } 183 | 184 | return map 185 | } 186 | } 187 | -------------------------------------------------------------------------------- /Commands/UI/SetupViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SetupViewController.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 7/8/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Updated by Mohammed Lazim on 26/10/20. 8 | // Copyright © 2019-2020 Omnissa, LLC. 9 | 10 | import UIKit 11 | 12 | /// Setup screen 13 | /// 14 | /// Initial screen for the application that does these: 15 | /// - Sets up context using these: 16 | /// - Managed config (if present) 17 | /// - Stored config (if present) 18 | /// - Prompts user for a config & saves it (only when configs are not present in both above cases & Hub not present on the device) 19 | /// - Presents Dashboard (except when prompted for configuration) 20 | /// 21 | /// For testing a config: 22 | /// - Set `isTestSetup` flag to `true` 23 | /// - Set a valid configuration for `testConfig` 24 | class SetupViewController: UIViewController { 25 | 26 | var testConfig: [String: Any] { 27 | return [ 28 | "DEVICE_UID": "asdfsadf", 29 | "API_HOSTNAME": "https://cnaapp.ssdevrd/api", 30 | "API_KEY": "asdfsadf", 31 | "API_USERNAME": "naveen", 32 | "API_PASSWORD": "naveen5", 33 | "ENABLE_TROUBLESHOOTING": 1, 34 | "ACTION_WIPE": 1, 35 | "ACTION_ENTERPRISEWIPE": 1, 36 | "ACTION_CLEARPASSCODE": 1, 37 | "ACTION_SYNC": 1, 38 | ] 39 | } 40 | 41 | var isTestSetup: Bool = false 42 | 43 | lazy var managedConfigContextSetupProvider: UserDefaultsContextSetupProvider = ManagedConfigurationContextSetupProvider(context: self.context) 44 | lazy var storedConfigContextSetupProvider: UserDefaultsContextSetupProvider = StoredConfigurationContextSetupProvider(context: self.context) 45 | 46 | var context: ApplicationContext { return .shared } 47 | 48 | @IBOutlet weak var activityIndicator: UIActivityIndicatorView! 49 | @IBOutlet weak var errorLabel: UILabel! 50 | @IBOutlet weak var errorDescriptionLabel: UILabel! 51 | @IBOutlet weak var settingsButton: UIBarButtonItem! 52 | @IBOutlet weak var errorImage: UIImageView! 53 | 54 | 55 | override func viewDidLoad() { 56 | super.viewDidLoad() 57 | 58 | self.showActivityIndicator() 59 | } 60 | 61 | override func viewDidAppear(_ animated: Bool) { 62 | super.viewDidAppear(animated) 63 | 64 | DispatchQueue.global().async { [weak self] in 65 | self?.setupContext() 66 | } 67 | } 68 | 69 | // MARK: Context Setup Operation & results 70 | func setupContext() { 71 | 72 | if self.isTestSetup { 73 | self.handleSetup(status: self.managedConfigContextSetupProvider.setup(with: self.testConfig)) 74 | } else { 75 | self.handleSetup(status: self.managedConfigContextSetupProvider.setup()) 76 | } 77 | 78 | } 79 | 80 | func handleSetup(status: ContextSetupStatus) { 81 | 82 | if case .success = status { 83 | self.setupFinished() 84 | return 85 | } 86 | 87 | guard case .missingConfigInfo = status else { 88 | self.setupFailed(error: status) 89 | return 90 | } 91 | 92 | // Only if we have an option to use stored config, go forward 93 | guard self.canUseStoredConfiguration() else { 94 | self.setupFailed(error: status) 95 | return 96 | } 97 | 98 | // Managed settings are missing. We have two options now: 99 | // 1. Check if have a stored config (that user entered previously) 100 | // 2. Prompt user for new config 101 | 102 | let storedConfigStatus = self.storedConfigContextSetupProvider.setup() 103 | 104 | switch storedConfigStatus { 105 | case .success: 106 | self.setupFinished() 107 | 108 | case .missingConfigInfo: 109 | self.showConfigurationPrompt() 110 | 111 | default: 112 | self.setupFailed(error: status) 113 | } 114 | } 115 | } 116 | 117 | // MARK: Helpers for stored configuration 118 | private extension SetupViewController { 119 | func canUseStoredConfiguration() -> Bool { 120 | guard let hubURL = URL(string: "airwatch://") else { 121 | return false 122 | } 123 | 124 | /// Store configuration can be used only when Hub is not available in the device. 125 | return DispatchQueue.main.sync { 126 | return UIApplication.shared.canOpenURL(hubURL) == false 127 | } 128 | } 129 | 130 | func showConfigurationPrompt() { 131 | let screenIdentifier = ConfigurationViewController.screenIdentifier 132 | 133 | DispatchQueue.main.async { [weak self] in 134 | let screen = ConfigurationViewController.storyboard.instantiateViewController(withIdentifier: screenIdentifier) 135 | screen.modalPresentationStyle = .fullScreen 136 | self?.present(screen, animated: false, completion: nil) 137 | } 138 | } 139 | } 140 | 141 | // MARK: Screen state change 142 | private extension SetupViewController { 143 | 144 | func showActivityIndicator() { 145 | DispatchQueue.main.async { [weak self] in 146 | self?.activityIndicator.isHidden = false 147 | self?.errorLabel.isHidden = true 148 | self?.errorDescriptionLabel.isHidden = true 149 | self?.errorImage.isHidden = true 150 | } 151 | } 152 | 153 | func showError(description: String) { 154 | DispatchQueue.main.async { [weak self] in 155 | self?.activityIndicator.isHidden = true 156 | self?.errorLabel.isHidden = false 157 | self?.errorDescriptionLabel.isHidden = false 158 | self?.errorImage.isHidden = false 159 | 160 | self?.errorDescriptionLabel.text = description 161 | } 162 | } 163 | 164 | func setupFinished() { 165 | /// 🎊 We're ready to beging the show 166 | /// Show dashboard screen 167 | 168 | let screenIdentifier = DashboardViewController.screenIdentifier 169 | 170 | DispatchQueue.main.async { [weak self] in 171 | /// No need to animate. 172 | /// Since this VC is there only for a micro-seconds, user should 173 | /// believe that the first screen is dashboard itself. 174 | let screen = DashboardViewController.storyboard.instantiateViewController(withIdentifier: screenIdentifier) 175 | let presentable = UINavigationController(rootViewController: screen) 176 | presentable.modalPresentationStyle = .fullScreen 177 | self?.present(presentable, animated: false, completion: nil) 178 | } 179 | 180 | } 181 | 182 | func setupFailed(error: ContextSetupStatus) { 183 | self.showError(description: error.errorDescription()) 184 | } 185 | } 186 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![WS1_Actions.png?raw=true](./bin/WS1_Actions.png) 3 | 4 | # Workspace ONE Commands for iOS 5 | 6 | ## What is it? 7 | 8 | Workspace ONE Commands is an open source iOS swift project that provides enterprise IT admins to easily customize, build and deploy an IT focussed iOS application purpose built to perform on-demand MDM actions such as Device Wipe, Enterprise Wipe, and Clear Passcode on their own device. The application can be entirely customized using Application Configuration to choose which actions to show in the app. 9 | 10 | Each of the commands available in the App are APIs as part of the Workspace ONE UEM solution. App config values configure the corresponding command to be made visible in the App UI 11 | 12 | The simple user interface with a grid of actions keeps it extremely simple for users to launch the app and tap the button. 13 | 14 | ## Why is it available as Open-Source? 15 | 16 | We believe this iOS project can truly harness the power of Workspace ONE UEM APIs and open doors for innovate line of business workflows. And ofcourse, it was a pretty simple app. 17 | 18 | * Branding : One of the advantages of providing the source code for the project is that it allows any organization to rename, brand and customize the application icon with their logo for easy discovery and familiarity 19 | 20 | * Extensibility and community: The open source project gives the opportunity for any organization to fork, and add any more features to the app as necessary. It preferred we encourage raising a Pull Request to add any new features that others may also benefit from. 21 | 22 | ------------------------ 23 | 24 | ## How to deploy the app? 25 | 26 | The source code can be signed and compiled with an Apple Enterprise Developer Account, that allows for distribution through couple different methods : 27 | 28 | ### Enterprise App Distribution 29 | The archive (.ipa) built with Enterprise Developer account along with a *provisioning profile* can be uploaded to Workspace ONE UEM console and assigned to devices using smart groups. For more information on deploying enterprise apps with Workspace ONE UEM [refer this document](https://docs.omnissa.com/en/Omnissa-Workspace-ONE-UEM/1811/Omnissa-Workspace-ONE-UEM-Mobile-Application-Management/GUID-AWT-CONFIG-INTERNAL-APPS-LOCAL.html). 30 | 31 | ### Custom App 32 | 33 | **AppStore Connect Settings to release as a Custom App** 34 | 35 | To successfully go through AppStore Review, Apple should be able to test the app functionality. For this purpose, there is a demo mode added to the application that pops up a screen with manual input of information that will in practice be deployed through AppConfig. One of the easiest ways to help Apple test the demo mode is to create a test Organization group in a UAT environment, with REST API enabled, test admin account with API permissions and a test iOS device enrolled. Share the environment hostname (for eg: https://cn135.awmdm.com), API Token, Username and Password of the test admin account and the device identifier of the enrolled test device (This ID can be found in the URL when hovering over the device record in the admin console) 36 | 37 | To make it easier for submission, here's a quick write up that can be used for submission: 38 | 39 | ``` 40 | This is an IT focussed application that works in conjunction with Mobile Device Management (MDM), where the functionality for the application is unlocked using MDM defined Application Configuration. The usage of this app is strictly in IT workflows for iPads / iPhones that are shared in a line of business workflow where the App includes quick actions that the user can take to do things like "Factory Wipe", "Device Sync". There is no sign in information required for the application as it is entirely configured using Managed App Config. 41 | 42 | For more information on App Config, please refer : 43 | https://developer.apple.com/documentation/devicemanagement/installapplicationcommand/command 44 | https://www.apple.com/business/docs/resources/Managing_Devices_and_Corporate_Data_on_iOS.pdf 45 | 46 | NOTE : This application does NOT trigger MDM enrollment, but is instead deployed as a Managed Application after an MDM enrollment. 47 | 48 | Source Code for the application is available here: https://github.com/omnissa-archive/workspaceone-commands-for-ios 49 | 50 | You can use any MDM solution to test the app with the App Config information provided in the Github repo above. 51 | 52 | For the purposes of App Review, we've created a manual input screen to input information that would typically be deployed over the-air using Mobile Device Management. 53 | 54 | Instructions to test: 55 | 56 | Hostname : {INSERT HOSTNAME} 57 | API Key : {INSERT API TOKEN} 58 | Username : {INSERT ADMIN USERNAME} 59 | Password : {INSERT ADMIN PASSWORD} 60 | Device Identifier : {INSERT TEST DEVICE ID} 61 | 62 | The default action for demo mode is "Sync Device", which syncs the device with the device management server to get necessary applications and policies over the air. A demo device has been staged to test the sync. 63 | ``` 64 | 65 | Select the private distribution option with the Organization ID for the Apple Business Manager account 66 | 67 | Example : 68 | ![Distribution.png?raw=true](./bin/Distribution.png) 69 | 70 | **Deployment** 71 | 72 | Deploying as a Custom App with the help of Apple Business Manager will be the most preferred method going forward. For more information on Custom Apps check [this Techzone tutorial](https://techzone.omnissa.com/managing-ios-custom-apps-omnissa-workspace-one-operational-tutorial). The Application Configuration keys described above can be added to the app deployment during the assignment phase, as outlined in Step 8 of the [Assigning Custom Apps to Devices](https://techzone.omnissa.com/managing-ios-custom-apps-omnissa-workspace-one-operational-tutorial#1249320) section. 73 | 74 | ## How to configure the app? 75 | 76 | **Pre-requisites** 77 | 78 | * Access to Workspace ONE UEM console 79 | * API service account (needed as input in Appconfig below) 80 | * API token (needed as input in AppConfig below) 81 | 82 | When deploying the app to devices, use the following values in the Application Configuration section to configure the app appropriately: 83 | 84 | | Key | Type | Requirement | Function | 85 | | --- | --- | ---| --- | 86 | | DEVICE_UID | string | Required| Set to {DeviceUid} | 87 | | API_HOSTNAME | string | Required |The API URL for the WS1 UEM environment. Use the form https://apiurl.com/api | 88 | | API_KEY | string | Required |The REST API key configured in your WS1 UEM Organization Group | 89 | | API_USERNAME | string | Required | The username of a WS1 UEM administrator account that has the appropriate permissions to perform the specified actions. By default you can use an administrator account with the "Console Administrator" role. | 90 | | API_PASSWORD | string | Required | The password to the WS1 UEM administrator account specified above | 91 | | ENABLE_TROUBLESHOOTING | bool | Optional | If set to true, will enable a Troubleshooting menu within WS1 Actions where the user can see all applied configurations and API information. Set to false by default. | 92 | | ACTION_WIPE | bool | Optional | If set to true, enables the "Device Wipe" action. Set to false by default. | 93 | |ACTION_ENTERPRISEWIPE | bool | Optional | If set to true, enables the "Enterprise Wipe" action. Set to false by default. | 94 | | ACTION_CLEARPASSCODE | bool | Optional | If set to true, enables the "Clear Passcode" action. Set to false by default. | 95 | | ACTION_SYNC | bool | Optional | If set to true, enables the "Device Sync" action. Set to false by default. | 96 | 97 | Rather than creating each of these keys manually, you can use the **Upload XML** button when configuring the Application Configuration in the Workspace ONE UEM Console. Use the [sample XML file](./bin/WS1_Actions_appconfig.xml) located in the bin folder as a starting point, and then modify the key values as needed in the Workspace ONE UEM Console. 98 | 99 | ## Support 100 | Workspace ONE Commands for iOS project is released as open source software and, presently, provides community support through our GitHub project page and comes with no commercial support. If you encounter an issue or have a question, feel free to reach out via GitHub issues 101 | 102 | ## Contributing 103 | The Workspace ONE Commands for iOS project team welcomes contributions from the community. 104 | -------------------------------------------------------------------------------- /Commands/UI/Dashboard/DashboardViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DashboardViewController.swift 3 | // Action 4 | // 5 | // Created by Mohammed Lazim on 1/20/19. 6 | // Updated by Paul Evans on 5/12/20. 7 | // Copyright © 2020 Omnissa, LLC. All rights reserved. 8 | 9 | import UIKit 10 | 11 | class DashboardViewController: UICollectionViewController { 12 | 13 | @IBOutlet weak var settingsButton: UIBarButtonItem! 14 | @IBOutlet weak var navigationBar: UINavigationItem! 15 | @IBOutlet weak var backgroundView: UIImageView! 16 | 17 | static let screenIdentifier = "com.omnissa.action.screen.dashboard" 18 | static let storyboard = UIStoryboard(name: "Main", bundle: nil) 19 | 20 | var service: NetworkService? 21 | 22 | var context = ApplicationContext.shared 23 | 24 | lazy var enabledActions = self.context.configuration?.supportedActions ?? [Actions]() 25 | 26 | override func viewDidLoad() { 27 | super.viewDidLoad() 28 | 29 | let customView = UIView(frame: CGRect(x: 0.0, y: -5.0, width: 200.0, height: 40.0)) 30 | 31 | let label = UILabel(frame: CGRect(x: 0.0, y: -5.0, width: 150.0, height: 40.0)) 32 | label.text = "Actions" 33 | label.textColor = UIColor.black 34 | label.textAlignment = NSTextAlignment.right 35 | label.font = UIFont(name: "HelveticaNeue-Bold", size: 34)! 36 | customView.addSubview(label) 37 | self.navigationBar.leftBarButtonItem = UIBarButtonItem(customView: customView) 38 | 39 | print("[Dashboard] Loaded") 40 | 41 | guard let configuration = self.context.configuration else { 42 | print("[Dashboard] ❗️ No configuration available for app") 43 | return 44 | } 45 | 46 | guard let apiConfiguration = configuration.apiConfiguration else { 47 | print("[Dashboard] ❗️ No API configuration available for dashboard") 48 | return 49 | } 50 | 51 | guard configuration.deviceIdentifier != nil else { 52 | print("[Dashboard] ❗️ No device information available") 53 | return 54 | } 55 | 56 | if self.context.troubleshootingEnabled != nil && self.context.troubleshootingEnabled == true { 57 | let image = UIImage(named: "settings")?.withRenderingMode(.alwaysOriginal) 58 | navigationBar.rightBarButtonItem = settingsButton 59 | navigationBar.rightBarButtonItem?.image = image 60 | settingsButton.isEnabled = true 61 | } else { 62 | navigationBar.rightBarButtonItem = nil 63 | } 64 | 65 | let authProvider = ConsoleAuthorizer(apiConfiguration: apiConfiguration) 66 | 67 | self.service = NetworkService(host: apiConfiguration.hostname, authorizer: authProvider) 68 | 69 | if enabledActions.count < 5 { 70 | self.collectionView.isScrollEnabled = false 71 | } 72 | } 73 | 74 | // MARK: UICollectionViewDataSource 75 | 76 | override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { 77 | return self.enabledActions.count 78 | } 79 | 80 | override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { 81 | let cell = collectionView.dequeueReusableCell(withReuseIdentifier: CellReuseIdentifiers.DashboardCollection.action, 82 | for: indexPath) 83 | 84 | cell.backgroundColor = .clear 85 | 86 | if let actionCell = cell as? ActionCell { 87 | actionCell.configure(with: self.enabledActions[indexPath.row].actionInfo()) 88 | } 89 | 90 | return cell 91 | } 92 | 93 | // MARK: UICollectionViewDelegate 94 | override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { 95 | 96 | let selectedAction = self.enabledActions[indexPath.row] 97 | 98 | guard let service = self.service else { 99 | print("[Dashboard] ❗️ Network service unavailable") 100 | self.showAlert(title: "Error", message: "Network service unavailable") 101 | return 102 | } 103 | 104 | guard let deviceIdentifier = self.context.deviceIdentifier else { 105 | print("[Dashboard] ❗️ Device Identifier unavailable") 106 | self.showAlert(title: "Error", message: "Device Identifier unavailable") 107 | return 108 | } 109 | 110 | if let endpoint = selectedAction.actionEndpoint(service: service) { 111 | 112 | //let loadingController = self.showLoadingIndicator() 113 | 114 | confirmAction(endpoint: endpoint, udid: deviceIdentifier, confirmationMessage: selectedAction.confirmationMessage()) 115 | 116 | /* endpoint.perform(udid: deviceIdentifier, completion: { (success, message, details) in 117 | 118 | loadingController.dismiss(animated: true, completion: nil); 119 | 120 | print("\n\n\n") 121 | if success { 122 | print("Action succeeded. Showing message: \(message)") 123 | self.showAlert(title: "Success", message: message) 124 | } else { 125 | print("[Dashboard] ❗️ Action failed. Showing message: \(message)") 126 | print("Debug message: \(details ?? "-")") 127 | 128 | self.showAlert(title: "Error", message: message) 129 | } 130 | })*/ 131 | } else { 132 | print("[Dashboard] ❗️ Failed to get endpoint for \(selectedAction.actionInfo().title)") 133 | } 134 | 135 | } 136 | 137 | func performAction(endpoint: ConsoleActionsEndpoint, udid: String) { 138 | let loadingController = self.showLoadingIndicator() 139 | 140 | endpoint.perform(udid: udid, completion: { (success, message, details) in 141 | 142 | DispatchQueue.main.async { [weak self] in 143 | loadingController.dismiss(animated: true) { 144 | if success { 145 | print("Action succeeded. Showing message: \(message)") 146 | self?.showAlert(title: "Success", message: message) 147 | } else { 148 | print("[Dashboard] ❗️ Action failed. Showing message: \(message)") 149 | print("Debug message: \(details ?? "-")") 150 | self?.showAlert(title: "Error", message: message) 151 | } 152 | } 153 | } 154 | }) 155 | } 156 | 157 | func confirmAction(endpoint: ConsoleActionsEndpoint, udid: String, confirmationMessage: String) { 158 | 159 | let dialogMessage = UIAlertController(title: "Confirm", message: confirmationMessage, preferredStyle: .alert) 160 | 161 | let yes = UIAlertAction(title: "Yes", style: .default, handler: { (action) -> Void in 162 | self.performAction(endpoint: endpoint, udid: udid) 163 | }) 164 | 165 | // Create Cancel button with action handlder 166 | let no = UIAlertAction(title: "No", style: .cancel) { (action) -> Void in 167 | } 168 | 169 | //Add OK and Cancel button to dialog message 170 | dialogMessage.addAction(yes) 171 | dialogMessage.addAction(no) 172 | 173 | // Present dialog message to user 174 | self.present(dialogMessage, animated: true, completion: nil) 175 | } 176 | 177 | } 178 | 179 | extension DashboardViewController: UICollectionViewDelegateFlowLayout { 180 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { 181 | let collectionViewSize = collectionView.frame.size 182 | var drawableSize = collectionViewSize 183 | if let navigationBarFrame = self.navigationController?.navigationBar.frame { 184 | drawableSize.height = drawableSize.height - navigationBarFrame.height - navigationBarFrame.origin.y 185 | } 186 | 187 | if #available(iOS 11.0, *) { 188 | drawableSize.height = drawableSize.height - additionalSafeAreaInsets.bottom - additionalSafeAreaInsets.top 189 | } 190 | 191 | if self.enabledActions.count == 1 { 192 | 193 | drawableSize.height = drawableSize.height / 1.2 194 | } else if self.enabledActions.count == 2 { 195 | drawableSize.height = drawableSize.height / (CGFloat(self.enabledActions.count) + 0.3) 196 | } else if self.enabledActions.count == 3 || self.enabledActions.count == 4 { 197 | drawableSize.width = (drawableSize.width / 2 - 5.0) 198 | drawableSize.height = drawableSize.height / 2.1 199 | } else { 200 | drawableSize.width = (drawableSize.width / 2 - 5.0) 201 | drawableSize.height = drawableSize.height / 3.1 202 | } 203 | 204 | drawableSize.height = drawableSize.height / 2 205 | 206 | return drawableSize 207 | } 208 | 209 | func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { 210 | return .zero 211 | } 212 | 213 | } 214 | 215 | 216 | extension DashboardViewController { 217 | func showAlert(title: String, message: String) { 218 | let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) 219 | 220 | let okAction = UIAlertAction(title: "OK", style: .default, handler: nil) 221 | 222 | alert.addAction(okAction) 223 | 224 | DispatchQueue.main.async { [weak self] in 225 | self?.present(alert, animated: true, completion: nil) 226 | } 227 | } 228 | 229 | func showLoadingIndicator() -> UIAlertController { 230 | let alert = UIAlertController(title: "", message: "Please wait while request is being sent.", preferredStyle: .alert) 231 | 232 | DispatchQueue.main.async { [weak self] in 233 | self?.present(alert, animated: true, completion: nil) 234 | } 235 | return alert 236 | } 237 | } 238 | -------------------------------------------------------------------------------- /Commands.xcodeproj/xcuserdata/rahul.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 21 | 22 | 23 | 25 | 37 | 38 | 39 | 41 | 53 | 54 | 55 | 57 | 69 | 70 | 71 | 73 | 85 | 86 | 87 | 89 | 101 | 102 | 103 | 105 | 117 | 118 | 119 | 121 | 133 | 134 | 135 | 137 | 147 | 148 | 149 | 151 | 161 | 162 | 163 | 165 | 177 | 178 | 179 | 181 | 193 | 194 | 195 | 197 | 209 | 210 | 211 | 213 | 225 | 226 | 227 | 229 | 241 | 242 | 243 | 245 | 257 | 258 | 259 | 261 | 273 | 274 | 275 | 276 | 277 | -------------------------------------------------------------------------------- /Commands.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7907DBD122D3832F001C9F46 /* SetupViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7907DBD022D3832F001C9F46 /* SetupViewController.swift */; }; 11 | 7907DBD322D384B1001C9F46 /* Context.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7907DBD222D384B1001C9F46 /* Context.swift */; }; 12 | 7917C993221945DF00305610 /* NetworkService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7917C992221945DF00305610 /* NetworkService.swift */; }; 13 | 7917C9962219514300305610 /* DeviceWipeEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7917C9952219514300305610 /* DeviceWipeEndpoint.swift */; }; 14 | 7917C99922197D8700305610 /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7917C99822197D8700305610 /* String.swift */; }; 15 | 792057AA21F4562200FD6888 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 792057A921F4562200FD6888 /* AppDelegate.swift */; }; 16 | 792057AF21F4562200FD6888 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 792057AD21F4562200FD6888 /* Main.storyboard */; }; 17 | 792057B421F4562300FD6888 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 792057B321F4562300FD6888 /* Assets.xcassets */; }; 18 | 792057B721F4562300FD6888 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 792057B521F4562300FD6888 /* LaunchScreen.storyboard */; }; 19 | 792057DC21F4574C00FD6888 /* DashboardViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 792057DB21F4574C00FD6888 /* DashboardViewController.swift */; }; 20 | 79343C1222796EC900FA999F /* DeviceCommandEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79343C1122796EC900FA999F /* DeviceCommandEndpoint.swift */; }; 21 | 79343C162279715C00FA999F /* DeviceSyncEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79343C152279715C00FA999F /* DeviceSyncEndpoint.swift */; }; 22 | 79343C182279719E00FA999F /* DeviceEnterpriseWipeEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79343C172279719E00FA999F /* DeviceEnterpriseWipeEndpoint.swift */; }; 23 | 7957B5DF254479CD00143044 /* ConfigurationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7957B5DE254479CD00143044 /* ConfigurationViewController.swift */; }; 24 | 7957B5E92545658B00143044 /* DashboardPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7957B5E82545658B00143044 /* DashboardPresenter.swift */; }; 25 | 799FEFAF225A147100FBBC80 /* DeviceClearPasscodeEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 799FEFAE225A147100FBBC80 /* DeviceClearPasscodeEndpoint.swift */; }; 26 | 79B189C52290CCA50013CD24 /* TroubleshootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79B189C42290CCA50013CD24 /* TroubleshootViewController.swift */; }; 27 | 79DA2CA122D9DF9400482A8B /* ConsoleAuthorizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DA2CA022D9DF9400482A8B /* ConsoleAuthorizer.swift */; }; 28 | 79DA2CA422D9E23300482A8B /* ActionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DA2CA322D9E23300482A8B /* ActionCell.swift */; }; 29 | 79DA2CA622D9E49200482A8B /* Actions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DA2CA522D9E49200482A8B /* Actions.swift */; }; 30 | 79DA2CA822D9E50300482A8B /* APIConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DA2CA722D9E50300482A8B /* APIConfiguration.swift */; }; 31 | 79DA2CAA22D9E5C000482A8B /* ContextSetupTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79DA2CA922D9E5C000482A8B /* ContextSetupTests.swift */; }; 32 | 79DA2CAB22D9E64500482A8B /* Omnissa_ActionUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 792057CC21F4562400FD6888 /* Omnissa_ActionUITests.swift */; }; 33 | 79FB1FA1221007EA00889228 /* AppConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FB1FA0221007EA00889228 /* AppConfig.swift */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 792057BE21F4562400FD6888 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 7920579E21F4562200FD6888 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = 792057A521F4562200FD6888; 42 | remoteInfo = "Omnissa Action"; 43 | }; 44 | 792057C921F4562400FD6888 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 7920579E21F4562200FD6888 /* Project object */; 47 | proxyType = 1; 48 | remoteGlobalIDString = 792057A521F4562200FD6888; 49 | remoteInfo = "Omnissa Action"; 50 | }; 51 | /* End PBXContainerItemProxy section */ 52 | 53 | /* Begin PBXFileReference section */ 54 | 7907DBD022D3832F001C9F46 /* SetupViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetupViewController.swift; sourceTree = ""; }; 55 | 7907DBD222D384B1001C9F46 /* Context.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Context.swift; sourceTree = ""; }; 56 | 7917C992221945DF00305610 /* NetworkService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkService.swift; sourceTree = ""; }; 57 | 7917C9952219514300305610 /* DeviceWipeEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceWipeEndpoint.swift; sourceTree = ""; }; 58 | 7917C99822197D8700305610 /* String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = ""; }; 59 | 792057A621F4562200FD6888 /* Actions.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Actions.app; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 792057A921F4562200FD6888 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 61 | 792057AE21F4562200FD6888 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 62 | 792057B121F4562200FD6888 /* Omnissa_Action.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Omnissa_Action.xcdatamodel; sourceTree = ""; }; 63 | 792057B321F4562300FD6888 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 64 | 792057B621F4562300FD6888 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 65 | 792057B821F4562300FD6888 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | 792057BD21F4562400FD6888 /* CommandsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CommandsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 792057C321F4562400FD6888 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 68 | 792057C821F4562400FD6888 /* CommandsUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CommandsUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 792057CC21F4562400FD6888 /* Omnissa_ActionUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Omnissa_ActionUITests.swift; sourceTree = ""; }; 70 | 792057CE21F4562400FD6888 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 71 | 792057DB21F4574C00FD6888 /* DashboardViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardViewController.swift; sourceTree = ""; }; 72 | 79343C1122796EC900FA999F /* DeviceCommandEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceCommandEndpoint.swift; sourceTree = ""; }; 73 | 79343C152279715C00FA999F /* DeviceSyncEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceSyncEndpoint.swift; sourceTree = ""; }; 74 | 79343C172279719E00FA999F /* DeviceEnterpriseWipeEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceEnterpriseWipeEndpoint.swift; sourceTree = ""; }; 75 | 7957B5DE254479CD00143044 /* ConfigurationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfigurationViewController.swift; sourceTree = ""; }; 76 | 7957B5E82545658B00143044 /* DashboardPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardPresenter.swift; sourceTree = ""; }; 77 | 799FEFAE225A147100FBBC80 /* DeviceClearPasscodeEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceClearPasscodeEndpoint.swift; sourceTree = ""; }; 78 | 79B189C42290CCA50013CD24 /* TroubleshootViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TroubleshootViewController.swift; sourceTree = ""; }; 79 | 79DA2CA022D9DF9400482A8B /* ConsoleAuthorizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsoleAuthorizer.swift; sourceTree = ""; }; 80 | 79DA2CA322D9E23300482A8B /* ActionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionCell.swift; sourceTree = ""; }; 81 | 79DA2CA522D9E49200482A8B /* Actions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Actions.swift; sourceTree = ""; }; 82 | 79DA2CA722D9E50300482A8B /* APIConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIConfiguration.swift; sourceTree = ""; }; 83 | 79DA2CA922D9E5C000482A8B /* ContextSetupTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContextSetupTests.swift; sourceTree = ""; }; 84 | 79FB1FA0221007EA00889228 /* AppConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppConfig.swift; sourceTree = ""; }; 85 | /* End PBXFileReference section */ 86 | 87 | /* Begin PBXFrameworksBuildPhase section */ 88 | 792057A321F4562200FD6888 /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | 792057BA21F4562400FD6888 /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | 792057C521F4562400FD6888 /* Frameworks */ = { 103 | isa = PBXFrameworksBuildPhase; 104 | buildActionMask = 2147483647; 105 | files = ( 106 | ); 107 | runOnlyForDeploymentPostprocessing = 0; 108 | }; 109 | /* End PBXFrameworksBuildPhase section */ 110 | 111 | /* Begin PBXGroup section */ 112 | 7917C991221945C700305610 /* Network Service */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 79DA2CA022D9DF9400482A8B /* ConsoleAuthorizer.swift */, 116 | 7917C992221945DF00305610 /* NetworkService.swift */, 117 | ); 118 | path = "Network Service"; 119 | sourceTree = ""; 120 | }; 121 | 7917C9942219512F00305610 /* Commands Endpoints */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 7917C9952219514300305610 /* DeviceWipeEndpoint.swift */, 125 | 79343C1122796EC900FA999F /* DeviceCommandEndpoint.swift */, 126 | 799FEFAE225A147100FBBC80 /* DeviceClearPasscodeEndpoint.swift */, 127 | 79343C152279715C00FA999F /* DeviceSyncEndpoint.swift */, 128 | 79343C172279719E00FA999F /* DeviceEnterpriseWipeEndpoint.swift */, 129 | ); 130 | path = "Commands Endpoints"; 131 | sourceTree = ""; 132 | }; 133 | 7917C99722197D7700305610 /* Extensions */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 7917C99822197D8700305610 /* String.swift */, 137 | ); 138 | path = Extensions; 139 | sourceTree = ""; 140 | }; 141 | 7920579D21F4562200FD6888 = { 142 | isa = PBXGroup; 143 | children = ( 144 | 792057A821F4562200FD6888 /* Commands */, 145 | 792057C021F4562400FD6888 /* CommandsTests */, 146 | 792057CB21F4562400FD6888 /* CommandsUITests */, 147 | 792057A721F4562200FD6888 /* Products */, 148 | ); 149 | sourceTree = ""; 150 | }; 151 | 792057A721F4562200FD6888 /* Products */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 792057A621F4562200FD6888 /* Actions.app */, 155 | 792057BD21F4562400FD6888 /* CommandsTests.xctest */, 156 | 792057C821F4562400FD6888 /* CommandsUITests.xctest */, 157 | ); 158 | name = Products; 159 | sourceTree = ""; 160 | }; 161 | 792057A821F4562200FD6888 /* Commands */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 7917C99722197D7700305610 /* Extensions */, 165 | 7917C9942219512F00305610 /* Commands Endpoints */, 166 | 7917C991221945C700305610 /* Network Service */, 167 | 79FB1F9F221007A300889228 /* Models */, 168 | 792057DA21F456D300FD6888 /* UI */, 169 | 7907DBD222D384B1001C9F46 /* Context.swift */, 170 | 792057A921F4562200FD6888 /* AppDelegate.swift */, 171 | 792057AD21F4562200FD6888 /* Main.storyboard */, 172 | 792057B321F4562300FD6888 /* Assets.xcassets */, 173 | 792057B521F4562300FD6888 /* LaunchScreen.storyboard */, 174 | 792057B821F4562300FD6888 /* Info.plist */, 175 | 792057B021F4562200FD6888 /* Omnissa_Action.xcdatamodeld */, 176 | ); 177 | path = Commands; 178 | sourceTree = ""; 179 | }; 180 | 792057C021F4562400FD6888 /* CommandsTests */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 792057C321F4562400FD6888 /* Info.plist */, 184 | 79DA2CA922D9E5C000482A8B /* ContextSetupTests.swift */, 185 | ); 186 | path = CommandsTests; 187 | sourceTree = ""; 188 | }; 189 | 792057CB21F4562400FD6888 /* CommandsUITests */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 792057CC21F4562400FD6888 /* Omnissa_ActionUITests.swift */, 193 | 792057CE21F4562400FD6888 /* Info.plist */, 194 | ); 195 | path = CommandsUITests; 196 | sourceTree = ""; 197 | }; 198 | 792057DA21F456D300FD6888 /* UI */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 79DA2CA222D9E00400482A8B /* Dashboard */, 202 | 7907DBD022D3832F001C9F46 /* SetupViewController.swift */, 203 | 79B189C42290CCA50013CD24 /* TroubleshootViewController.swift */, 204 | 7957B5DE254479CD00143044 /* ConfigurationViewController.swift */, 205 | 7957B5E82545658B00143044 /* DashboardPresenter.swift */, 206 | ); 207 | path = UI; 208 | sourceTree = ""; 209 | }; 210 | 79DA2CA222D9E00400482A8B /* Dashboard */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 792057DB21F4574C00FD6888 /* DashboardViewController.swift */, 214 | 79DA2CA322D9E23300482A8B /* ActionCell.swift */, 215 | ); 216 | path = Dashboard; 217 | sourceTree = ""; 218 | }; 219 | 79FB1F9F221007A300889228 /* Models */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | 79FB1FA0221007EA00889228 /* AppConfig.swift */, 223 | 79DA2CA522D9E49200482A8B /* Actions.swift */, 224 | 79DA2CA722D9E50300482A8B /* APIConfiguration.swift */, 225 | ); 226 | path = Models; 227 | sourceTree = ""; 228 | }; 229 | /* End PBXGroup section */ 230 | 231 | /* Begin PBXNativeTarget section */ 232 | 792057A521F4562200FD6888 /* Commands */ = { 233 | isa = PBXNativeTarget; 234 | buildConfigurationList = 792057D121F4562400FD6888 /* Build configuration list for PBXNativeTarget "Commands" */; 235 | buildPhases = ( 236 | 792057A221F4562200FD6888 /* Sources */, 237 | 792057A321F4562200FD6888 /* Frameworks */, 238 | 792057A421F4562200FD6888 /* Resources */, 239 | ); 240 | buildRules = ( 241 | ); 242 | dependencies = ( 243 | ); 244 | name = Commands; 245 | productName = "Omnissa Action"; 246 | productReference = 792057A621F4562200FD6888 /* Actions.app */; 247 | productType = "com.apple.product-type.application"; 248 | }; 249 | 792057BC21F4562400FD6888 /* CommandsTests */ = { 250 | isa = PBXNativeTarget; 251 | buildConfigurationList = 792057D421F4562400FD6888 /* Build configuration list for PBXNativeTarget "CommandsTests" */; 252 | buildPhases = ( 253 | 792057B921F4562400FD6888 /* Sources */, 254 | 792057BA21F4562400FD6888 /* Frameworks */, 255 | 792057BB21F4562400FD6888 /* Resources */, 256 | ); 257 | buildRules = ( 258 | ); 259 | dependencies = ( 260 | 792057BF21F4562400FD6888 /* PBXTargetDependency */, 261 | ); 262 | name = CommandsTests; 263 | productName = "Omnissa ActionTests"; 264 | productReference = 792057BD21F4562400FD6888 /* CommandsTests.xctest */; 265 | productType = "com.apple.product-type.bundle.unit-test"; 266 | }; 267 | 792057C721F4562400FD6888 /* CommandsUITests */ = { 268 | isa = PBXNativeTarget; 269 | buildConfigurationList = 792057D721F4562400FD6888 /* Build configuration list for PBXNativeTarget "CommandsUITests" */; 270 | buildPhases = ( 271 | 792057C421F4562400FD6888 /* Sources */, 272 | 792057C521F4562400FD6888 /* Frameworks */, 273 | 792057C621F4562400FD6888 /* Resources */, 274 | ); 275 | buildRules = ( 276 | ); 277 | dependencies = ( 278 | 792057CA21F4562400FD6888 /* PBXTargetDependency */, 279 | ); 280 | name = CommandsUITests; 281 | productName = "Omnissa ActionUITests"; 282 | productReference = 792057C821F4562400FD6888 /* CommandsUITests.xctest */; 283 | productType = "com.apple.product-type.bundle.ui-testing"; 284 | }; 285 | /* End PBXNativeTarget section */ 286 | 287 | /* Begin PBXProject section */ 288 | 7920579E21F4562200FD6888 /* Project object */ = { 289 | isa = PBXProject; 290 | attributes = { 291 | LastSwiftUpdateCheck = 1010; 292 | LastUpgradeCheck = 1010; 293 | ORGANIZATIONNAME = Omnissa; 294 | TargetAttributes = { 295 | 792057A521F4562200FD6888 = { 296 | CreatedOnToolsVersion = 10.1; 297 | LastSwiftMigration = 1140; 298 | }; 299 | 792057BC21F4562400FD6888 = { 300 | CreatedOnToolsVersion = 10.1; 301 | LastSwiftMigration = 1140; 302 | }; 303 | 792057C721F4562400FD6888 = { 304 | CreatedOnToolsVersion = 10.1; 305 | LastSwiftMigration = 1140; 306 | TestTargetID = 792057A521F4562200FD6888; 307 | }; 308 | }; 309 | }; 310 | buildConfigurationList = 792057A121F4562200FD6888 /* Build configuration list for PBXProject "Commands" */; 311 | compatibilityVersion = "Xcode 9.3"; 312 | developmentRegion = en; 313 | hasScannedForEncodings = 0; 314 | knownRegions = ( 315 | en, 316 | Base, 317 | ); 318 | mainGroup = 7920579D21F4562200FD6888; 319 | productRefGroup = 792057A721F4562200FD6888 /* Products */; 320 | projectDirPath = ""; 321 | projectRoot = ""; 322 | targets = ( 323 | 792057A521F4562200FD6888 /* Commands */, 324 | 792057BC21F4562400FD6888 /* CommandsTests */, 325 | 792057C721F4562400FD6888 /* CommandsUITests */, 326 | ); 327 | }; 328 | /* End PBXProject section */ 329 | 330 | /* Begin PBXResourcesBuildPhase section */ 331 | 792057A421F4562200FD6888 /* Resources */ = { 332 | isa = PBXResourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 792057B721F4562300FD6888 /* LaunchScreen.storyboard in Resources */, 336 | 792057B421F4562300FD6888 /* Assets.xcassets in Resources */, 337 | 792057AF21F4562200FD6888 /* Main.storyboard in Resources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 792057BB21F4562400FD6888 /* Resources */ = { 342 | isa = PBXResourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | 792057C621F4562400FD6888 /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | /* End PBXResourcesBuildPhase section */ 356 | 357 | /* Begin PBXSourcesBuildPhase section */ 358 | 792057A221F4562200FD6888 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 79B189C52290CCA50013CD24 /* TroubleshootViewController.swift in Sources */, 363 | 79DA2CA122D9DF9400482A8B /* ConsoleAuthorizer.swift in Sources */, 364 | 7917C993221945DF00305610 /* NetworkService.swift in Sources */, 365 | 792057AA21F4562200FD6888 /* AppDelegate.swift in Sources */, 366 | 7907DBD322D384B1001C9F46 /* Context.swift in Sources */, 367 | 799FEFAF225A147100FBBC80 /* DeviceClearPasscodeEndpoint.swift in Sources */, 368 | 79FB1FA1221007EA00889228 /* AppConfig.swift in Sources */, 369 | 792057DC21F4574C00FD6888 /* DashboardViewController.swift in Sources */, 370 | 7957B5E92545658B00143044 /* DashboardPresenter.swift in Sources */, 371 | 79343C162279715C00FA999F /* DeviceSyncEndpoint.swift in Sources */, 372 | 79DA2CA622D9E49200482A8B /* Actions.swift in Sources */, 373 | 79DA2CA422D9E23300482A8B /* ActionCell.swift in Sources */, 374 | 79343C182279719E00FA999F /* DeviceEnterpriseWipeEndpoint.swift in Sources */, 375 | 79DA2CA822D9E50300482A8B /* APIConfiguration.swift in Sources */, 376 | 7917C99922197D8700305610 /* String.swift in Sources */, 377 | 79343C1222796EC900FA999F /* DeviceCommandEndpoint.swift in Sources */, 378 | 7957B5DF254479CD00143044 /* ConfigurationViewController.swift in Sources */, 379 | 7907DBD122D3832F001C9F46 /* SetupViewController.swift in Sources */, 380 | 7917C9962219514300305610 /* DeviceWipeEndpoint.swift in Sources */, 381 | ); 382 | runOnlyForDeploymentPostprocessing = 0; 383 | }; 384 | 792057B921F4562400FD6888 /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | 79DA2CAA22D9E5C000482A8B /* ContextSetupTests.swift in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | 792057C421F4562400FD6888 /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | 79DA2CAB22D9E64500482A8B /* Omnissa_ActionUITests.swift in Sources */, 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | }; 400 | /* End PBXSourcesBuildPhase section */ 401 | 402 | /* Begin PBXTargetDependency section */ 403 | 792057BF21F4562400FD6888 /* PBXTargetDependency */ = { 404 | isa = PBXTargetDependency; 405 | target = 792057A521F4562200FD6888 /* Commands */; 406 | targetProxy = 792057BE21F4562400FD6888 /* PBXContainerItemProxy */; 407 | }; 408 | 792057CA21F4562400FD6888 /* PBXTargetDependency */ = { 409 | isa = PBXTargetDependency; 410 | target = 792057A521F4562200FD6888 /* Commands */; 411 | targetProxy = 792057C921F4562400FD6888 /* PBXContainerItemProxy */; 412 | }; 413 | /* End PBXTargetDependency section */ 414 | 415 | /* Begin PBXVariantGroup section */ 416 | 792057AD21F4562200FD6888 /* Main.storyboard */ = { 417 | isa = PBXVariantGroup; 418 | children = ( 419 | 792057AE21F4562200FD6888 /* Base */, 420 | ); 421 | name = Main.storyboard; 422 | sourceTree = ""; 423 | }; 424 | 792057B521F4562300FD6888 /* LaunchScreen.storyboard */ = { 425 | isa = PBXVariantGroup; 426 | children = ( 427 | 792057B621F4562300FD6888 /* Base */, 428 | ); 429 | name = LaunchScreen.storyboard; 430 | sourceTree = ""; 431 | }; 432 | /* End PBXVariantGroup section */ 433 | 434 | /* Begin XCBuildConfiguration section */ 435 | 792057CF21F4562400FD6888 /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ALWAYS_SEARCH_USER_PATHS = NO; 439 | CLANG_ANALYZER_NONNULL = YES; 440 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 441 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 442 | CLANG_CXX_LIBRARY = "libc++"; 443 | CLANG_ENABLE_MODULES = YES; 444 | CLANG_ENABLE_OBJC_ARC = YES; 445 | CLANG_ENABLE_OBJC_WEAK = YES; 446 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 447 | CLANG_WARN_BOOL_CONVERSION = YES; 448 | CLANG_WARN_COMMA = YES; 449 | CLANG_WARN_CONSTANT_CONVERSION = YES; 450 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 451 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 452 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 453 | CLANG_WARN_EMPTY_BODY = YES; 454 | CLANG_WARN_ENUM_CONVERSION = YES; 455 | CLANG_WARN_INFINITE_RECURSION = YES; 456 | CLANG_WARN_INT_CONVERSION = YES; 457 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | CODE_SIGN_IDENTITY = "iPhone Developer"; 468 | COPY_PHASE_STRIP = NO; 469 | DEBUG_INFORMATION_FORMAT = dwarf; 470 | ENABLE_STRICT_OBJC_MSGSEND = YES; 471 | ENABLE_TESTABILITY = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu11; 473 | GCC_DYNAMIC_NO_PIC = NO; 474 | GCC_NO_COMMON_BLOCKS = YES; 475 | GCC_OPTIMIZATION_LEVEL = 0; 476 | GCC_PREPROCESSOR_DEFINITIONS = ( 477 | "DEBUG=1", 478 | "$(inherited)", 479 | ); 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 487 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 488 | MTL_FAST_MATH = YES; 489 | ONLY_ACTIVE_ARCH = YES; 490 | SDKROOT = iphoneos; 491 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 492 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 493 | }; 494 | name = Debug; 495 | }; 496 | 792057D021F4562400FD6888 /* Release */ = { 497 | isa = XCBuildConfiguration; 498 | buildSettings = { 499 | ALWAYS_SEARCH_USER_PATHS = NO; 500 | CLANG_ANALYZER_NONNULL = YES; 501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 503 | CLANG_CXX_LIBRARY = "libc++"; 504 | CLANG_ENABLE_MODULES = YES; 505 | CLANG_ENABLE_OBJC_ARC = YES; 506 | CLANG_ENABLE_OBJC_WEAK = YES; 507 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 508 | CLANG_WARN_BOOL_CONVERSION = YES; 509 | CLANG_WARN_COMMA = YES; 510 | CLANG_WARN_CONSTANT_CONVERSION = YES; 511 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 512 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 513 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 514 | CLANG_WARN_EMPTY_BODY = YES; 515 | CLANG_WARN_ENUM_CONVERSION = YES; 516 | CLANG_WARN_INFINITE_RECURSION = YES; 517 | CLANG_WARN_INT_CONVERSION = YES; 518 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 519 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 520 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 521 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 522 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 523 | CLANG_WARN_STRICT_PROTOTYPES = YES; 524 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 525 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 526 | CLANG_WARN_UNREACHABLE_CODE = YES; 527 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 528 | CODE_SIGN_IDENTITY = "iPhone Developer"; 529 | COPY_PHASE_STRIP = NO; 530 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 531 | ENABLE_NS_ASSERTIONS = NO; 532 | ENABLE_STRICT_OBJC_MSGSEND = YES; 533 | GCC_C_LANGUAGE_STANDARD = gnu11; 534 | GCC_NO_COMMON_BLOCKS = YES; 535 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 536 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 537 | GCC_WARN_UNDECLARED_SELECTOR = YES; 538 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 539 | GCC_WARN_UNUSED_FUNCTION = YES; 540 | GCC_WARN_UNUSED_VARIABLE = YES; 541 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 542 | MTL_ENABLE_DEBUG_INFO = NO; 543 | MTL_FAST_MATH = YES; 544 | SDKROOT = iphoneos; 545 | SWIFT_COMPILATION_MODE = wholemodule; 546 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 547 | VALIDATE_PRODUCT = YES; 548 | }; 549 | name = Release; 550 | }; 551 | 792057D221F4562400FD6888 /* Debug */ = { 552 | isa = XCBuildConfiguration; 553 | buildSettings = { 554 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 555 | CODE_SIGN_IDENTITY = "Apple Development"; 556 | CODE_SIGN_STYLE = Automatic; 557 | DEVELOPMENT_TEAM = 7SUQPKEF96; 558 | INFOPLIST_FILE = Commands/Info.plist; 559 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 560 | LD_RUNPATH_SEARCH_PATHS = ( 561 | "$(inherited)", 562 | "@executable_path/Frameworks", 563 | ); 564 | MARKETING_VERSION = 2.0; 565 | PRODUCT_BUNDLE_IDENTIFIER = com.numberlock.commands; 566 | PRODUCT_NAME = Actions; 567 | PROVISIONING_PROFILE_SPECIFIER = ""; 568 | SWIFT_VERSION = 5.0; 569 | TARGETED_DEVICE_FAMILY = "1,2"; 570 | }; 571 | name = Debug; 572 | }; 573 | 792057D321F4562400FD6888 /* Release */ = { 574 | isa = XCBuildConfiguration; 575 | buildSettings = { 576 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 577 | CODE_SIGN_IDENTITY = "Apple Development"; 578 | CODE_SIGN_STYLE = Automatic; 579 | DEVELOPMENT_TEAM = 7SUQPKEF96; 580 | INFOPLIST_FILE = Commands/Info.plist; 581 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 582 | LD_RUNPATH_SEARCH_PATHS = ( 583 | "$(inherited)", 584 | "@executable_path/Frameworks", 585 | ); 586 | MARKETING_VERSION = 2.0; 587 | PRODUCT_BUNDLE_IDENTIFIER = com.numberlock.commands; 588 | PRODUCT_NAME = Actions; 589 | PROVISIONING_PROFILE_SPECIFIER = ""; 590 | SWIFT_VERSION = 5.0; 591 | TARGETED_DEVICE_FAMILY = "1,2"; 592 | }; 593 | name = Release; 594 | }; 595 | 792057D521F4562400FD6888 /* Debug */ = { 596 | isa = XCBuildConfiguration; 597 | buildSettings = { 598 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 599 | CODE_SIGN_STYLE = Automatic; 600 | DEVELOPMENT_TEAM = S2ZMFGQM93; 601 | INFOPLIST_FILE = "Omnissa ActionTests/Info.plist"; 602 | LD_RUNPATH_SEARCH_PATHS = ( 603 | "$(inherited)", 604 | "@executable_path/Frameworks", 605 | "@loader_path/Frameworks", 606 | ); 607 | PRODUCT_BUNDLE_IDENTIFIER = "com.air-watch.Omnissa-ActionTests"; 608 | PRODUCT_NAME = "$(TARGET_NAME)"; 609 | SWIFT_VERSION = 5.0; 610 | TARGETED_DEVICE_FAMILY = "1,2"; 611 | }; 612 | name = Debug; 613 | }; 614 | 792057D621F4562400FD6888 /* Release */ = { 615 | isa = XCBuildConfiguration; 616 | buildSettings = { 617 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 618 | CODE_SIGN_STYLE = Automatic; 619 | DEVELOPMENT_TEAM = S2ZMFGQM93; 620 | INFOPLIST_FILE = "Omnissa ActionTests/Info.plist"; 621 | LD_RUNPATH_SEARCH_PATHS = ( 622 | "$(inherited)", 623 | "@executable_path/Frameworks", 624 | "@loader_path/Frameworks", 625 | ); 626 | PRODUCT_BUNDLE_IDENTIFIER = "com.air-watch.Omnissa-ActionTests"; 627 | PRODUCT_NAME = "$(TARGET_NAME)"; 628 | SWIFT_VERSION = 5.0; 629 | TARGETED_DEVICE_FAMILY = "1,2"; 630 | }; 631 | name = Release; 632 | }; 633 | 792057D821F4562400FD6888 /* Debug */ = { 634 | isa = XCBuildConfiguration; 635 | buildSettings = { 636 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 637 | CODE_SIGN_STYLE = Automatic; 638 | DEVELOPMENT_TEAM = 7SUQPKEF96; 639 | INFOPLIST_FILE = "Omnissa ActionUITests/Info.plist"; 640 | LD_RUNPATH_SEARCH_PATHS = ( 641 | "$(inherited)", 642 | "@executable_path/Frameworks", 643 | "@loader_path/Frameworks", 644 | ); 645 | PRODUCT_BUNDLE_IDENTIFIER = "com.air-watch.Omnissa-ActionUITests"; 646 | PRODUCT_NAME = "$(TARGET_NAME)"; 647 | SWIFT_VERSION = 5.0; 648 | TARGETED_DEVICE_FAMILY = "1,2"; 649 | TEST_TARGET_NAME = "Omnissa Action"; 650 | }; 651 | name = Debug; 652 | }; 653 | 792057D921F4562400FD6888 /* Release */ = { 654 | isa = XCBuildConfiguration; 655 | buildSettings = { 656 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 657 | CODE_SIGN_STYLE = Automatic; 658 | DEVELOPMENT_TEAM = 7SUQPKEF96; 659 | INFOPLIST_FILE = "Omnissa ActionUITests/Info.plist"; 660 | LD_RUNPATH_SEARCH_PATHS = ( 661 | "$(inherited)", 662 | "@executable_path/Frameworks", 663 | "@loader_path/Frameworks", 664 | ); 665 | PRODUCT_BUNDLE_IDENTIFIER = "com.air-watch.Omnissa-ActionUITests"; 666 | PRODUCT_NAME = "$(TARGET_NAME)"; 667 | SWIFT_VERSION = 5.0; 668 | TARGETED_DEVICE_FAMILY = "1,2"; 669 | TEST_TARGET_NAME = "Omnissa Action"; 670 | }; 671 | name = Release; 672 | }; 673 | /* End XCBuildConfiguration section */ 674 | 675 | /* Begin XCConfigurationList section */ 676 | 792057A121F4562200FD6888 /* Build configuration list for PBXProject "Commands" */ = { 677 | isa = XCConfigurationList; 678 | buildConfigurations = ( 679 | 792057CF21F4562400FD6888 /* Debug */, 680 | 792057D021F4562400FD6888 /* Release */, 681 | ); 682 | defaultConfigurationIsVisible = 0; 683 | defaultConfigurationName = Release; 684 | }; 685 | 792057D121F4562400FD6888 /* Build configuration list for PBXNativeTarget "Commands" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | 792057D221F4562400FD6888 /* Debug */, 689 | 792057D321F4562400FD6888 /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | 792057D421F4562400FD6888 /* Build configuration list for PBXNativeTarget "CommandsTests" */ = { 695 | isa = XCConfigurationList; 696 | buildConfigurations = ( 697 | 792057D521F4562400FD6888 /* Debug */, 698 | 792057D621F4562400FD6888 /* Release */, 699 | ); 700 | defaultConfigurationIsVisible = 0; 701 | defaultConfigurationName = Release; 702 | }; 703 | 792057D721F4562400FD6888 /* Build configuration list for PBXNativeTarget "CommandsUITests" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | 792057D821F4562400FD6888 /* Debug */, 707 | 792057D921F4562400FD6888 /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | /* End XCConfigurationList section */ 713 | 714 | /* Begin XCVersionGroup section */ 715 | 792057B021F4562200FD6888 /* Omnissa_Action.xcdatamodeld */ = { 716 | isa = XCVersionGroup; 717 | children = ( 718 | 792057B121F4562200FD6888 /* Omnissa_Action.xcdatamodel */, 719 | ); 720 | currentVersion = 792057B121F4562200FD6888 /* Omnissa_Action.xcdatamodel */; 721 | path = Omnissa_Action.xcdatamodeld; 722 | sourceTree = ""; 723 | versionGroupType = wrapper.xcdatamodel; 724 | }; 725 | /* End XCVersionGroup section */ 726 | }; 727 | rootObject = 7920579E21F4562200FD6888 /* Project object */; 728 | } 729 | -------------------------------------------------------------------------------- /Commands/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 121 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 149 | 158 | 167 | 176 | 185 | 194 | 203 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 298 | 307 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 430 | 431 | 432 | 433 | 434 | 435 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | --------------------------------------------------------------------------------