├── README.md ├── Workflow.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── Workflow.xcscheme └── Workflow ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets ├── AppIcon.appiconset │ ├── 5-120x120.png │ ├── 512.png │ ├── 6-180x180.png │ ├── 7-76x76.png │ ├── 8-152x152.png │ ├── 9-167x167.png │ └── Contents.json └── Contents.json ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── Info.plist ├── InfoPlist.strings ├── Workflow.entitlements └── main.m /README.md: -------------------------------------------------------------------------------- 1 | ### README 2 | 3 | ![Shortcuts](https://hccdata.s3.amazonaws.com/gh_shortcuts.jpg "Shortcuts") 4 | -------------------------------------------------------------------------------- /Workflow.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B070934D22A6C6C30066FC2E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B070934C22A6C6C30066FC2E /* AppDelegate.m */; }; 11 | B070935A22A6C6C30066FC2E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B070935822A6C6C30066FC2E /* Main.storyboard */; }; 12 | B070935C22A6C6C30066FC2E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B070935B22A6C6C30066FC2E /* Assets.xcassets */; }; 13 | B070935F22A6C6C30066FC2E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B070935D22A6C6C30066FC2E /* LaunchScreen.storyboard */; }; 14 | B070936222A6C6C30066FC2E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B070936122A6C6C30066FC2E /* main.m */; }; 15 | B070936B22A6C9440066FC2E /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B070936A22A6C9440066FC2E /* CloudKit.framework */; }; 16 | B0EE36BE22ADBB7300AAD1C3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B0EE36BD22ADBB7300AAD1C3 /* InfoPlist.strings */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | B070934822A6C6C30066FC2E /* Workflow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Workflow.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | B070934B22A6C6C30066FC2E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 22 | B070934C22A6C6C30066FC2E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 23 | B070935922A6C6C30066FC2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 24 | B070935B22A6C6C30066FC2E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | B070935E22A6C6C30066FC2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | B070936022A6C6C30066FC2E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | B070936122A6C6C30066FC2E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 28 | B070936822A6C6DC0066FC2E /* Workflow.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Workflow.entitlements; sourceTree = ""; }; 29 | B070936A22A6C9440066FC2E /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; }; 30 | B0EE36BB22AD984200AAD1C3 /* WorkflowUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WorkflowUI.framework; path = ../../../../System/iOSSupport/System/Library/PrivateFrameworks/WorkflowUI.framework; sourceTree = ""; }; 31 | B0EE36BD22ADBB7300AAD1C3 /* InfoPlist.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = InfoPlist.strings; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | B070934522A6C6C30066FC2E /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | B070936B22A6C9440066FC2E /* CloudKit.framework in Frameworks */, 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | B070933F22A6C6C30066FC2E = { 47 | isa = PBXGroup; 48 | children = ( 49 | B070934A22A6C6C30066FC2E /* Workflow */, 50 | B070934922A6C6C30066FC2E /* Products */, 51 | B070936922A6C9440066FC2E /* Frameworks */, 52 | ); 53 | sourceTree = ""; 54 | }; 55 | B070934922A6C6C30066FC2E /* Products */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | B070934822A6C6C30066FC2E /* Workflow.app */, 59 | ); 60 | name = Products; 61 | sourceTree = ""; 62 | }; 63 | B070934A22A6C6C30066FC2E /* Workflow */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | B070936822A6C6DC0066FC2E /* Workflow.entitlements */, 67 | B070934B22A6C6C30066FC2E /* AppDelegate.h */, 68 | B070934C22A6C6C30066FC2E /* AppDelegate.m */, 69 | B070935822A6C6C30066FC2E /* Main.storyboard */, 70 | B070935B22A6C6C30066FC2E /* Assets.xcassets */, 71 | B070935D22A6C6C30066FC2E /* LaunchScreen.storyboard */, 72 | B070936022A6C6C30066FC2E /* Info.plist */, 73 | B0EE36BD22ADBB7300AAD1C3 /* InfoPlist.strings */, 74 | B070936122A6C6C30066FC2E /* main.m */, 75 | ); 76 | path = Workflow; 77 | sourceTree = ""; 78 | }; 79 | B070936922A6C9440066FC2E /* Frameworks */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | B0EE36BB22AD984200AAD1C3 /* WorkflowUI.framework */, 83 | B070936A22A6C9440066FC2E /* CloudKit.framework */, 84 | ); 85 | name = Frameworks; 86 | sourceTree = ""; 87 | }; 88 | /* End PBXGroup section */ 89 | 90 | /* Begin PBXNativeTarget section */ 91 | B070934722A6C6C30066FC2E /* Workflow */ = { 92 | isa = PBXNativeTarget; 93 | buildConfigurationList = B070936522A6C6C30066FC2E /* Build configuration list for PBXNativeTarget "Workflow" */; 94 | buildPhases = ( 95 | B070934422A6C6C30066FC2E /* Sources */, 96 | B070934522A6C6C30066FC2E /* Frameworks */, 97 | B070934622A6C6C30066FC2E /* Resources */, 98 | ); 99 | buildRules = ( 100 | ); 101 | dependencies = ( 102 | ); 103 | name = Workflow; 104 | productName = Workflow; 105 | productReference = B070934822A6C6C30066FC2E /* Workflow.app */; 106 | productType = "com.apple.product-type.application"; 107 | }; 108 | /* End PBXNativeTarget section */ 109 | 110 | /* Begin PBXProject section */ 111 | B070934022A6C6C30066FC2E /* Project object */ = { 112 | isa = PBXProject; 113 | attributes = { 114 | LastUpgradeCheck = 1100; 115 | ORGANIZATIONNAME = "Steven Troughton-Smith"; 116 | TargetAttributes = { 117 | B070934722A6C6C30066FC2E = { 118 | CreatedOnToolsVersion = 11.0; 119 | }; 120 | }; 121 | }; 122 | buildConfigurationList = B070934322A6C6C30066FC2E /* Build configuration list for PBXProject "Workflow" */; 123 | compatibilityVersion = "Xcode 9.3"; 124 | developmentRegion = en; 125 | hasScannedForEncodings = 0; 126 | knownRegions = ( 127 | en, 128 | Base, 129 | ); 130 | mainGroup = B070933F22A6C6C30066FC2E; 131 | productRefGroup = B070934922A6C6C30066FC2E /* Products */; 132 | projectDirPath = ""; 133 | projectRoot = ""; 134 | targets = ( 135 | B070934722A6C6C30066FC2E /* Workflow */, 136 | ); 137 | }; 138 | /* End PBXProject section */ 139 | 140 | /* Begin PBXResourcesBuildPhase section */ 141 | B070934622A6C6C30066FC2E /* Resources */ = { 142 | isa = PBXResourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | B070935A22A6C6C30066FC2E /* Main.storyboard in Resources */, 146 | B0EE36BE22ADBB7300AAD1C3 /* InfoPlist.strings in Resources */, 147 | B070935C22A6C6C30066FC2E /* Assets.xcassets in Resources */, 148 | B070935F22A6C6C30066FC2E /* LaunchScreen.storyboard in Resources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXResourcesBuildPhase section */ 153 | 154 | /* Begin PBXSourcesBuildPhase section */ 155 | B070934422A6C6C30066FC2E /* Sources */ = { 156 | isa = PBXSourcesBuildPhase; 157 | buildActionMask = 2147483647; 158 | files = ( 159 | B070936222A6C6C30066FC2E /* main.m in Sources */, 160 | B070934D22A6C6C30066FC2E /* AppDelegate.m in Sources */, 161 | ); 162 | runOnlyForDeploymentPostprocessing = 0; 163 | }; 164 | /* End PBXSourcesBuildPhase section */ 165 | 166 | /* Begin PBXVariantGroup section */ 167 | B070935822A6C6C30066FC2E /* Main.storyboard */ = { 168 | isa = PBXVariantGroup; 169 | children = ( 170 | B070935922A6C6C30066FC2E /* Base */, 171 | ); 172 | name = Main.storyboard; 173 | sourceTree = ""; 174 | }; 175 | B070935D22A6C6C30066FC2E /* LaunchScreen.storyboard */ = { 176 | isa = PBXVariantGroup; 177 | children = ( 178 | B070935E22A6C6C30066FC2E /* Base */, 179 | ); 180 | name = LaunchScreen.storyboard; 181 | sourceTree = ""; 182 | }; 183 | /* End PBXVariantGroup section */ 184 | 185 | /* Begin XCBuildConfiguration section */ 186 | B070936322A6C6C30066FC2E /* Debug */ = { 187 | isa = XCBuildConfiguration; 188 | buildSettings = { 189 | ALWAYS_SEARCH_USER_PATHS = NO; 190 | CLANG_ANALYZER_NONNULL = YES; 191 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 192 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 193 | CLANG_CXX_LIBRARY = "libc++"; 194 | CLANG_ENABLE_MODULES = YES; 195 | CLANG_ENABLE_OBJC_ARC = YES; 196 | CLANG_ENABLE_OBJC_WEAK = YES; 197 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 198 | CLANG_WARN_BOOL_CONVERSION = YES; 199 | CLANG_WARN_COMMA = YES; 200 | CLANG_WARN_CONSTANT_CONVERSION = YES; 201 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 202 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 203 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 204 | CLANG_WARN_EMPTY_BODY = YES; 205 | CLANG_WARN_ENUM_CONVERSION = YES; 206 | CLANG_WARN_INFINITE_RECURSION = YES; 207 | CLANG_WARN_INT_CONVERSION = YES; 208 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 209 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 210 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 211 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 212 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 213 | CLANG_WARN_STRICT_PROTOTYPES = YES; 214 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 215 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 216 | CLANG_WARN_UNREACHABLE_CODE = YES; 217 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 218 | COPY_PHASE_STRIP = NO; 219 | DEBUG_INFORMATION_FORMAT = dwarf; 220 | ENABLE_STRICT_OBJC_MSGSEND = YES; 221 | ENABLE_TESTABILITY = YES; 222 | GCC_C_LANGUAGE_STANDARD = gnu11; 223 | GCC_DYNAMIC_NO_PIC = NO; 224 | GCC_NO_COMMON_BLOCKS = YES; 225 | GCC_OPTIMIZATION_LEVEL = 0; 226 | GCC_PREPROCESSOR_DEFINITIONS = ( 227 | "DEBUG=1", 228 | "$(inherited)", 229 | ); 230 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 231 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 232 | GCC_WARN_UNDECLARED_SELECTOR = YES; 233 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 234 | GCC_WARN_UNUSED_FUNCTION = YES; 235 | GCC_WARN_UNUSED_VARIABLE = YES; 236 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 237 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 238 | MTL_FAST_MATH = YES; 239 | ONLY_ACTIVE_ARCH = YES; 240 | SDKROOT = iphoneos; 241 | }; 242 | name = Debug; 243 | }; 244 | B070936422A6C6C30066FC2E /* Release */ = { 245 | isa = XCBuildConfiguration; 246 | buildSettings = { 247 | ALWAYS_SEARCH_USER_PATHS = NO; 248 | CLANG_ANALYZER_NONNULL = YES; 249 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 250 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 251 | CLANG_CXX_LIBRARY = "libc++"; 252 | CLANG_ENABLE_MODULES = YES; 253 | CLANG_ENABLE_OBJC_ARC = YES; 254 | CLANG_ENABLE_OBJC_WEAK = YES; 255 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 256 | CLANG_WARN_BOOL_CONVERSION = YES; 257 | CLANG_WARN_COMMA = YES; 258 | CLANG_WARN_CONSTANT_CONVERSION = YES; 259 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 260 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 261 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 262 | CLANG_WARN_EMPTY_BODY = YES; 263 | CLANG_WARN_ENUM_CONVERSION = YES; 264 | CLANG_WARN_INFINITE_RECURSION = YES; 265 | CLANG_WARN_INT_CONVERSION = YES; 266 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 267 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 268 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 269 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 270 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 271 | CLANG_WARN_STRICT_PROTOTYPES = YES; 272 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 273 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 274 | CLANG_WARN_UNREACHABLE_CODE = YES; 275 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 276 | COPY_PHASE_STRIP = NO; 277 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 278 | ENABLE_NS_ASSERTIONS = NO; 279 | ENABLE_STRICT_OBJC_MSGSEND = YES; 280 | GCC_C_LANGUAGE_STANDARD = gnu11; 281 | GCC_NO_COMMON_BLOCKS = YES; 282 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 283 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 284 | GCC_WARN_UNDECLARED_SELECTOR = YES; 285 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 286 | GCC_WARN_UNUSED_FUNCTION = YES; 287 | GCC_WARN_UNUSED_VARIABLE = YES; 288 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 289 | MTL_ENABLE_DEBUG_INFO = NO; 290 | MTL_FAST_MATH = YES; 291 | SDKROOT = iphoneos; 292 | VALIDATE_PRODUCT = YES; 293 | }; 294 | name = Release; 295 | }; 296 | B070936622A6C6C30066FC2E /* Debug */ = { 297 | isa = XCBuildConfiguration; 298 | buildSettings = { 299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 300 | CODE_SIGN_ENTITLEMENTS = Workflow/Workflow.entitlements; 301 | CODE_SIGN_IDENTITY = "Apple Development"; 302 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; 303 | CODE_SIGN_STYLE = Automatic; 304 | DERIVE_UIKITFORMAC_PRODUCT_BUNDLE_IDENTIFIER = YES; 305 | DEVELOPMENT_TEAM = 2ZDN69KUUV; 306 | INFOPLIST_FILE = Workflow/Info.plist; 307 | LD_RUNPATH_SEARCH_PATHS = ( 308 | "$(inherited)", 309 | "@executable_path/Frameworks", 310 | ); 311 | OTHER_LDFLAGS = ( 312 | "-Wl,-U,_WFInitializeProcessWithOptions", 313 | /System/iOSSupport/System/Library/PrivateFrameworks/WorkflowUI.framework/WorkflowUI, 314 | /System/iOSSupport/System/Library/PrivateFrameworks/WorkflowKit.framework/WorkflowKit, 315 | ); 316 | PRODUCT_BUNDLE_IDENTIFIER = com.highcaffeinecontent.Workflow; 317 | PRODUCT_NAME = "$(TARGET_NAME)"; 318 | PROVISIONING_PROFILE_SPECIFIER = ""; 319 | "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; 320 | SUPPORTS_UIKITFORMAC = YES; 321 | TARGETED_DEVICE_FAMILY = "1,2"; 322 | }; 323 | name = Debug; 324 | }; 325 | B070936722A6C6C30066FC2E /* Release */ = { 326 | isa = XCBuildConfiguration; 327 | buildSettings = { 328 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 329 | CODE_SIGN_ENTITLEMENTS = Workflow/Workflow.entitlements; 330 | CODE_SIGN_IDENTITY = "Apple Development"; 331 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; 332 | CODE_SIGN_STYLE = Automatic; 333 | DERIVE_UIKITFORMAC_PRODUCT_BUNDLE_IDENTIFIER = YES; 334 | DEVELOPMENT_TEAM = 2ZDN69KUUV; 335 | INFOPLIST_FILE = Workflow/Info.plist; 336 | LD_RUNPATH_SEARCH_PATHS = ( 337 | "$(inherited)", 338 | "@executable_path/Frameworks", 339 | ); 340 | OTHER_LDFLAGS = ( 341 | "-Wl,-U,_WFInitializeProcessWithOptions", 342 | /System/iOSSupport/System/Library/PrivateFrameworks/WorkflowUI.framework/WorkflowUI, 343 | /System/iOSSupport/System/Library/PrivateFrameworks/WorkflowKit.framework/WorkflowKit, 344 | ); 345 | PRODUCT_BUNDLE_IDENTIFIER = com.highcaffeinecontent.Workflow; 346 | PRODUCT_NAME = "$(TARGET_NAME)"; 347 | PROVISIONING_PROFILE_SPECIFIER = ""; 348 | "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = ""; 349 | SUPPORTS_UIKITFORMAC = YES; 350 | TARGETED_DEVICE_FAMILY = "1,2"; 351 | }; 352 | name = Release; 353 | }; 354 | /* End XCBuildConfiguration section */ 355 | 356 | /* Begin XCConfigurationList section */ 357 | B070934322A6C6C30066FC2E /* Build configuration list for PBXProject "Workflow" */ = { 358 | isa = XCConfigurationList; 359 | buildConfigurations = ( 360 | B070936322A6C6C30066FC2E /* Debug */, 361 | B070936422A6C6C30066FC2E /* Release */, 362 | ); 363 | defaultConfigurationIsVisible = 0; 364 | defaultConfigurationName = Release; 365 | }; 366 | B070936522A6C6C30066FC2E /* Build configuration list for PBXNativeTarget "Workflow" */ = { 367 | isa = XCConfigurationList; 368 | buildConfigurations = ( 369 | B070936622A6C6C30066FC2E /* Debug */, 370 | B070936722A6C6C30066FC2E /* Release */, 371 | ); 372 | defaultConfigurationIsVisible = 0; 373 | defaultConfigurationName = Release; 374 | }; 375 | /* End XCConfigurationList section */ 376 | }; 377 | rootObject = B070934022A6C6C30066FC2E /* Project object */; 378 | } 379 | -------------------------------------------------------------------------------- /Workflow.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Workflow.xcodeproj/xcshareddata/xcschemes/Workflow.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 58 | 59 | 60 | 61 | 67 | 69 | 75 | 76 | 77 | 78 | 80 | 81 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /Workflow/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Workflow 4 | // 5 | // Created by Steven Troughton-Smith on 04/06/2019. 6 | // Copyright © 2019 Steven Troughton-Smith. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Workflow/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Workflow 4 | // 5 | // Created by Steven Troughton-Smith on 04/06/2019. 6 | // Copyright © 2019 Steven Troughton-Smith. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import 11 | 12 | #import 13 | 14 | extern void WFInitializeProcessWithOptions(void); 15 | 16 | @interface NSObject (Mz) 17 | -(id)initWithWorkflow:(id)a database:(id)b; 18 | -(id)initWithCollection:(id)c; 19 | -(id)defaultDatabase; 20 | -(id)fileWithURL:(NSURL *)u options:(id)s; 21 | -(id)initWithFile:(id)f name:(NSString *)n performMigration:(BOOL)b sourceAppIdentifier:(NSString *)s; 22 | -(id)sharedProvider; 23 | -(id)recordWithDescriptor:(id)d error:(NSError **)e; 24 | -(id)initWithRecord:(id)r storageProvider:(id)s error:(NSError **)e; 25 | -(void)preloadActionRegistryIfNeeded; 26 | -(id)sortedVisibleWorkflows; 27 | -(id)createWorkflowWithError:(NSError **)e; 28 | +(id)workflowWithReference:(id)r storageProvider:(id)sp error:(NSError **)e; 29 | -(void)workflowWizardNameViewController:(id)v didFinishWithName:(NSString *)n; 30 | -(id)delegate; 31 | @end 32 | 33 | WEAK_IMPORT_ATTRIBUTE @interface WFWorkflowWizardNameViewController : UIViewController 34 | @end 35 | 36 | @implementation WFWorkflowWizardNameViewController (Mz) 37 | -(UITableViewCell *)nameCell { 38 | 39 | for (UIView *v in [self.view subviews]) 40 | { 41 | if ([v isKindOfClass:NSClassFromString(@"UITableViewCell")]) 42 | return (UITableViewCell *)v; 43 | } 44 | return nil; 45 | } 46 | @end 47 | 48 | @implementation AppDelegate 49 | 50 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 51 | // Override point for customization after application launch. 52 | 53 | dlopen("/System/Library/PrivateFrameworks/ActionKit.framework/ActionKit", 0x1); 54 | 55 | WFInitializeProcessWithOptions(); 56 | 57 | id db = [NSClassFromString(@"WFDatabase") defaultDatabase]; 58 | 59 | UIViewController *c = [[NSClassFromString(@"WFEditableLibraryViewController") alloc] initWithCollection:[db sortedVisibleWorkflows]]; 60 | [c loadViewIfNeeded]; 61 | [[c valueForKey:@"resultsController"] setValue:self forKey:@"cellDelegate"]; 62 | 63 | UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:c]; 64 | 65 | nc.navigationBar.prefersLargeTitles = YES; 66 | 67 | self.window = [UIWindow new]; 68 | self.window.rootViewController = nc; 69 | self.window.backgroundColor = [UIColor whiteColor]; 70 | self.window.rootViewController = nc; 71 | self.window.windowScene.titlebar.titleVisibility = UITitlebarTitleVisibilityHidden; 72 | [self.window makeKeyAndVisible]; 73 | 74 | c.navigationItem.rightBarButtonItem.action = @selector(createWF:); 75 | c.navigationItem.rightBarButtonItem.target= self; 76 | 77 | [NSClassFromString(@"WFHomeComposeViewController") preloadActionRegistryIfNeeded]; 78 | 79 | return YES; 80 | } 81 | 82 | - (void)workflowCellDidRequestComposeUI:(id)cell forWorkflowReference:(id)wfr { 83 | id db = [NSClassFromString(@"WFDatabase") defaultDatabase]; 84 | id wf = [NSClassFromString(@"WFWorkflow") workflowWithReference:wfr storageProvider:db error:nil]; 85 | [self showEditorForWF:wf]; 86 | } 87 | 88 | -(void)importWF 89 | { 90 | id fileRep = [NSClassFromString(@"WFFileRepresentation") fileWithURL:[NSURL fileURLWithPath:@"/path/to/a/Shortcut.shortcut"] options:nil]; 91 | 92 | id desc = [[NSClassFromString(@"WFWorkflowFileDescriptor") alloc] initWithFile:fileRep name:@"My Shortcut" performMigration:YES sourceAppIdentifier:@"is.workflow.my.app"]; 93 | id provider = [NSClassFromString(@"WFFileStorageProvider") sharedProvider]; 94 | 95 | id record = [provider recordWithDescriptor:desc error:nil]; 96 | if (record) { 97 | id wflow = [[NSClassFromString(@"WFWorkflow") alloc] initWithRecord:record storageProvider:provider error:nil]; 98 | [self showEditorForWF:wflow]; 99 | } 100 | } 101 | 102 | -(void)showEditorForWF:(id)wf 103 | { 104 | id db = [NSClassFromString(@"WFDatabase") defaultDatabase]; 105 | 106 | UIViewController *edit = [[NSClassFromString(@"WFComposeViewController") alloc] initWithWorkflow:wf database:db]; 107 | 108 | [self.window.rootViewController presentViewController:edit animated:YES completion:nil]; 109 | } 110 | 111 | -(void)createWF:(id)sender 112 | { 113 | id db = [NSClassFromString(@"WFDatabase") defaultDatabase]; 114 | 115 | id wfr = [db createWorkflowWithError:nil]; 116 | id wf = [NSClassFromString(@"WFWorkflow") workflowWithReference:wfr storageProvider:db error:nil]; 117 | 118 | [self showEditorForWF:wf]; 119 | } 120 | 121 | #pragma mark - 122 | 123 | - (void)applicationWillResignActive:(UIApplication *)application { 124 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 125 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 126 | } 127 | 128 | 129 | - (void)applicationDidEnterBackground:(UIApplication *)application { 130 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 131 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 132 | } 133 | 134 | 135 | - (void)applicationWillEnterForeground:(UIApplication *)application { 136 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 137 | } 138 | 139 | 140 | - (void)applicationDidBecomeActive:(UIApplication *)application { 141 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 142 | } 143 | 144 | 145 | - (void)applicationWillTerminate:(UIApplication *)application { 146 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 147 | } 148 | 149 | 150 | @end 151 | -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/5-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/5-120x120.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/512.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/6-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/6-180x180.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/7-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/7-76x76.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/8-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/8-152x152.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/9-167x167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/shortcuts-iosmac/baad6c69b90cfeed62c77ab733b8a69b8bf583fc/Workflow/Assets.xcassets/AppIcon.appiconset/9-167x167.png -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "5-120x120.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "6-180x180.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "idiom" : "ipad", 47 | "size" : "20x20", 48 | "scale" : "1x" 49 | }, 50 | { 51 | "idiom" : "ipad", 52 | "size" : "20x20", 53 | "scale" : "2x" 54 | }, 55 | { 56 | "idiom" : "ipad", 57 | "size" : "29x29", 58 | "scale" : "1x" 59 | }, 60 | { 61 | "idiom" : "ipad", 62 | "size" : "29x29", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "idiom" : "ipad", 67 | "size" : "40x40", 68 | "scale" : "1x" 69 | }, 70 | { 71 | "idiom" : "ipad", 72 | "size" : "40x40", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "7-76x76.png", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "size" : "76x76", 83 | "idiom" : "ipad", 84 | "filename" : "8-152x152.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "83.5x83.5", 89 | "idiom" : "ipad", 90 | "filename" : "9-167x167.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "1024x1024", 95 | "idiom" : "ios-marketing", 96 | "filename" : "512.png", 97 | "scale" : "1x" 98 | } 99 | ], 100 | "info" : { 101 | "version" : 1, 102 | "author" : "xcode" 103 | } 104 | } -------------------------------------------------------------------------------- /Workflow/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Workflow/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 | -------------------------------------------------------------------------------- /Workflow/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 | -------------------------------------------------------------------------------- /Workflow/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 | Shortcuts 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | NSPhotoLibraryUsageDescription 22 | 23 | NSContactsUsageDescription 24 | 25 | NSLocationUsageDescription 26 | 27 | NSLocationAlwaysAndWhenInUseUsageDescription 28 | 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | UIMainStoryboardFile 34 | Main 35 | UIRequiredDeviceCapabilities 36 | 37 | armv7 38 | 39 | UIStatusBarHidden 40 | 41 | UISupportedInterfaceOrientations 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationLandscapeLeft 45 | UIInterfaceOrientationLandscapeRight 46 | 47 | UISupportedInterfaceOrientations~ipad 48 | 49 | UIInterfaceOrientationPortrait 50 | UIInterfaceOrientationPortraitUpsideDown 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Workflow/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | Workflow 4 | 5 | Created by Steven Troughton-Smith on 09/06/2019. 6 | Copyright © 2019 Steven Troughton-Smith. All rights reserved. 7 | */ 8 | 9 | CFBundleName = "Shortcuts"; 10 | -------------------------------------------------------------------------------- /Workflow/Workflow.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | com.apple.developer.icloud-container-identifiers 8 | 9 | com.apple.developer.icloud-services 10 | 11 | com.apple.security.app-sandbox 12 | 13 | com.apple.security.network.client 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Workflow/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Workflow 4 | // 5 | // Created by Steven Troughton-Smith on 04/06/2019. 6 | // Copyright © 2019 Steven Troughton-Smith. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | NSString * appDelegateClassName; 14 | @autoreleasepool { 15 | // Setup code that might create autoreleased objects goes here. 16 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 17 | } 18 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 19 | } 20 | --------------------------------------------------------------------------------