From 97bfa5ee8a4b22efb950700b2878152f4a3af66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88ller?= Date: Sun, 20 Dec 2020 00:36:41 +0100 Subject: [PATCH] Initial Commit --- DHBW-Service.xcodeproj/project.pbxproj | 606 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcschemes/xcschememanagement.plist | 14 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 +++ DHBW-Service/Assets.xcassets/Contents.json | 6 + DHBW-Service/ContentView.swift | 80 +++ .../.xccurrentversion | 8 + .../DHBW_Service.xcdatamodel/contents | 9 + DHBW-Service/DHBW_ServiceApp.swift | 20 + DHBW-Service/Info.plist | 50 ++ DHBW-Service/Persistence.swift | 55 ++ .../Preview Assets.xcassets/Contents.json | 6 + DHBW-ServiceTests/DHBW_ServiceTests.swift | 33 + DHBW-ServiceTests/Info.plist | 22 + DHBW-ServiceUITests/DHBW_ServiceUITests.swift | 42 ++ DHBW-ServiceUITests/Info.plist | 22 + 18 files changed, 1097 insertions(+) create mode 100644 DHBW-Service.xcodeproj/project.pbxproj create mode 100644 DHBW-Service.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 DHBW-Service.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 DHBW-Service.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 DHBW-Service/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 DHBW-Service/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 DHBW-Service/Assets.xcassets/Contents.json create mode 100644 DHBW-Service/ContentView.swift create mode 100644 DHBW-Service/DHBW_Service.xcdatamodeld/.xccurrentversion create mode 100644 DHBW-Service/DHBW_Service.xcdatamodeld/DHBW_Service.xcdatamodel/contents create mode 100644 DHBW-Service/DHBW_ServiceApp.swift create mode 100644 DHBW-Service/Info.plist create mode 100644 DHBW-Service/Persistence.swift create mode 100644 DHBW-Service/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 DHBW-ServiceTests/DHBW_ServiceTests.swift create mode 100644 DHBW-ServiceTests/Info.plist create mode 100644 DHBW-ServiceUITests/DHBW_ServiceUITests.swift create mode 100644 DHBW-ServiceUITests/Info.plist diff --git a/DHBW-Service.xcodeproj/project.pbxproj b/DHBW-Service.xcodeproj/project.pbxproj new file mode 100644 index 0000000..60a2e1f --- /dev/null +++ b/DHBW-Service.xcodeproj/project.pbxproj @@ -0,0 +1,606 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + CD9FAB81258EC60200D6D0C5 /* DHBW_ServiceApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD9FAB80258EC60200D6D0C5 /* DHBW_ServiceApp.swift */; }; + CD9FAB83258EC60200D6D0C5 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD9FAB82258EC60200D6D0C5 /* ContentView.swift */; }; + CD9FAB85258EC60600D6D0C5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CD9FAB84258EC60600D6D0C5 /* Assets.xcassets */; }; + CD9FAB88258EC60600D6D0C5 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CD9FAB87258EC60600D6D0C5 /* Preview Assets.xcassets */; }; + CD9FAB8A258EC60600D6D0C5 /* Persistence.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD9FAB89258EC60600D6D0C5 /* Persistence.swift */; }; + CD9FAB8D258EC60600D6D0C5 /* DHBW_Service.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = CD9FAB8B258EC60600D6D0C5 /* DHBW_Service.xcdatamodeld */; }; + CD9FAB98258EC60600D6D0C5 /* DHBW_ServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD9FAB97258EC60600D6D0C5 /* DHBW_ServiceTests.swift */; }; + CD9FABA3258EC60600D6D0C5 /* DHBW_ServiceUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD9FABA2258EC60600D6D0C5 /* DHBW_ServiceUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CD9FAB94258EC60600D6D0C5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD9FAB75258EC60100D6D0C5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD9FAB7C258EC60200D6D0C5; + remoteInfo = "DHBW-Service"; + }; + CD9FAB9F258EC60600D6D0C5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD9FAB75258EC60100D6D0C5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD9FAB7C258EC60200D6D0C5; + remoteInfo = "DHBW-Service"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CD9FAB7D258EC60200D6D0C5 /* DHBW-Service.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DHBW-Service.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + CD9FAB80258EC60200D6D0C5 /* DHBW_ServiceApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DHBW_ServiceApp.swift; sourceTree = ""; }; + CD9FAB82258EC60200D6D0C5 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + CD9FAB84258EC60600D6D0C5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CD9FAB87258EC60600D6D0C5 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + CD9FAB89258EC60600D6D0C5 /* Persistence.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Persistence.swift; sourceTree = ""; }; + CD9FAB8C258EC60600D6D0C5 /* DHBW_Service.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = DHBW_Service.xcdatamodel; sourceTree = ""; }; + CD9FAB8E258EC60600D6D0C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CD9FAB93258EC60600D6D0C5 /* DHBW-ServiceTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DHBW-ServiceTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + CD9FAB97258EC60600D6D0C5 /* DHBW_ServiceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DHBW_ServiceTests.swift; sourceTree = ""; }; + CD9FAB99258EC60600D6D0C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CD9FAB9E258EC60600D6D0C5 /* DHBW-ServiceUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DHBW-ServiceUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + CD9FABA2258EC60600D6D0C5 /* DHBW_ServiceUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DHBW_ServiceUITests.swift; sourceTree = ""; }; + CD9FABA4258EC60600D6D0C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CD9FAB7A258EC60200D6D0C5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB90258EC60600D6D0C5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB9B258EC60600D6D0C5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CD9FAB74258EC60100D6D0C5 = { + isa = PBXGroup; + children = ( + CD9FAB7F258EC60200D6D0C5 /* DHBW-Service */, + CD9FAB96258EC60600D6D0C5 /* DHBW-ServiceTests */, + CD9FABA1258EC60600D6D0C5 /* DHBW-ServiceUITests */, + CD9FAB7E258EC60200D6D0C5 /* Products */, + ); + sourceTree = ""; + }; + CD9FAB7E258EC60200D6D0C5 /* Products */ = { + isa = PBXGroup; + children = ( + CD9FAB7D258EC60200D6D0C5 /* DHBW-Service.app */, + CD9FAB93258EC60600D6D0C5 /* DHBW-ServiceTests.xctest */, + CD9FAB9E258EC60600D6D0C5 /* DHBW-ServiceUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + CD9FAB7F258EC60200D6D0C5 /* DHBW-Service */ = { + isa = PBXGroup; + children = ( + CD9FAB80258EC60200D6D0C5 /* DHBW_ServiceApp.swift */, + CD9FAB82258EC60200D6D0C5 /* ContentView.swift */, + CD9FAB84258EC60600D6D0C5 /* Assets.xcassets */, + CD9FAB89258EC60600D6D0C5 /* Persistence.swift */, + CD9FAB8E258EC60600D6D0C5 /* Info.plist */, + CD9FAB8B258EC60600D6D0C5 /* DHBW_Service.xcdatamodeld */, + CD9FAB86258EC60600D6D0C5 /* Preview Content */, + ); + path = "DHBW-Service"; + sourceTree = ""; + }; + CD9FAB86258EC60600D6D0C5 /* Preview Content */ = { + isa = PBXGroup; + children = ( + CD9FAB87258EC60600D6D0C5 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + CD9FAB96258EC60600D6D0C5 /* DHBW-ServiceTests */ = { + isa = PBXGroup; + children = ( + CD9FAB97258EC60600D6D0C5 /* DHBW_ServiceTests.swift */, + CD9FAB99258EC60600D6D0C5 /* Info.plist */, + ); + path = "DHBW-ServiceTests"; + sourceTree = ""; + }; + CD9FABA1258EC60600D6D0C5 /* DHBW-ServiceUITests */ = { + isa = PBXGroup; + children = ( + CD9FABA2258EC60600D6D0C5 /* DHBW_ServiceUITests.swift */, + CD9FABA4258EC60600D6D0C5 /* Info.plist */, + ); + path = "DHBW-ServiceUITests"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CD9FAB7C258EC60200D6D0C5 /* DHBW-Service */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD9FABA7258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-Service" */; + buildPhases = ( + CD9FAB79258EC60200D6D0C5 /* Sources */, + CD9FAB7A258EC60200D6D0C5 /* Frameworks */, + CD9FAB7B258EC60200D6D0C5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "DHBW-Service"; + productName = "DHBW-Service"; + productReference = CD9FAB7D258EC60200D6D0C5 /* DHBW-Service.app */; + productType = "com.apple.product-type.application"; + }; + CD9FAB92258EC60600D6D0C5 /* DHBW-ServiceTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD9FABAA258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-ServiceTests" */; + buildPhases = ( + CD9FAB8F258EC60600D6D0C5 /* Sources */, + CD9FAB90258EC60600D6D0C5 /* Frameworks */, + CD9FAB91258EC60600D6D0C5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD9FAB95258EC60600D6D0C5 /* PBXTargetDependency */, + ); + name = "DHBW-ServiceTests"; + productName = "DHBW-ServiceTests"; + productReference = CD9FAB93258EC60600D6D0C5 /* DHBW-ServiceTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + CD9FAB9D258EC60600D6D0C5 /* DHBW-ServiceUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD9FABAD258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-ServiceUITests" */; + buildPhases = ( + CD9FAB9A258EC60600D6D0C5 /* Sources */, + CD9FAB9B258EC60600D6D0C5 /* Frameworks */, + CD9FAB9C258EC60600D6D0C5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD9FABA0258EC60600D6D0C5 /* PBXTargetDependency */, + ); + name = "DHBW-ServiceUITests"; + productName = "DHBW-ServiceUITests"; + productReference = CD9FAB9E258EC60600D6D0C5 /* DHBW-ServiceUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CD9FAB75258EC60100D6D0C5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1230; + LastUpgradeCheck = 1230; + TargetAttributes = { + CD9FAB7C258EC60200D6D0C5 = { + CreatedOnToolsVersion = 12.3; + }; + CD9FAB92258EC60600D6D0C5 = { + CreatedOnToolsVersion = 12.3; + TestTargetID = CD9FAB7C258EC60200D6D0C5; + }; + CD9FAB9D258EC60600D6D0C5 = { + CreatedOnToolsVersion = 12.3; + TestTargetID = CD9FAB7C258EC60200D6D0C5; + }; + }; + }; + buildConfigurationList = CD9FAB78258EC60100D6D0C5 /* Build configuration list for PBXProject "DHBW-Service" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CD9FAB74258EC60100D6D0C5; + productRefGroup = CD9FAB7E258EC60200D6D0C5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CD9FAB7C258EC60200D6D0C5 /* DHBW-Service */, + CD9FAB92258EC60600D6D0C5 /* DHBW-ServiceTests */, + CD9FAB9D258EC60600D6D0C5 /* DHBW-ServiceUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CD9FAB7B258EC60200D6D0C5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD9FAB88258EC60600D6D0C5 /* Preview Assets.xcassets in Resources */, + CD9FAB85258EC60600D6D0C5 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB91258EC60600D6D0C5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB9C258EC60600D6D0C5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CD9FAB79258EC60200D6D0C5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD9FAB8A258EC60600D6D0C5 /* Persistence.swift in Sources */, + CD9FAB83258EC60200D6D0C5 /* ContentView.swift in Sources */, + CD9FAB8D258EC60600D6D0C5 /* DHBW_Service.xcdatamodeld in Sources */, + CD9FAB81258EC60200D6D0C5 /* DHBW_ServiceApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB8F258EC60600D6D0C5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD9FAB98258EC60600D6D0C5 /* DHBW_ServiceTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD9FAB9A258EC60600D6D0C5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD9FABA3258EC60600D6D0C5 /* DHBW_ServiceUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CD9FAB95258EC60600D6D0C5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD9FAB7C258EC60200D6D0C5 /* DHBW-Service */; + targetProxy = CD9FAB94258EC60600D6D0C5 /* PBXContainerItemProxy */; + }; + CD9FABA0258EC60600D6D0C5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD9FAB7C258EC60200D6D0C5 /* DHBW-Service */; + targetProxy = CD9FAB9F258EC60600D6D0C5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + CD9FABA5258EC60600D6D0C5 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 14.3; + 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; + }; + CD9FABA6258EC60600D6D0C5 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 14.3; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CD9FABA8258EC60600D6D0C5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"DHBW-Service/Preview Content\""; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = "DHBW-Service/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-Service"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CD9FABA9258EC60600D6D0C5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"DHBW-Service/Preview Content\""; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = "DHBW-Service/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-Service"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + CD9FABAB258EC60600D6D0C5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + INFOPLIST_FILE = "DHBW-ServiceTests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-ServiceTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DHBW-Service.app/DHBW-Service"; + }; + name = Debug; + }; + CD9FABAC258EC60600D6D0C5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + INFOPLIST_FILE = "DHBW-ServiceTests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-ServiceTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DHBW-Service.app/DHBW-Service"; + }; + name = Release; + }; + CD9FABAE258EC60600D6D0C5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + INFOPLIST_FILE = "DHBW-ServiceUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-ServiceUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "DHBW-Service"; + }; + name = Debug; + }; + CD9FABAF258EC60600D6D0C5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = HS7KNT4MZ2; + INFOPLIST_FILE = "DHBW-ServiceUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "de.plutodev.DHBW-ServiceUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "DHBW-Service"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CD9FAB78258EC60100D6D0C5 /* Build configuration list for PBXProject "DHBW-Service" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD9FABA5258EC60600D6D0C5 /* Debug */, + CD9FABA6258EC60600D6D0C5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD9FABA7258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-Service" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD9FABA8258EC60600D6D0C5 /* Debug */, + CD9FABA9258EC60600D6D0C5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD9FABAA258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-ServiceTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD9FABAB258EC60600D6D0C5 /* Debug */, + CD9FABAC258EC60600D6D0C5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD9FABAD258EC60600D6D0C5 /* Build configuration list for PBXNativeTarget "DHBW-ServiceUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD9FABAE258EC60600D6D0C5 /* Debug */, + CD9FABAF258EC60600D6D0C5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + CD9FAB8B258EC60600D6D0C5 /* DHBW_Service.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + CD9FAB8C258EC60600D6D0C5 /* DHBW_Service.xcdatamodel */, + ); + currentVersion = CD9FAB8C258EC60600D6D0C5 /* DHBW_Service.xcdatamodel */; + path = DHBW_Service.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = CD9FAB75258EC60100D6D0C5 /* Project object */; +} diff --git a/DHBW-Service.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/DHBW-Service.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/DHBW-Service.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/DHBW-Service.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/DHBW-Service.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/DHBW-Service.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/DHBW-Service.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/xcschememanagement.plist b/DHBW-Service.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..e49622e --- /dev/null +++ b/DHBW-Service.xcodeproj/xcuserdata/patrick.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + DHBW-Service.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/DHBW-Service/Assets.xcassets/AccentColor.colorset/Contents.json b/DHBW-Service/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/DHBW-Service/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/DHBW-Service/Assets.xcassets/AppIcon.appiconset/Contents.json b/DHBW-Service/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/DHBW-Service/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/DHBW-Service/Assets.xcassets/Contents.json b/DHBW-Service/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/DHBW-Service/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/DHBW-Service/ContentView.swift b/DHBW-Service/ContentView.swift new file mode 100644 index 0000000..3760fd3 --- /dev/null +++ b/DHBW-Service/ContentView.swift @@ -0,0 +1,80 @@ +// +// ContentView.swift +// DHBW-Service +// +// Created by Patrick Müller on 20.12.20. +// + +import SwiftUI +import CoreData + +struct ContentView: View { + @Environment(\.managedObjectContext) private var viewContext + + @FetchRequest( + sortDescriptors: [NSSortDescriptor(keyPath: \Item.timestamp, ascending: true)], + animation: .default) + private var items: FetchedResults + + var body: some View { + List { + ForEach(items) { item in + Text("Item at \(item.timestamp!, formatter: itemFormatter)") + } + .onDelete(perform: deleteItems) + } + .toolbar { + #if os(iOS) + EditButton() + #endif + + Button(action: addItem) { + Label("Add Item", systemImage: "plus") + } + } + } + + private func addItem() { + withAnimation { + let newItem = Item(context: viewContext) + newItem.timestamp = Date() + + do { + try viewContext.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)") + } + } + } + + private func deleteItems(offsets: IndexSet) { + withAnimation { + offsets.map { items[$0] }.forEach(viewContext.delete) + + do { + try viewContext.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)") + } + } + } +} + +private let itemFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateStyle = .short + formatter.timeStyle = .medium + return formatter +}() + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView().environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) + } +} diff --git a/DHBW-Service/DHBW_Service.xcdatamodeld/.xccurrentversion b/DHBW-Service/DHBW_Service.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..4b1a934 --- /dev/null +++ b/DHBW-Service/DHBW_Service.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + DHBW_Service.xcdatamodel + + diff --git a/DHBW-Service/DHBW_Service.xcdatamodeld/DHBW_Service.xcdatamodel/contents b/DHBW-Service/DHBW_Service.xcdatamodeld/DHBW_Service.xcdatamodel/contents new file mode 100644 index 0000000..e8d6ec8 --- /dev/null +++ b/DHBW-Service/DHBW_Service.xcdatamodeld/DHBW_Service.xcdatamodel/contents @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/DHBW-Service/DHBW_ServiceApp.swift b/DHBW-Service/DHBW_ServiceApp.swift new file mode 100644 index 0000000..90d3ce1 --- /dev/null +++ b/DHBW-Service/DHBW_ServiceApp.swift @@ -0,0 +1,20 @@ +// +// DHBW_ServiceApp.swift +// DHBW-Service +// +// Created by Patrick Müller on 20.12.20. +// + +import SwiftUI + +@main +struct DHBW_ServiceApp: App { + let persistenceController = PersistenceController.shared + + var body: some Scene { + WindowGroup { + ContentView() + .environment(\.managedObjectContext, persistenceController.container.viewContext) + } + } +} diff --git a/DHBW-Service/Info.plist b/DHBW-Service/Info.plist new file mode 100644 index 0000000..efc211a --- /dev/null +++ b/DHBW-Service/Info.plist @@ -0,0 +1,50 @@ + + + + + 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 + + + UIApplicationSupportsIndirectInputEvents + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/DHBW-Service/Persistence.swift b/DHBW-Service/Persistence.swift new file mode 100644 index 0000000..b8facdb --- /dev/null +++ b/DHBW-Service/Persistence.swift @@ -0,0 +1,55 @@ +// +// Persistence.swift +// DHBW-Service +// +// Created by Patrick Müller on 20.12.20. +// + +import CoreData + +struct PersistenceController { + static let shared = PersistenceController() + + static var preview: PersistenceController = { + let result = PersistenceController(inMemory: true) + let viewContext = result.container.viewContext + for _ in 0..<10 { + let newItem = Item(context: viewContext) + newItem.timestamp = Date() + } + do { + try viewContext.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)") + } + return result + }() + + let container: NSPersistentCloudKitContainer + + init(inMemory: Bool = false) { + container = NSPersistentCloudKitContainer(name: "DHBW_Service") + if inMemory { + container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null") + } + 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)") + } + }) + } +} diff --git a/DHBW-Service/Preview Content/Preview Assets.xcassets/Contents.json b/DHBW-Service/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/DHBW-Service/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/DHBW-ServiceTests/DHBW_ServiceTests.swift b/DHBW-ServiceTests/DHBW_ServiceTests.swift new file mode 100644 index 0000000..5e59296 --- /dev/null +++ b/DHBW-ServiceTests/DHBW_ServiceTests.swift @@ -0,0 +1,33 @@ +// +// DHBW_ServiceTests.swift +// DHBW-ServiceTests +// +// Created by Patrick Müller on 20.12.20. +// + +import XCTest +@testable import DHBW_Service + +class DHBW_ServiceTests: 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/DHBW-ServiceTests/Info.plist b/DHBW-ServiceTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/DHBW-ServiceTests/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/DHBW-ServiceUITests/DHBW_ServiceUITests.swift b/DHBW-ServiceUITests/DHBW_ServiceUITests.swift new file mode 100644 index 0000000..d1f6730 --- /dev/null +++ b/DHBW-ServiceUITests/DHBW_ServiceUITests.swift @@ -0,0 +1,42 @@ +// +// DHBW_ServiceUITests.swift +// DHBW-ServiceUITests +// +// Created by Patrick Müller on 20.12.20. +// + +import XCTest + +class DHBW_ServiceUITests: 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: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/DHBW-ServiceUITests/Info.plist b/DHBW-ServiceUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/DHBW-ServiceUITests/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 + +