diff --git a/Client/iOS/TodoList.xcodeproj/project.pbxproj b/Client/iOS/TodoList.xcodeproj/project.pbxproj new file mode 100644 index 000000000..d7e0c1096 --- /dev/null +++ b/Client/iOS/TodoList.xcodeproj/project.pbxproj @@ -0,0 +1,594 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 6F5BC28927FA9CB0002D591D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F5BC28827FA9CB0002D591D /* AppDelegate.swift */; }; + 6F5BC28B27FA9CB0002D591D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F5BC28A27FA9CB0002D591D /* SceneDelegate.swift */; }; + 6F5BC28D27FA9CB0002D591D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F5BC28C27FA9CB0002D591D /* ViewController.swift */; }; + 6F5BC29027FA9CB0002D591D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6F5BC28E27FA9CB0002D591D /* Main.storyboard */; }; + 6F5BC29227FA9CB6002D591D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6F5BC29127FA9CB6002D591D /* Assets.xcassets */; }; + 6F5BC29527FA9CB6002D591D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6F5BC29327FA9CB6002D591D /* LaunchScreen.storyboard */; }; + 6F5BC2A027FA9CB6002D591D /* TodoListTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F5BC29F27FA9CB6002D591D /* TodoListTests.swift */; }; + 6F5BC2AB27FA9CB6002D591D /* TodoListUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F5BC2AA27FA9CB6002D591D /* TodoListUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6F5BC29C27FA9CB6002D591D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6F5BC27D27FA9CB0002D591D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6F5BC28427FA9CB0002D591D; + remoteInfo = TodoList; + }; + 6F5BC2A727FA9CB6002D591D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6F5BC27D27FA9CB0002D591D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6F5BC28427FA9CB0002D591D; + remoteInfo = TodoList; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 6F5BC28527FA9CB0002D591D /* TodoList.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TodoList.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6F5BC28827FA9CB0002D591D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 6F5BC28A27FA9CB0002D591D /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 6F5BC28C27FA9CB0002D591D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 6F5BC28F27FA9CB0002D591D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 6F5BC29127FA9CB6002D591D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6F5BC29427FA9CB6002D591D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 6F5BC29627FA9CB6002D591D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6F5BC29B27FA9CB6002D591D /* TodoListTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TodoListTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6F5BC29F27FA9CB6002D591D /* TodoListTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodoListTests.swift; sourceTree = ""; }; + 6F5BC2A127FA9CB6002D591D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6F5BC2A627FA9CB6002D591D /* TodoListUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TodoListUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6F5BC2AA27FA9CB6002D591D /* TodoListUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodoListUITests.swift; sourceTree = ""; }; + 6F5BC2AC27FA9CB6002D591D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6F5BC28227FA9CB0002D591D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC29827FA9CB6002D591D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC2A327FA9CB6002D591D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6F5BC27C27FA9CB0002D591D = { + isa = PBXGroup; + children = ( + 6F5BC28727FA9CB0002D591D /* TodoList */, + 6F5BC29E27FA9CB6002D591D /* TodoListTests */, + 6F5BC2A927FA9CB6002D591D /* TodoListUITests */, + 6F5BC28627FA9CB0002D591D /* Products */, + ); + sourceTree = ""; + }; + 6F5BC28627FA9CB0002D591D /* Products */ = { + isa = PBXGroup; + children = ( + 6F5BC28527FA9CB0002D591D /* TodoList.app */, + 6F5BC29B27FA9CB6002D591D /* TodoListTests.xctest */, + 6F5BC2A627FA9CB6002D591D /* TodoListUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6F5BC28727FA9CB0002D591D /* TodoList */ = { + isa = PBXGroup; + children = ( + 6F5BC28827FA9CB0002D591D /* AppDelegate.swift */, + 6F5BC28A27FA9CB0002D591D /* SceneDelegate.swift */, + 6F5BC28C27FA9CB0002D591D /* ViewController.swift */, + 6F5BC28E27FA9CB0002D591D /* Main.storyboard */, + 6F5BC29127FA9CB6002D591D /* Assets.xcassets */, + 6F5BC29327FA9CB6002D591D /* LaunchScreen.storyboard */, + 6F5BC29627FA9CB6002D591D /* Info.plist */, + ); + path = TodoList; + sourceTree = ""; + }; + 6F5BC29E27FA9CB6002D591D /* TodoListTests */ = { + isa = PBXGroup; + children = ( + 6F5BC29F27FA9CB6002D591D /* TodoListTests.swift */, + 6F5BC2A127FA9CB6002D591D /* Info.plist */, + ); + path = TodoListTests; + sourceTree = ""; + }; + 6F5BC2A927FA9CB6002D591D /* TodoListUITests */ = { + isa = PBXGroup; + children = ( + 6F5BC2AA27FA9CB6002D591D /* TodoListUITests.swift */, + 6F5BC2AC27FA9CB6002D591D /* Info.plist */, + ); + path = TodoListUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6F5BC28427FA9CB0002D591D /* TodoList */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6F5BC2AF27FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoList" */; + buildPhases = ( + 6F5BC28127FA9CB0002D591D /* Sources */, + 6F5BC28227FA9CB0002D591D /* Frameworks */, + 6F5BC28327FA9CB0002D591D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TodoList; + productName = TodoList; + productReference = 6F5BC28527FA9CB0002D591D /* TodoList.app */; + productType = "com.apple.product-type.application"; + }; + 6F5BC29A27FA9CB6002D591D /* TodoListTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6F5BC2B227FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoListTests" */; + buildPhases = ( + 6F5BC29727FA9CB6002D591D /* Sources */, + 6F5BC29827FA9CB6002D591D /* Frameworks */, + 6F5BC29927FA9CB6002D591D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6F5BC29D27FA9CB6002D591D /* PBXTargetDependency */, + ); + name = TodoListTests; + productName = TodoListTests; + productReference = 6F5BC29B27FA9CB6002D591D /* TodoListTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 6F5BC2A527FA9CB6002D591D /* TodoListUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6F5BC2B527FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoListUITests" */; + buildPhases = ( + 6F5BC2A227FA9CB6002D591D /* Sources */, + 6F5BC2A327FA9CB6002D591D /* Frameworks */, + 6F5BC2A427FA9CB6002D591D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6F5BC2A827FA9CB6002D591D /* PBXTargetDependency */, + ); + name = TodoListUITests; + productName = TodoListUITests; + productReference = 6F5BC2A627FA9CB6002D591D /* TodoListUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6F5BC27D27FA9CB0002D591D /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1250; + LastUpgradeCheck = 1250; + TargetAttributes = { + 6F5BC28427FA9CB0002D591D = { + CreatedOnToolsVersion = 12.5; + }; + 6F5BC29A27FA9CB6002D591D = { + CreatedOnToolsVersion = 12.5; + TestTargetID = 6F5BC28427FA9CB0002D591D; + }; + 6F5BC2A527FA9CB6002D591D = { + CreatedOnToolsVersion = 12.5; + TestTargetID = 6F5BC28427FA9CB0002D591D; + }; + }; + }; + buildConfigurationList = 6F5BC28027FA9CB0002D591D /* Build configuration list for PBXProject "TodoList" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6F5BC27C27FA9CB0002D591D; + productRefGroup = 6F5BC28627FA9CB0002D591D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6F5BC28427FA9CB0002D591D /* TodoList */, + 6F5BC29A27FA9CB6002D591D /* TodoListTests */, + 6F5BC2A527FA9CB6002D591D /* TodoListUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6F5BC28327FA9CB0002D591D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6F5BC29527FA9CB6002D591D /* LaunchScreen.storyboard in Resources */, + 6F5BC29227FA9CB6002D591D /* Assets.xcassets in Resources */, + 6F5BC29027FA9CB0002D591D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC29927FA9CB6002D591D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC2A427FA9CB6002D591D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6F5BC28127FA9CB0002D591D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6F5BC28D27FA9CB0002D591D /* ViewController.swift in Sources */, + 6F5BC28927FA9CB0002D591D /* AppDelegate.swift in Sources */, + 6F5BC28B27FA9CB0002D591D /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC29727FA9CB6002D591D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6F5BC2A027FA9CB6002D591D /* TodoListTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6F5BC2A227FA9CB6002D591D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6F5BC2AB27FA9CB6002D591D /* TodoListUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6F5BC29D27FA9CB6002D591D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6F5BC28427FA9CB0002D591D /* TodoList */; + targetProxy = 6F5BC29C27FA9CB6002D591D /* PBXContainerItemProxy */; + }; + 6F5BC2A827FA9CB6002D591D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6F5BC28427FA9CB0002D591D /* TodoList */; + targetProxy = 6F5BC2A727FA9CB6002D591D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 6F5BC28E27FA9CB0002D591D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6F5BC28F27FA9CB0002D591D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 6F5BC29327FA9CB6002D591D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6F5BC29427FA9CB6002D591D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6F5BC2AD27FA9CB6002D591D /* 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 = 13.0; + 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; + }; + 6F5BC2AE27FA9CB6002D591D /* 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 = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6F5BC2B027FA9CB6002D591D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoList/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoList; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 2; + }; + name = Debug; + }; + 6F5BC2B127FA9CB6002D591D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoList/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoList; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 2; + }; + name = Release; + }; + 6F5BC2B327FA9CB6002D591D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoListTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TodoList.app/TodoList"; + }; + name = Debug; + }; + 6F5BC2B427FA9CB6002D591D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoListTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoListTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TodoList.app/TodoList"; + }; + name = Release; + }; + 6F5BC2B627FA9CB6002D591D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TodoList; + }; + name = Debug; + }; + 6F5BC2B727FA9CB6002D591D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = TodoListUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = team13.com.TodoListUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TodoList; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6F5BC28027FA9CB0002D591D /* Build configuration list for PBXProject "TodoList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6F5BC2AD27FA9CB6002D591D /* Debug */, + 6F5BC2AE27FA9CB6002D591D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6F5BC2AF27FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoList" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6F5BC2B027FA9CB6002D591D /* Debug */, + 6F5BC2B127FA9CB6002D591D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6F5BC2B227FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoListTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6F5BC2B327FA9CB6002D591D /* Debug */, + 6F5BC2B427FA9CB6002D591D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6F5BC2B527FA9CB6002D591D /* Build configuration list for PBXNativeTarget "TodoListUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6F5BC2B627FA9CB6002D591D /* Debug */, + 6F5BC2B727FA9CB6002D591D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6F5BC27D27FA9CB0002D591D /* Project object */; +} diff --git a/Client/iOS/TodoList.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..919434a62 --- /dev/null +++ b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/jsj.xcuserdatad/UserInterfaceState.xcuserstate b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/jsj.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 000000000..a7f39f406 Binary files /dev/null and b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/jsj.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/sanghwiback.xcuserdatad/UserInterfaceState.xcuserstate b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/sanghwiback.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 000000000..f11660380 Binary files /dev/null and b/Client/iOS/TodoList.xcodeproj/project.xcworkspace/xcuserdata/sanghwiback.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Client/iOS/TodoList.xcodeproj/xcuserdata/jsj.xcuserdatad/xcschemes/xcschememanagement.plist b/Client/iOS/TodoList.xcodeproj/xcuserdata/jsj.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 000000000..da0fae717 --- /dev/null +++ b/Client/iOS/TodoList.xcodeproj/xcuserdata/jsj.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + TodoList.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Client/iOS/TodoList.xcodeproj/xcuserdata/sanghwiback.xcuserdatad/xcschemes/xcschememanagement.plist b/Client/iOS/TodoList.xcodeproj/xcuserdata/sanghwiback.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 000000000..da0fae717 --- /dev/null +++ b/Client/iOS/TodoList.xcodeproj/xcuserdata/sanghwiback.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + TodoList.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Client/iOS/TodoList/AppDelegate.swift b/Client/iOS/TodoList/AppDelegate.swift new file mode 100644 index 000000000..05dbf6588 --- /dev/null +++ b/Client/iOS/TodoList/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// TodoList +// +// Created by jsj on 2022/04/04. +// + +import UIKit + +@main +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. + } + + +} + diff --git a/Client/iOS/TodoList/Assets.xcassets/AccentColor.colorset/Contents.json b/Client/iOS/TodoList/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000..eb8789700 --- /dev/null +++ b/Client/iOS/TodoList/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Client/iOS/TodoList/Assets.xcassets/AppIcon.appiconset/Contents.json b/Client/iOS/TodoList/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..9221b9bb1 --- /dev/null +++ b/Client/iOS/TodoList/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/Client/iOS/TodoList/Assets.xcassets/Contents.json b/Client/iOS/TodoList/Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/Client/iOS/TodoList/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Client/iOS/TodoList/Base.lproj/LaunchScreen.storyboard b/Client/iOS/TodoList/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000..865e9329f --- /dev/null +++ b/Client/iOS/TodoList/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Client/iOS/TodoList/Base.lproj/Main.storyboard b/Client/iOS/TodoList/Base.lproj/Main.storyboard new file mode 100644 index 000000000..25a763858 --- /dev/null +++ b/Client/iOS/TodoList/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Client/iOS/TodoList/Info.plist b/Client/iOS/TodoList/Info.plist new file mode 100644 index 000000000..5b5919b09 --- /dev/null +++ b/Client/iOS/TodoList/Info.plist @@ -0,0 +1,64 @@ + + + + + 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 + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Client/iOS/TodoList/SceneDelegate.swift b/Client/iOS/TodoList/SceneDelegate.swift new file mode 100644 index 000000000..cf626ea15 --- /dev/null +++ b/Client/iOS/TodoList/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// TodoList +// +// Created by jsj on 2022/04/04. +// + +import UIKit + +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). + guard let _ = (scene as? UIWindowScene) else { return } + } + + 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 necessarily 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. + } + + +} + diff --git a/Client/iOS/TodoList/ViewController.swift b/Client/iOS/TodoList/ViewController.swift new file mode 100644 index 000000000..51dd384ec --- /dev/null +++ b/Client/iOS/TodoList/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// TodoList +// +// Created by jsj on 2022/04/04. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/Client/iOS/TodoListTests/Info.plist b/Client/iOS/TodoListTests/Info.plist new file mode 100644 index 000000000..64d65ca49 --- /dev/null +++ b/Client/iOS/TodoListTests/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/Client/iOS/TodoListTests/TodoListTests.swift b/Client/iOS/TodoListTests/TodoListTests.swift new file mode 100644 index 000000000..a421abc46 --- /dev/null +++ b/Client/iOS/TodoListTests/TodoListTests.swift @@ -0,0 +1,33 @@ +// +// TodoListTests.swift +// TodoListTests +// +// Created by jsj on 2022/04/04. +// + +import XCTest +@testable import TodoList + +class TodoListTests: 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/Client/iOS/TodoListUITests/Info.plist b/Client/iOS/TodoListUITests/Info.plist new file mode 100644 index 000000000..64d65ca49 --- /dev/null +++ b/Client/iOS/TodoListUITests/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/Client/iOS/TodoListUITests/TodoListUITests.swift b/Client/iOS/TodoListUITests/TodoListUITests.swift new file mode 100644 index 000000000..ca7c45d3b --- /dev/null +++ b/Client/iOS/TodoListUITests/TodoListUITests.swift @@ -0,0 +1,42 @@ +// +// TodoListUITests.swift +// TodoListUITests +// +// Created by jsj on 2022/04/04. +// + +import XCTest + +class TodoListUITests: 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, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/Server/.gitignore b/Server/.gitignore new file mode 100644 index 000000000..c2065bc26 --- /dev/null +++ b/Server/.gitignore @@ -0,0 +1,37 @@ +HELP.md +.gradle +build/ +!gradle/wrapper/gradle-wrapper.jar +!**/src/main/**/build/ +!**/src/test/**/build/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ diff --git a/Server/build.gradle b/Server/build.gradle new file mode 100644 index 000000000..ff55a371c --- /dev/null +++ b/Server/build.gradle @@ -0,0 +1,25 @@ +plugins { + id 'org.springframework.boot' version '2.6.6' + id 'io.spring.dependency-management' version '1.0.11.RELEASE' + id 'java' +} + +group = 'com' +version = '0.0.1-SNAPSHOT' +sourceCompatibility = '11' + +repositories { + mavenCentral() +} + +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-jdbc' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'mysql:mysql-connector-java' + developmentOnly 'org.springframework.boot:spring-boot-devtools' + testImplementation 'org.springframework.boot:spring-boot-starter-test' +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/Server/gradle/wrapper/gradle-wrapper.jar b/Server/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..41d9927a4 Binary files /dev/null and b/Server/gradle/wrapper/gradle-wrapper.jar differ diff --git a/Server/gradle/wrapper/gradle-wrapper.properties b/Server/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..00e33edef --- /dev/null +++ b/Server/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/Server/gradlew b/Server/gradlew new file mode 100755 index 000000000..1b6c78733 --- /dev/null +++ b/Server/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/Server/gradlew.bat b/Server/gradlew.bat new file mode 100644 index 000000000..107acd32c --- /dev/null +++ b/Server/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/Server/settings.gradle b/Server/settings.gradle new file mode 100644 index 000000000..59357f043 --- /dev/null +++ b/Server/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'todolist' diff --git a/Server/src/main/java/com/todolist/TodolistApplication.java b/Server/src/main/java/com/todolist/TodolistApplication.java new file mode 100644 index 000000000..7fd7f3b5b --- /dev/null +++ b/Server/src/main/java/com/todolist/TodolistApplication.java @@ -0,0 +1,13 @@ +package com.todolist; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class TodolistApplication { + + public static void main(String[] args) { + SpringApplication.run(TodolistApplication.class, args); + } + +} diff --git a/Server/src/main/java/com/todolist/controller/CardController.java b/Server/src/main/java/com/todolist/controller/CardController.java new file mode 100644 index 000000000..52844cd8a --- /dev/null +++ b/Server/src/main/java/com/todolist/controller/CardController.java @@ -0,0 +1,25 @@ +package com.todolist.controller; + +import com.todolist.domain.Card; +import com.todolist.service.CardService; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@RequestMapping("/todolist") +@RestController +public class CardController { + + private final CardService cardService; + + public CardController(CardService cardService) { + this.cardService = cardService; + } + + @GetMapping + public List list() { + return cardService.findAllCards(); + } +} diff --git a/Server/src/main/java/com/todolist/controller/HistoryController.java b/Server/src/main/java/com/todolist/controller/HistoryController.java new file mode 100644 index 000000000..64b07e422 --- /dev/null +++ b/Server/src/main/java/com/todolist/controller/HistoryController.java @@ -0,0 +1,14 @@ +package com.todolist.controller; + +import com.todolist.service.HistoryService; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class HistoryController { + + private final HistoryService historyService; + + public HistoryController(HistoryService historyService) { + this.historyService = historyService; + } +} diff --git a/Server/src/main/java/com/todolist/domain/Card.java b/Server/src/main/java/com/todolist/domain/Card.java new file mode 100644 index 000000000..b6ee3030e --- /dev/null +++ b/Server/src/main/java/com/todolist/domain/Card.java @@ -0,0 +1,48 @@ +package com.todolist.domain; + +import java.time.LocalDateTime; + +public class Card { + + private Integer cardId; + private String cardTitle; + private String cardContent; + private LocalDateTime addDateTime; + private Integer internalOrder; + private String boardName; + private boolean remove; + + public Card(Integer cardId, String cardTitle, String cardContent, + LocalDateTime addDateTime, Integer internalOrder, String boardName) { + this.cardId = cardId; + this.cardTitle = cardTitle; + this.cardContent = cardContent; + this.addDateTime = addDateTime; + this.internalOrder = internalOrder; + this.boardName = boardName; + } + + public Integer getCardId() { + return cardId; + } + + public String getCardTitle() { + return cardTitle; + } + + public String getCardContent() { + return cardContent; + } + + public LocalDateTime getAddDateTime() { + return addDateTime; + } + + public Integer getInternalOrder() { + return internalOrder; + } + + public String getBoardName() { + return boardName; + } +} diff --git a/Server/src/main/java/com/todolist/domain/History.java b/Server/src/main/java/com/todolist/domain/History.java new file mode 100644 index 000000000..9246ad60b --- /dev/null +++ b/Server/src/main/java/com/todolist/domain/History.java @@ -0,0 +1,9 @@ +package com.todolist.domain; + +import java.time.LocalDateTime; + +public class History { + + private String actionHistory; + private LocalDateTime actionTime; +} diff --git a/Server/src/main/java/com/todolist/repository/CardRepository.java b/Server/src/main/java/com/todolist/repository/CardRepository.java new file mode 100644 index 000000000..834217dd1 --- /dev/null +++ b/Server/src/main/java/com/todolist/repository/CardRepository.java @@ -0,0 +1,38 @@ +package com.todolist.repository; + +import com.todolist.domain.Card; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.RowCallbackHandler; +import org.springframework.jdbc.core.RowMapper; +import org.springframework.stereotype.Repository; + +import java.util.List; + +@Repository +public class CardRepository { + + private final JdbcTemplate jdbcTemplate; + + public CardRepository(JdbcTemplate jdbcTemplate) { + this.jdbcTemplate = jdbcTemplate; + } + + public List findAllCards() { + String sql = "SELECT * FROM card WHERE remove = 0"; + return jdbcTemplate.query(sql, cardRowMapper()); + } + + private RowMapper cardRowMapper() { + return (resultSet, rowNum) -> { + Card card = new Card( + resultSet.getInt("cardId"), + resultSet.getString("cardTitle"), + resultSet.getString("cardContent"), + resultSet.getTimestamp("addDateTime").toLocalDateTime(), + resultSet.getInt("internalOrder"), + resultSet.getString("boardName") + ); + return card; + }; + } +} diff --git a/Server/src/main/java/com/todolist/repository/HistoryRepository.java b/Server/src/main/java/com/todolist/repository/HistoryRepository.java new file mode 100644 index 000000000..6e29b5343 --- /dev/null +++ b/Server/src/main/java/com/todolist/repository/HistoryRepository.java @@ -0,0 +1,14 @@ +package com.todolist.repository; + +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Repository; + +@Repository +public class HistoryRepository { + + private final JdbcTemplate jdbcTemplate; + + public HistoryRepository(JdbcTemplate jdbcTemplate) { + this.jdbcTemplate = jdbcTemplate; + } +} diff --git a/Server/src/main/java/com/todolist/service/CardService.java b/Server/src/main/java/com/todolist/service/CardService.java new file mode 100644 index 000000000..0751047cc --- /dev/null +++ b/Server/src/main/java/com/todolist/service/CardService.java @@ -0,0 +1,21 @@ +package com.todolist.service; + +import com.todolist.domain.Card; +import com.todolist.repository.CardRepository; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class CardService { + + private final CardRepository cardRepository; + + public CardService(CardRepository cardRepository) { + this.cardRepository = cardRepository; + } + + public List findAllCards() { + return cardRepository.findAllCards(); + } +} diff --git a/Server/src/main/java/com/todolist/service/HistoryService.java b/Server/src/main/java/com/todolist/service/HistoryService.java new file mode 100644 index 000000000..f0228b962 --- /dev/null +++ b/Server/src/main/java/com/todolist/service/HistoryService.java @@ -0,0 +1,14 @@ +package com.todolist.service; + +import com.todolist.repository.HistoryRepository; +import org.springframework.stereotype.Service; + +@Service +public class HistoryService { + + private final HistoryRepository historyRepository; + + public HistoryService(HistoryRepository historyRepository) { + this.historyRepository = historyRepository; + } +} diff --git a/Server/src/main/resources/application.yml b/Server/src/main/resources/application.yml new file mode 100644 index 000000000..5088aa8bb --- /dev/null +++ b/Server/src/main/resources/application.yml @@ -0,0 +1,10 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/todoList?serverTimezone=Asia/Seoul + username: root + password: Lucid123! + + sql: + init: + mode: never diff --git a/Server/src/main/resources/data.sql b/Server/src/main/resources/data.sql new file mode 100644 index 000000000..10ad1ff98 --- /dev/null +++ b/Server/src/main/resources/data.sql @@ -0,0 +1,17 @@ +INSERT INTO `user` (userId, password, name, email) VALUES +('lucid1', 'aaaa', 'cid1', 'lucid1@tesla'), +('lucid2', 'bbbb', 'cid2', 'lucid2@tesla'), +('lucid3', 'cccc', 'cid3', 'lucid3@tesla'), +('lucid4', 'dddd', 'cid4', 'lucid4@tesla'), +('lucid5', 'eeee', 'cid5', 'lucid5@tesla'), +('lucid6', 'ffff', 'cid6', 'lucid6@tesla'), +('lucid7', 'gggg', 'cid7', 'lucid7@tesla'), +('lucid8', 'hhhh', 'cid8', 'lucid8@tesla'), +('lucid9', 'iiii', 'cid9', 'lucid9@tesla'), +('lucid10', 'iiii', 'cid9', 'lucid9@tesla'); + +INSERT INTO article (writer, title, contents) VALUES +('lucid1', 'title1', 'content is good!'), +('lucid2', 'title3', 'content is bad,,'), +('lucid2', 'title2', 'content is nice!') + diff --git a/Server/src/main/resources/schema.sql b/Server/src/main/resources/schema.sql new file mode 100644 index 000000000..c5a33c49e --- /dev/null +++ b/Server/src/main/resources/schema.sql @@ -0,0 +1,38 @@ +DROP TABLE IF EXISTS `user`; + +CREATE TABLE `user` ( + `userId` VARCHAR(50) NOT NULL, + `password` VARCHAR(50) NOT NULL, + `remove` TINYINT(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`userId`) +); + +DROP TABLE IF EXISTS `card`; + +CREATE TABLE `card` ( + `cardId` INT NOT NULL AUTO_INCREMENT, + `userId` VARCHAR(50) NOT NULL, + `cardTitle` VARCHAR(50) NOT NULL, + `cardContent` VARCHAR(255) NOT NULL, + `boardName` VARCHAR(50) NOT NULL, + `internalOrder` INT NOT NULL, + `addDateTime` TIMESTAMP NOT NULL, + `remove` TINYINT(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`cardId`), + FOREIGN KEY (`userId`) + REFERENCES `user` (`userId`) + ON UPDATE CASCADE +); + +DROP TABLE IF EXISTS `history`; + +CREATE TABLE `history` ( + `historyId` INT NOT NULL AUTO_INCREMENT, + `userId` VARCHAR(50) NOT NULL, + `actionHistory` VARCHAR(100) NOT NULL, + `actionTime` TIMESTAMP NOT NULL, + PRIMARY KEY (`historyId`), + FOREIGN KEY (`userId`) + REFERENCES `user` (`userId`) + ON UPDATE CASCADE +); diff --git a/Server/src/test/java/com/todolist/TodolistApplicationTests.java b/Server/src/test/java/com/todolist/TodolistApplicationTests.java new file mode 100644 index 000000000..e649ed2da --- /dev/null +++ b/Server/src/test/java/com/todolist/TodolistApplicationTests.java @@ -0,0 +1,13 @@ +package com.todolist; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class TodolistApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/Server/src/test/java/com/todolist/db/DBAccessTest.java b/Server/src/test/java/com/todolist/db/DBAccessTest.java new file mode 100644 index 000000000..914217804 --- /dev/null +++ b/Server/src/test/java/com/todolist/db/DBAccessTest.java @@ -0,0 +1,23 @@ +package com.todolist.db; + +import static org.assertj.core.api.Assertions.*; + +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.jdbc.core.JdbcTemplate; + +@SpringBootTest +public class DBAccessTest { + + @Autowired + private JdbcTemplate jdbcTemplate; + + @Test + void readDB() { + String sql = "SELECT count(*) FROM user"; + Integer result = jdbcTemplate.queryForObject(sql, Integer.class); + assertThat(result).isEqualTo(9); + } + +}