commit aa33de26c9482f2428dd576d08c94a90e11f1dfd Author: Gerrit Linnemann Date: Wed Dec 14 08:29:15 2016 +0100 Project construct diff --git a/OTRS-Watch.xcodeproj/project.pbxproj b/OTRS-Watch.xcodeproj/project.pbxproj new file mode 100644 index 0000000..6f4a859 --- /dev/null +++ b/OTRS-Watch.xcodeproj/project.pbxproj @@ -0,0 +1,554 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 854A87B01DF6BD9A00904B3E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87AF1DF6BD9A00904B3E /* AppDelegate.swift */; }; + 854A87B21DF6BD9A00904B3E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87B11DF6BD9A00904B3E /* ViewController.swift */; }; + 854A87B41DF6BD9A00904B3E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 854A87B31DF6BD9A00904B3E /* Assets.xcassets */; }; + 854A87B71DF6BD9A00904B3E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 854A87B51DF6BD9A00904B3E /* Main.storyboard */; }; + 854A87C21DF6BD9A00904B3E /* OTRS_WatchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87C11DF6BD9A00904B3E /* OTRS_WatchTests.swift */; }; + 854A87CD1DF6BD9A00904B3E /* OTRS_WatchUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87CC1DF6BD9A00904B3E /* OTRS_WatchUITests.swift */; }; + 854A87DB1DF6C22C00904B3E /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87DA1DF6C22C00904B3E /* Constants.swift */; }; + 854A87DD1DF6DC7500904B3E /* OTRS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 854A87DC1DF6DC7500904B3E /* OTRS.swift */; }; + 857EB22C1DF974F500CCA941 /* Ticket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 857EB22B1DF974F500CCA941 /* Ticket.swift */; }; + 857EB22F1DF9845200CCA941 /* TicketExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 857EB22E1DF9845200CCA941 /* TicketExtension.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 854A87BE1DF6BD9A00904B3E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 854A87A41DF6BD9900904B3E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 854A87AB1DF6BD9900904B3E; + remoteInfo = "OTRS-Watch"; + }; + 854A87C91DF6BD9A00904B3E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 854A87A41DF6BD9900904B3E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 854A87AB1DF6BD9900904B3E; + remoteInfo = "OTRS-Watch"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 854A87AC1DF6BD9A00904B3E /* OTRS-Watch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "OTRS-Watch.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 854A87AF1DF6BD9A00904B3E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 854A87B11DF6BD9A00904B3E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 854A87B31DF6BD9A00904B3E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 854A87B61DF6BD9A00904B3E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 854A87B81DF6BD9A00904B3E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 854A87BD1DF6BD9A00904B3E /* OTRS-WatchTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OTRS-WatchTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 854A87C11DF6BD9A00904B3E /* OTRS_WatchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OTRS_WatchTests.swift; sourceTree = ""; }; + 854A87C31DF6BD9A00904B3E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 854A87C81DF6BD9A00904B3E /* OTRS-WatchUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OTRS-WatchUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 854A87CC1DF6BD9A00904B3E /* OTRS_WatchUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OTRS_WatchUITests.swift; sourceTree = ""; }; + 854A87CE1DF6BD9A00904B3E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 854A87DA1DF6C22C00904B3E /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; }; + 854A87DC1DF6DC7500904B3E /* OTRS.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OTRS.swift; sourceTree = ""; }; + 857EB22B1DF974F500CCA941 /* Ticket.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Ticket.swift; path = Model/Ticket.swift; sourceTree = ""; }; + 857EB22E1DF9845200CCA941 /* TicketExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TicketExtension.swift; path = Model/Extension/TicketExtension.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 854A87A91DF6BD9900904B3E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87BA1DF6BD9A00904B3E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87C51DF6BD9A00904B3E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 854A87A31DF6BD9900904B3E = { + isa = PBXGroup; + children = ( + 854A87AE1DF6BD9A00904B3E /* OTRS-Watch */, + 854A87C01DF6BD9A00904B3E /* OTRS-WatchTests */, + 854A87CB1DF6BD9A00904B3E /* OTRS-WatchUITests */, + 854A87AD1DF6BD9A00904B3E /* Products */, + ); + sourceTree = ""; + }; + 854A87AD1DF6BD9A00904B3E /* Products */ = { + isa = PBXGroup; + children = ( + 854A87AC1DF6BD9A00904B3E /* OTRS-Watch.app */, + 854A87BD1DF6BD9A00904B3E /* OTRS-WatchTests.xctest */, + 854A87C81DF6BD9A00904B3E /* OTRS-WatchUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 854A87AE1DF6BD9A00904B3E /* OTRS-Watch */ = { + isa = PBXGroup; + children = ( + 857EB22A1DF9748B00CCA941 /* Model */, + 854A87AF1DF6BD9A00904B3E /* AppDelegate.swift */, + 854A87B11DF6BD9A00904B3E /* ViewController.swift */, + 854A87B31DF6BD9A00904B3E /* Assets.xcassets */, + 854A87B51DF6BD9A00904B3E /* Main.storyboard */, + 854A87B81DF6BD9A00904B3E /* Info.plist */, + 854A87DA1DF6C22C00904B3E /* Constants.swift */, + 854A87DC1DF6DC7500904B3E /* OTRS.swift */, + ); + path = "OTRS-Watch"; + sourceTree = ""; + }; + 854A87C01DF6BD9A00904B3E /* OTRS-WatchTests */ = { + isa = PBXGroup; + children = ( + 854A87C11DF6BD9A00904B3E /* OTRS_WatchTests.swift */, + 854A87C31DF6BD9A00904B3E /* Info.plist */, + ); + path = "OTRS-WatchTests"; + sourceTree = ""; + }; + 854A87CB1DF6BD9A00904B3E /* OTRS-WatchUITests */ = { + isa = PBXGroup; + children = ( + 854A87CC1DF6BD9A00904B3E /* OTRS_WatchUITests.swift */, + 854A87CE1DF6BD9A00904B3E /* Info.plist */, + ); + path = "OTRS-WatchUITests"; + sourceTree = ""; + }; + 857EB22A1DF9748B00CCA941 /* Model */ = { + isa = PBXGroup; + children = ( + 857EB22D1DF9843300CCA941 /* Extension */, + 857EB22B1DF974F500CCA941 /* Ticket.swift */, + ); + name = Model; + sourceTree = ""; + }; + 857EB22D1DF9843300CCA941 /* Extension */ = { + isa = PBXGroup; + children = ( + 857EB22E1DF9845200CCA941 /* TicketExtension.swift */, + ); + name = Extension; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 854A87AB1DF6BD9900904B3E /* OTRS-Watch */ = { + isa = PBXNativeTarget; + buildConfigurationList = 854A87D11DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-Watch" */; + buildPhases = ( + 854A87A81DF6BD9900904B3E /* Sources */, + 854A87A91DF6BD9900904B3E /* Frameworks */, + 854A87AA1DF6BD9900904B3E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "OTRS-Watch"; + productName = "OTRS-Watch"; + productReference = 854A87AC1DF6BD9A00904B3E /* OTRS-Watch.app */; + productType = "com.apple.product-type.application"; + }; + 854A87BC1DF6BD9A00904B3E /* OTRS-WatchTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 854A87D41DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-WatchTests" */; + buildPhases = ( + 854A87B91DF6BD9A00904B3E /* Sources */, + 854A87BA1DF6BD9A00904B3E /* Frameworks */, + 854A87BB1DF6BD9A00904B3E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 854A87BF1DF6BD9A00904B3E /* PBXTargetDependency */, + ); + name = "OTRS-WatchTests"; + productName = "OTRS-WatchTests"; + productReference = 854A87BD1DF6BD9A00904B3E /* OTRS-WatchTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 854A87C71DF6BD9A00904B3E /* OTRS-WatchUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 854A87D71DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-WatchUITests" */; + buildPhases = ( + 854A87C41DF6BD9A00904B3E /* Sources */, + 854A87C51DF6BD9A00904B3E /* Frameworks */, + 854A87C61DF6BD9A00904B3E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 854A87CA1DF6BD9A00904B3E /* PBXTargetDependency */, + ); + name = "OTRS-WatchUITests"; + productName = "OTRS-WatchUITests"; + productReference = 854A87C81DF6BD9A00904B3E /* OTRS-WatchUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 854A87A41DF6BD9900904B3E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0810; + LastUpgradeCheck = 0810; + ORGANIZATIONNAME = "Adawim UG (haftungsbeschränkt)"; + TargetAttributes = { + 854A87AB1DF6BD9900904B3E = { + CreatedOnToolsVersion = 8.1; + ProvisioningStyle = Automatic; + }; + 854A87BC1DF6BD9A00904B3E = { + CreatedOnToolsVersion = 8.1; + ProvisioningStyle = Automatic; + TestTargetID = 854A87AB1DF6BD9900904B3E; + }; + 854A87C71DF6BD9A00904B3E = { + CreatedOnToolsVersion = 8.1; + ProvisioningStyle = Automatic; + TestTargetID = 854A87AB1DF6BD9900904B3E; + }; + }; + }; + buildConfigurationList = 854A87A71DF6BD9900904B3E /* Build configuration list for PBXProject "OTRS-Watch" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 854A87A31DF6BD9900904B3E; + productRefGroup = 854A87AD1DF6BD9A00904B3E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 854A87AB1DF6BD9900904B3E /* OTRS-Watch */, + 854A87BC1DF6BD9A00904B3E /* OTRS-WatchTests */, + 854A87C71DF6BD9A00904B3E /* OTRS-WatchUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 854A87AA1DF6BD9900904B3E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 854A87B41DF6BD9A00904B3E /* Assets.xcassets in Resources */, + 854A87B71DF6BD9A00904B3E /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87BB1DF6BD9A00904B3E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87C61DF6BD9A00904B3E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 854A87A81DF6BD9900904B3E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 854A87B21DF6BD9A00904B3E /* ViewController.swift in Sources */, + 857EB22F1DF9845200CCA941 /* TicketExtension.swift in Sources */, + 854A87DD1DF6DC7500904B3E /* OTRS.swift in Sources */, + 857EB22C1DF974F500CCA941 /* Ticket.swift in Sources */, + 854A87B01DF6BD9A00904B3E /* AppDelegate.swift in Sources */, + 854A87DB1DF6C22C00904B3E /* Constants.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87B91DF6BD9A00904B3E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 854A87C21DF6BD9A00904B3E /* OTRS_WatchTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 854A87C41DF6BD9A00904B3E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 854A87CD1DF6BD9A00904B3E /* OTRS_WatchUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 854A87BF1DF6BD9A00904B3E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 854A87AB1DF6BD9900904B3E /* OTRS-Watch */; + targetProxy = 854A87BE1DF6BD9A00904B3E /* PBXContainerItemProxy */; + }; + 854A87CA1DF6BD9A00904B3E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 854A87AB1DF6BD9900904B3E /* OTRS-Watch */; + targetProxy = 854A87C91DF6BD9A00904B3E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 854A87B51DF6BD9A00904B3E /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 854A87B61DF6BD9A00904B3E /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 854A87CF1DF6BD9A00904B3E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 854A87D01DF6BD9A00904B3E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + }; + name = Release; + }; + 854A87D21DF6BD9A00904B3E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-Watch/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-Watch"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 854A87D31DF6BD9A00904B3E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-Watch/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-Watch"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 854A87D51DF6BD9A00904B3E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-WatchTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-WatchTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OTRS-Watch.app/Contents/MacOS/OTRS-Watch"; + }; + name = Debug; + }; + 854A87D61DF6BD9A00904B3E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-WatchTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-WatchTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OTRS-Watch.app/Contents/MacOS/OTRS-Watch"; + }; + name = Release; + }; + 854A87D81DF6BD9A00904B3E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-WatchUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-WatchUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = "OTRS-Watch"; + }; + name = Debug; + }; + 854A87D91DF6BD9A00904B3E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "OTRS-WatchUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "de.adawim.ticket.OTRS-WatchUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = "OTRS-Watch"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 854A87A71DF6BD9900904B3E /* Build configuration list for PBXProject "OTRS-Watch" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 854A87CF1DF6BD9A00904B3E /* Debug */, + 854A87D01DF6BD9A00904B3E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 854A87D11DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-Watch" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 854A87D21DF6BD9A00904B3E /* Debug */, + 854A87D31DF6BD9A00904B3E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 854A87D41DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-WatchTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 854A87D51DF6BD9A00904B3E /* Debug */, + 854A87D61DF6BD9A00904B3E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 854A87D71DF6BD9A00904B3E /* Build configuration list for PBXNativeTarget "OTRS-WatchUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 854A87D81DF6BD9A00904B3E /* Debug */, + 854A87D91DF6BD9A00904B3E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 854A87A41DF6BD9900904B3E /* Project object */; +} diff --git a/OTRS-Watch.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/OTRS-Watch.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..44dff15 --- /dev/null +++ b/OTRS-Watch.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/OTRS-Watch.xcodeproj/project.xcworkspace/xcuserdata/linnemann.xcuserdatad/UserInterfaceState.xcuserstate b/OTRS-Watch.xcodeproj/project.xcworkspace/xcuserdata/linnemann.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..3db95dd Binary files /dev/null and b/OTRS-Watch.xcodeproj/project.xcworkspace/xcuserdata/linnemann.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..55f0cb0 --- /dev/null +++ b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/OTRS-Watch.xcscheme b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/OTRS-Watch.xcscheme new file mode 100644 index 0000000..0cc0118 --- /dev/null +++ b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/OTRS-Watch.xcscheme @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/xcschememanagement.plist b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..feca70e --- /dev/null +++ b/OTRS-Watch.xcodeproj/xcuserdata/linnemann.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + OTRS-Watch.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 854A87AB1DF6BD9900904B3E + + primary + + + 854A87BC1DF6BD9A00904B3E + + primary + + + 854A87C71DF6BD9A00904B3E + + primary + + + + + diff --git a/OTRS-Watch/AppDelegate.swift b/OTRS-Watch/AppDelegate.swift new file mode 100644 index 0000000..c0cb309 --- /dev/null +++ b/OTRS-Watch/AppDelegate.swift @@ -0,0 +1,26 @@ +// +// AppDelegate.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Cocoa + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + + + func applicationDidFinishLaunching(_ aNotification: Notification) { + // Insert code here to initialize your application + } + + func applicationWillTerminate(_ aNotification: Notification) { + // Insert code here to tear down your application + } + + +} + diff --git a/OTRS-Watch/Assets.xcassets/AppIcon.appiconset/Contents.json b/OTRS-Watch/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/OTRS-Watch/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/OTRS-Watch/Base.lproj/Main.storyboard b/OTRS-Watch/Base.lproj/Main.storyboard new file mode 100644 index 0000000..8052c1d --- /dev/null +++ b/OTRS-Watch/Base.lproj/Main.storyboard @@ -0,0 +1,828 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NSAllRomanInputSourcesLocaleIdentifier + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OTRS-Watch/Constants.swift b/OTRS-Watch/Constants.swift new file mode 100644 index 0000000..ca72669 --- /dev/null +++ b/OTRS-Watch/Constants.swift @@ -0,0 +1,28 @@ +// +// Constants.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Foundation + +struct Constants { + + struct SERVICE { + static let URL = "http://saeweb01.sae.intra/web/ws/v1/user/permission/" + } + + struct USER_SETTINGS { + + struct CREDENTIALS { + static let USER = "user::setting::login" + static let PASSWORD = "user::setting::password" + } + + struct OTRS { + static let QUEUE = "user::setting::otrs::queue" + } + } +} diff --git a/OTRS-Watch/Info.plist b/OTRS-Watch/Info.plist new file mode 100644 index 0000000..2137e91 --- /dev/null +++ b/OTRS-Watch/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. + NSMainStoryboardFile + Main + NSAppTransportSecurity + + NSExceptionDomains + + saeotrs01.sae.intra + + NSExceptionAllowsInsecureHTTPLoads + + + + + NSPrincipalClass + NSApplication + + diff --git a/OTRS-Watch/Model/Extension/TicketExtension.swift b/OTRS-Watch/Model/Extension/TicketExtension.swift new file mode 100644 index 0000000..ac89535 --- /dev/null +++ b/OTRS-Watch/Model/Extension/TicketExtension.swift @@ -0,0 +1,107 @@ +// +// Ticket.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 08.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Foundation + +enum SerializationError: Error { + case missing(String) + case invalid(String, Any) +} + +extension Ticket { + + init(source: Dictionary) throws { + + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd hh:mm:ss" + + + // extract ticket id + guard let ticketID_ = source["TicketID"] as? String else { + throw SerializationError.missing("TicketID") + } + + // extract ticket number + guard let ticketNumber_ = source["TicketNumber"] as? String else { + throw SerializationError.missing("TicketNumber") + } + + // extract title + guard let title_ = source["Title"] as? String else { + throw SerializationError.missing("Title") + } + + // extract owner + guard let owner_ = source["Owner"] as? String else { + throw SerializationError.missing("Owner") + } + + // extract customer ID + guard let customerID_ = source["CustomerID"] as? String else { + throw SerializationError.missing("CustomerID") + } + + // extract customer user ID + guard let customerUserID_ = source["CustomerUserID"] as? String else { + throw SerializationError.missing("CustomerUserID") + } + + // extract priority + guard let priority_ = source["Priority"] as? String else { + throw SerializationError.missing("Priority") + } + + // extract queue + guard let queue_ = source["Queue"] as? String else { + throw SerializationError.missing("Queue") + } + + // extract queue ID + guard let queueID_ = source["QueueID"] as? String else { + throw SerializationError.missing("QueueID") + } + + // extract state + guard let stateJSON = source["State"] as? String else { + throw SerializationError.missing("State") + } + let state_:State = State(rawValue: stateJSON)! + + // extract created, e.g. 2016-11-24 11:30:11 + guard let createdJSON = source["Created"] as? String else { + throw SerializationError.missing("Created") + } + + // extract changed, e.g. 2016-11-24 13:33:01 + guard let changedJSON = source["Changed"] as? String else { + throw SerializationError.missing("Changed") + } + + + self.id = ticketID_ + self.ticketNumber = ticketNumber_ + self.title = title_ + self.owner = owner_ + self.customerID = customerID_ + self.customerUserID = customerUserID_ + self.priority = priority_ + self.queue = queue_ + self.queueID = queueID_ + self.state = state_ + if let created:Date = dateFormatter.date(from: createdJSON) { + self.created = created + } else { + self.created = Date.init() + } + if let changed:Date = dateFormatter.date(from: changedJSON) { + self.changed = changed + } else { + self.changed = Date.init() + } + } +} diff --git a/OTRS-Watch/Model/Ticket.swift b/OTRS-Watch/Model/Ticket.swift new file mode 100644 index 0000000..a02f9e4 --- /dev/null +++ b/OTRS-Watch/Model/Ticket.swift @@ -0,0 +1,29 @@ +// +// Ticket.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 08.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Foundation + +struct Ticket { + + enum State:String { + case new, open + } + + let id:String + let ticketNumber:String + let title:String + let created:Date + let changed:Date + let owner:String + let customerID:String + let customerUserID:String + let priority:String + let queue:String + let queueID:String + let state:State +} diff --git a/OTRS-Watch/OTRS.swift b/OTRS-Watch/OTRS.swift new file mode 100644 index 0000000..a7a1f46 --- /dev/null +++ b/OTRS-Watch/OTRS.swift @@ -0,0 +1,111 @@ +// +// OTRS.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Foundation + +class OTRS { + + var url : String; + var username : String; + var password : String; + + + //MARK: init + + init(url_:String, username_:String, password_:String) { + self.url = url_ + self.username = username_ + self.password = password_ + } + + + //MARK: REST + + func get(forQue:Int) { + + let config = URLSessionConfiguration.default // Session configuration + let session = URLSession(configuration: config) // Load configuration into session + let url = URL(string: buildURLForGettingNew(queID: forQue)) + + let task = session.dataTask(with: url!, completionHandler: { + (data, response, error) in + + if error != nil { + print(error!.localizedDescription) + } else { + do { + if let json = try JSONSerialization.jsonObject(with: data!, options: .allowFragments) as? [String: Any] { + // work with json ... + //print(json) + + for object in json { + let ticketIDs = object.value as! Array + //print(ticketIDs) + + for ticketID in ticketIDs { + if let tID:Int = Int(ticketID) { + self.fetch(ticket: tID) + } + } + } + } + } catch { + print("Error in JSONSerialization") + } + } + }) + + task.resume() + } + + func fetch(ticket:Int) { + let config = URLSessionConfiguration.default // Session configuration + let session = URLSession(configuration: config) // Load configuration into session + let url = URL(string: buildURLForGettingTicketInfo(ticketID: ticket)) + + let task = session.dataTask(with: url!, completionHandler: { // see: https://developer.apple.com/swift/blog/?id=37 + (data, response, error) in + + if error != nil { + print(error!.localizedDescription) + } else { + do { + let dictionary = try JSONSerialization.jsonObject(with: data!, options: .allowFragments) as! [String : AnyObject] + let ticketData : Dictionary = dictionary["Ticket"]?.firstObject as! [String : AnyObject] + let ticket = try Ticket(source: ticketData) + print(ticket) + } catch SerializationError.missing(let marker) { + print("Error in JSONSerialization for ticket #\(ticket) at \"\(marker)\"") + } catch { + print("Error in JSONSerialization for ticket #\(ticket): \(error)") + } + } + }) + + task.resume() + } + + + //MARK: Build urls + + private func buildURLForGettingNew(queID:Int) -> String { + return buildURLForGettingListByState(forState: "new", queID: queID) + } + + private func buildURLForGettingOpen(queID:Int) -> String { + return buildURLForGettingListByState(forState: "open", queID: queID) + } + + private func buildURLForGettingListByState(forState:String, queID:Int) -> String { + return "http://saeotrs01.sae.intra/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket?UserLogin=\(self.username)&Password=\(self.password)&QueueIDs=\(queID)&States=\(forState)" + } + + private func buildURLForGettingTicketInfo(ticketID:Int) -> String { + return "http://saeotrs01.sae.intra/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/\(ticketID)?UserLogin=\(self.username)&Password=\(self.password)" + } +} diff --git a/OTRS-Watch/ViewController.swift b/OTRS-Watch/ViewController.swift new file mode 100644 index 0000000..76a972b --- /dev/null +++ b/OTRS-Watch/ViewController.swift @@ -0,0 +1,60 @@ +// +// ViewController.swift +// OTRS-Watch +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import Cocoa + +class ViewController: NSViewController { + + @IBOutlet weak var txtUsername: NSTextField! + @IBOutlet weak var txtPassword: NSSecureTextField! + @IBOutlet weak var txtQueue: NSTextField! + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + + if UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.CREDENTIALS.USER) != nil { + txtUsername.stringValue = UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.CREDENTIALS.USER)! + } + + if UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.CREDENTIALS.PASSWORD) != nil { + txtPassword.stringValue = UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.CREDENTIALS.PASSWORD)! + } + + if UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.OTRS.QUEUE) != nil { + txtQueue.stringValue = UserDefaults.standard.string(forKey: Constants.USER_SETTINGS.OTRS.QUEUE)! + } + + reload() + } + + override var representedObject: Any? { + didSet { + // Update the view, if already loaded. + } + } + + @IBAction func saveSettingsAction(_ sender: NSButton) { + UserDefaults.standard.setValue(txtUsername.stringValue, forKey: Constants.USER_SETTINGS.CREDENTIALS.USER) + + UserDefaults.standard.setValue(txtPassword.stringValue, forKey: Constants.USER_SETTINGS.CREDENTIALS.PASSWORD) + + UserDefaults.standard.setValue(txtQueue.stringValue, forKey: Constants.USER_SETTINGS.OTRS.QUEUE) + + reload() + } + + private func reload() { + let otrs = OTRS(url_: "", username_: txtUsername.stringValue, password_: txtPassword.stringValue) + if let que:Int = Int(txtQueue.stringValue) { + otrs.get(forQue: que) + } + } +} + diff --git a/OTRS-WatchTests/Info.plist b/OTRS-WatchTests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/OTRS-WatchTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/OTRS-WatchTests/OTRS_WatchTests.swift b/OTRS-WatchTests/OTRS_WatchTests.swift new file mode 100644 index 0000000..34ef6e2 --- /dev/null +++ b/OTRS-WatchTests/OTRS_WatchTests.swift @@ -0,0 +1,36 @@ +// +// OTRS_WatchTests.swift +// OTRS-WatchTests +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import XCTest +@testable import OTRS_Watch + +class OTRS_WatchTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // 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/OTRS-WatchUITests/Info.plist b/OTRS-WatchUITests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/OTRS-WatchUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/OTRS-WatchUITests/OTRS_WatchUITests.swift b/OTRS-WatchUITests/OTRS_WatchUITests.swift new file mode 100644 index 0000000..4e45a38 --- /dev/null +++ b/OTRS-WatchUITests/OTRS_WatchUITests.swift @@ -0,0 +1,36 @@ +// +// OTRS_WatchUITests.swift +// OTRS-WatchUITests +// +// Created by Gerrit Linnemann on 06.12.16. +// Copyright © 2016 Adawim UG (haftungsbeschränkt). All rights reserved. +// + +import XCTest + +class OTRS_WatchUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // 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 + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // 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 tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +}