commit dfa4780bd6fd9e3fc4d3a3c093443783aac5b26f Author: William Brawner Date: Thu Oct 22 19:24:00 2020 -0700 Initial Commit diff --git a/IntervalTimer.xcodeproj/project.pbxproj b/IntervalTimer.xcodeproj/project.pbxproj new file mode 100644 index 0000000..dea9d68 --- /dev/null +++ b/IntervalTimer.xcodeproj/project.pbxproj @@ -0,0 +1,616 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 80F8B6F5254276380024077E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B6F4254276380024077E /* AppDelegate.swift */; }; + 80F8B6F7254276380024077E /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B6F6254276380024077E /* SceneDelegate.swift */; }; + 80F8B6FA254276380024077E /* IntervalTimer.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B6F8254276380024077E /* IntervalTimer.xcdatamodeld */; }; + 80F8B6FC254276380024077E /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B6FB254276380024077E /* ContentView.swift */; }; + 80F8B6FE2542763A0024077E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 80F8B6FD2542763A0024077E /* Assets.xcassets */; }; + 80F8B7012542763A0024077E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 80F8B7002542763A0024077E /* Preview Assets.xcassets */; }; + 80F8B7042542763A0024077E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 80F8B7022542763A0024077E /* LaunchScreen.storyboard */; }; + 80F8B70F2542763B0024077E /* IntervalTimerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B70E2542763B0024077E /* IntervalTimerTests.swift */; }; + 80F8B71A2542763B0024077E /* IntervalTimerUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F8B7192542763B0024077E /* IntervalTimerUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 80F8B70B2542763B0024077E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 80F8B6E9254276380024077E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 80F8B6F0254276380024077E; + remoteInfo = IntervalTimer; + }; + 80F8B7162542763B0024077E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 80F8B6E9254276380024077E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 80F8B6F0254276380024077E; + remoteInfo = IntervalTimer; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 80F8B6F1254276380024077E /* IntervalTimer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IntervalTimer.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 80F8B6F4254276380024077E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 80F8B6F6254276380024077E /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 80F8B6F9254276380024077E /* IntervalTimer.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = IntervalTimer.xcdatamodel; sourceTree = ""; }; + 80F8B6FB254276380024077E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 80F8B6FD2542763A0024077E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 80F8B7002542763A0024077E /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 80F8B7032542763A0024077E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 80F8B7052542763B0024077E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 80F8B70A2542763B0024077E /* IntervalTimerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IntervalTimerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 80F8B70E2542763B0024077E /* IntervalTimerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntervalTimerTests.swift; sourceTree = ""; }; + 80F8B7102542763B0024077E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 80F8B7152542763B0024077E /* IntervalTimerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IntervalTimerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 80F8B7192542763B0024077E /* IntervalTimerUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntervalTimerUITests.swift; sourceTree = ""; }; + 80F8B71B2542763B0024077E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 80F8B6EE254276380024077E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7072542763B0024077E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7122542763B0024077E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 80F8B6E8254276380024077E = { + isa = PBXGroup; + children = ( + 80F8B6F3254276380024077E /* IntervalTimer */, + 80F8B70D2542763B0024077E /* IntervalTimerTests */, + 80F8B7182542763B0024077E /* IntervalTimerUITests */, + 80F8B6F2254276380024077E /* Products */, + ); + sourceTree = ""; + }; + 80F8B6F2254276380024077E /* Products */ = { + isa = PBXGroup; + children = ( + 80F8B6F1254276380024077E /* IntervalTimer.app */, + 80F8B70A2542763B0024077E /* IntervalTimerTests.xctest */, + 80F8B7152542763B0024077E /* IntervalTimerUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 80F8B6F3254276380024077E /* IntervalTimer */ = { + isa = PBXGroup; + children = ( + 80F8B6F4254276380024077E /* AppDelegate.swift */, + 80F8B6F6254276380024077E /* SceneDelegate.swift */, + 80F8B6FB254276380024077E /* ContentView.swift */, + 80F8B6FD2542763A0024077E /* Assets.xcassets */, + 80F8B7022542763A0024077E /* LaunchScreen.storyboard */, + 80F8B7052542763B0024077E /* Info.plist */, + 80F8B6F8254276380024077E /* IntervalTimer.xcdatamodeld */, + 80F8B6FF2542763A0024077E /* Preview Content */, + ); + path = IntervalTimer; + sourceTree = ""; + }; + 80F8B6FF2542763A0024077E /* Preview Content */ = { + isa = PBXGroup; + children = ( + 80F8B7002542763A0024077E /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 80F8B70D2542763B0024077E /* IntervalTimerTests */ = { + isa = PBXGroup; + children = ( + 80F8B70E2542763B0024077E /* IntervalTimerTests.swift */, + 80F8B7102542763B0024077E /* Info.plist */, + ); + path = IntervalTimerTests; + sourceTree = ""; + }; + 80F8B7182542763B0024077E /* IntervalTimerUITests */ = { + isa = PBXGroup; + children = ( + 80F8B7192542763B0024077E /* IntervalTimerUITests.swift */, + 80F8B71B2542763B0024077E /* Info.plist */, + ); + path = IntervalTimerUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 80F8B6F0254276380024077E /* IntervalTimer */ = { + isa = PBXNativeTarget; + buildConfigurationList = 80F8B71E2542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimer" */; + buildPhases = ( + 80F8B6ED254276380024077E /* Sources */, + 80F8B6EE254276380024077E /* Frameworks */, + 80F8B6EF254276380024077E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = IntervalTimer; + productName = IntervalTimer; + productReference = 80F8B6F1254276380024077E /* IntervalTimer.app */; + productType = "com.apple.product-type.application"; + }; + 80F8B7092542763B0024077E /* IntervalTimerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 80F8B7212542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimerTests" */; + buildPhases = ( + 80F8B7062542763B0024077E /* Sources */, + 80F8B7072542763B0024077E /* Frameworks */, + 80F8B7082542763B0024077E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 80F8B70C2542763B0024077E /* PBXTargetDependency */, + ); + name = IntervalTimerTests; + productName = IntervalTimerTests; + productReference = 80F8B70A2542763B0024077E /* IntervalTimerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 80F8B7142542763B0024077E /* IntervalTimerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 80F8B7242542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimerUITests" */; + buildPhases = ( + 80F8B7112542763B0024077E /* Sources */, + 80F8B7122542763B0024077E /* Frameworks */, + 80F8B7132542763B0024077E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 80F8B7172542763B0024077E /* PBXTargetDependency */, + ); + name = IntervalTimerUITests; + productName = IntervalTimerUITests; + productReference = 80F8B7152542763B0024077E /* IntervalTimerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 80F8B6E9254276380024077E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = "William Brawner"; + TargetAttributes = { + 80F8B6F0254276380024077E = { + CreatedOnToolsVersion = 11.5; + }; + 80F8B7092542763B0024077E = { + CreatedOnToolsVersion = 11.5; + TestTargetID = 80F8B6F0254276380024077E; + }; + 80F8B7142542763B0024077E = { + CreatedOnToolsVersion = 11.5; + TestTargetID = 80F8B6F0254276380024077E; + }; + }; + }; + buildConfigurationList = 80F8B6EC254276380024077E /* Build configuration list for PBXProject "IntervalTimer" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 80F8B6E8254276380024077E; + productRefGroup = 80F8B6F2254276380024077E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 80F8B6F0254276380024077E /* IntervalTimer */, + 80F8B7092542763B0024077E /* IntervalTimerTests */, + 80F8B7142542763B0024077E /* IntervalTimerUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 80F8B6EF254276380024077E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80F8B7042542763A0024077E /* LaunchScreen.storyboard in Resources */, + 80F8B7012542763A0024077E /* Preview Assets.xcassets in Resources */, + 80F8B6FE2542763A0024077E /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7082542763B0024077E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7132542763B0024077E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 80F8B6ED254276380024077E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80F8B6FA254276380024077E /* IntervalTimer.xcdatamodeld in Sources */, + 80F8B6F5254276380024077E /* AppDelegate.swift in Sources */, + 80F8B6FC254276380024077E /* ContentView.swift in Sources */, + 80F8B6F7254276380024077E /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7062542763B0024077E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80F8B70F2542763B0024077E /* IntervalTimerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 80F8B7112542763B0024077E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 80F8B71A2542763B0024077E /* IntervalTimerUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 80F8B70C2542763B0024077E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 80F8B6F0254276380024077E /* IntervalTimer */; + targetProxy = 80F8B70B2542763B0024077E /* PBXContainerItemProxy */; + }; + 80F8B7172542763B0024077E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 80F8B6F0254276380024077E /* IntervalTimer */; + targetProxy = 80F8B7162542763B0024077E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 80F8B7022542763A0024077E /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 80F8B7032542763A0024077E /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 80F8B71C2542763B0024077E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 80F8B71D2542763B0024077E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 80F8B71F2542763B0024077E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"IntervalTimer/Preview Content\""; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = IntervalTimer/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimer; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 80F8B7202542763B0024077E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"IntervalTimer/Preview Content\""; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = IntervalTimer/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimer; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 80F8B7222542763B0024077E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + INFOPLIST_FILE = IntervalTimerTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IntervalTimer.app/IntervalTimer"; + }; + name = Debug; + }; + 80F8B7232542763B0024077E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + INFOPLIST_FILE = IntervalTimerTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IntervalTimer.app/IntervalTimer"; + }; + name = Release; + }; + 80F8B7252542763B0024077E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + INFOPLIST_FILE = IntervalTimerUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = IntervalTimer; + }; + name = Debug; + }; + 80F8B7262542763B0024077E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9Z6DE6KNJ9; + INFOPLIST_FILE = IntervalTimerUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.IntervalTimerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = IntervalTimer; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 80F8B6EC254276380024077E /* Build configuration list for PBXProject "IntervalTimer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80F8B71C2542763B0024077E /* Debug */, + 80F8B71D2542763B0024077E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 80F8B71E2542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80F8B71F2542763B0024077E /* Debug */, + 80F8B7202542763B0024077E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 80F8B7212542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80F8B7222542763B0024077E /* Debug */, + 80F8B7232542763B0024077E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 80F8B7242542763B0024077E /* Build configuration list for PBXNativeTarget "IntervalTimerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 80F8B7252542763B0024077E /* Debug */, + 80F8B7262542763B0024077E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + 80F8B6F8254276380024077E /* IntervalTimer.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + 80F8B6F9254276380024077E /* IntervalTimer.xcdatamodel */, + ); + currentVersion = 80F8B6F9254276380024077E /* IntervalTimer.xcdatamodel */; + path = IntervalTimer.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = 80F8B6E9254276380024077E /* Project object */; +} diff --git a/IntervalTimer.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/IntervalTimer.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1b2723a --- /dev/null +++ b/IntervalTimer.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/IntervalTimer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/IntervalTimer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/IntervalTimer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/IntervalTimer.xcodeproj/xcuserdata/wbrawner.xcuserdatad/xcschemes/xcschememanagement.plist b/IntervalTimer.xcodeproj/xcuserdata/wbrawner.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..ac79b5d --- /dev/null +++ b/IntervalTimer.xcodeproj/xcuserdata/wbrawner.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + IntervalTimer.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/IntervalTimer/AppDelegate.swift b/IntervalTimer/AppDelegate.swift new file mode 100644 index 0000000..9dfc789 --- /dev/null +++ b/IntervalTimer/AppDelegate.swift @@ -0,0 +1,82 @@ +// +// AppDelegate.swift +// IntervalTimer +// +// Created by William Brawner on 10/22/20. +// Copyright © 2020 William Brawner. All rights reserved. +// + +import UIKit +import CoreData + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + // MARK: - Core Data stack + + lazy var persistentContainer: NSPersistentCloudKitContainer = { + /* + The persistent container for the application. This implementation + creates and returns a container, having loaded the store for the + application to it. This property is optional since there are legitimate + error conditions that could cause the creation of the store to fail. + */ + let container = NSPersistentCloudKitContainer(name: "IntervalTimer") + container.loadPersistentStores(completionHandler: { (storeDescription, error) in + if let error = error as NSError? { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + + /* + Typical reasons for an error here include: + * The parent directory does not exist, cannot be created, or disallows writing. + * The persistent store is not accessible, due to permissions or data protection when the device is locked. + * The device is out of space. + * The store could not be migrated to the current model version. + Check the error message to determine what the actual problem was. + */ + fatalError("Unresolved error \(error), \(error.userInfo)") + } + }) + return container + }() + + // MARK: - Core Data Saving support + + func saveContext () { + let context = persistentContainer.viewContext + if context.hasChanges { + do { + try context.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + let nserror = error as NSError + fatalError("Unresolved error \(nserror), \(nserror.userInfo)") + } + } + } + +} + diff --git a/IntervalTimer/Assets.xcassets/AppIcon.appiconset/Contents.json b/IntervalTimer/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/IntervalTimer/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/IntervalTimer/Assets.xcassets/Contents.json b/IntervalTimer/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/IntervalTimer/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/IntervalTimer/Base.lproj/LaunchScreen.storyboard b/IntervalTimer/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/IntervalTimer/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/IntervalTimer/ContentView.swift b/IntervalTimer/ContentView.swift new file mode 100644 index 0000000..2cb06ef --- /dev/null +++ b/IntervalTimer/ContentView.swift @@ -0,0 +1,21 @@ +// +// ContentView.swift +// IntervalTimer +// +// Created by William Brawner on 10/22/20. +// Copyright © 2020 William Brawner. All rights reserved. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + Text("Hello, World!") + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/IntervalTimer/Info.plist b/IntervalTimer/Info.plist new file mode 100644 index 0000000..9742bf0 --- /dev/null +++ b/IntervalTimer/Info.plist @@ -0,0 +1,60 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/IntervalTimer/IntervalTimer.xcdatamodeld/.xccurrentversion b/IntervalTimer/IntervalTimer.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..03eafc0 --- /dev/null +++ b/IntervalTimer/IntervalTimer.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + IntervalTimer.xcdatamodel + + diff --git a/IntervalTimer/IntervalTimer.xcdatamodeld/IntervalTimer.xcdatamodel/contents b/IntervalTimer/IntervalTimer.xcdatamodeld/IntervalTimer.xcdatamodel/contents new file mode 100644 index 0000000..23c0b10 --- /dev/null +++ b/IntervalTimer/IntervalTimer.xcdatamodeld/IntervalTimer.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/IntervalTimer/Preview Content/Preview Assets.xcassets/Contents.json b/IntervalTimer/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/IntervalTimer/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/IntervalTimer/SceneDelegate.swift b/IntervalTimer/SceneDelegate.swift new file mode 100644 index 0000000..2ccf3d4 --- /dev/null +++ b/IntervalTimer/SceneDelegate.swift @@ -0,0 +1,71 @@ +// +// SceneDelegate.swift +// IntervalTimer +// +// Created by William Brawner on 10/22/20. +// Copyright © 2020 William Brawner. All rights reserved. +// + +import UIKit +import SwiftUI + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + + // Get the managed object context from the shared persistent container. + let context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext + + // Create the SwiftUI view and set the context as the value for the managedObjectContext environment keyPath. + // Add `@Environment(\.managedObjectContext)` in the views that will need the context. + let contentView = ContentView().environment(\.managedObjectContext, context) + + // Use a UIHostingController as window root view controller. + if let windowScene = scene as? UIWindowScene { + let window = UIWindow(windowScene: windowScene) + window.rootViewController = UIHostingController(rootView: contentView) + self.window = window + window.makeKeyAndVisible() + } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + + // Save changes in the application's managed object context when the application transitions to the background. + (UIApplication.shared.delegate as? AppDelegate)?.saveContext() + } + + +} + diff --git a/IntervalTimerTests/Info.plist b/IntervalTimerTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/IntervalTimerTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/IntervalTimerTests/IntervalTimerTests.swift b/IntervalTimerTests/IntervalTimerTests.swift new file mode 100644 index 0000000..5f544cc --- /dev/null +++ b/IntervalTimerTests/IntervalTimerTests.swift @@ -0,0 +1,34 @@ +// +// IntervalTimerTests.swift +// IntervalTimerTests +// +// Created by William Brawner on 10/22/20. +// Copyright © 2020 William Brawner. All rights reserved. +// + +import XCTest +@testable import IntervalTimer + +class IntervalTimerTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/IntervalTimerUITests/Info.plist b/IntervalTimerUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/IntervalTimerUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/IntervalTimerUITests/IntervalTimerUITests.swift b/IntervalTimerUITests/IntervalTimerUITests.swift new file mode 100644 index 0000000..3260845 --- /dev/null +++ b/IntervalTimerUITests/IntervalTimerUITests.swift @@ -0,0 +1,43 @@ +// +// IntervalTimerUITests.swift +// IntervalTimerUITests +// +// Created by William Brawner on 10/22/20. +// Copyright © 2020 William Brawner. All rights reserved. +// + +import XCTest + +class IntervalTimerUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // 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. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { + XCUIApplication().launch() + } + } + } +}