diff --git a/week10hw/.DS_Store b/week10hw/.DS_Store new file mode 100644 index 0000000..af44ca4 Binary files /dev/null and b/week10hw/.DS_Store differ diff --git a/week10hw/week10hw.xcodeproj/project.pbxproj b/week10hw/week10hw.xcodeproj/project.pbxproj new file mode 100644 index 0000000..2ffb9ae --- /dev/null +++ b/week10hw/week10hw.xcodeproj/project.pbxproj @@ -0,0 +1,670 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + BBC521492C23F40F00393F0F /* week10hwApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC521482C23F40F00393F0F /* week10hwApp.swift */; }; + BBC5214D2C23F41100393F0F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BBC5214C2C23F41100393F0F /* Assets.xcassets */; }; + BBC521512C23F41100393F0F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BBC521502C23F41100393F0F /* Preview Assets.xcassets */; }; + BBC5215B2C23F41100393F0F /* week10hwTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC5215A2C23F41100393F0F /* week10hwTests.swift */; }; + BBC521652C23F41100393F0F /* week10hwUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC521642C23F41100393F0F /* week10hwUITests.swift */; }; + BBC521672C23F41100393F0F /* week10hwUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC521662C23F41100393F0F /* week10hwUITestsLaunchTests.swift */; }; + BBC5217A2C2402FE00393F0F /* LoginMainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC521792C2402FE00393F0F /* LoginMainView.swift */; }; + BBC5217C2C2413A900393F0F /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC5217B2C2413A900393F0F /* File.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + BBC521572C23F41100393F0F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BBC5213D2C23F40F00393F0F /* Project object */; + proxyType = 1; + remoteGlobalIDString = BBC521442C23F40F00393F0F; + remoteInfo = week10hw; + }; + BBC521612C23F41100393F0F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BBC5213D2C23F40F00393F0F /* Project object */; + proxyType = 1; + remoteGlobalIDString = BBC521442C23F40F00393F0F; + remoteInfo = week10hw; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + BBC521452C23F40F00393F0F /* week10hw.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = week10hw.app; sourceTree = BUILT_PRODUCTS_DIR; }; + BBC521482C23F40F00393F0F /* week10hwApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = week10hwApp.swift; sourceTree = ""; }; + BBC5214C2C23F41100393F0F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + BBC5214E2C23F41100393F0F /* week10hw.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = week10hw.entitlements; sourceTree = ""; }; + BBC521502C23F41100393F0F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + BBC521562C23F41100393F0F /* week10hwTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = week10hwTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + BBC5215A2C23F41100393F0F /* week10hwTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = week10hwTests.swift; sourceTree = ""; }; + BBC521602C23F41100393F0F /* week10hwUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = week10hwUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + BBC521642C23F41100393F0F /* week10hwUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = week10hwUITests.swift; sourceTree = ""; }; + BBC521662C23F41100393F0F /* week10hwUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = week10hwUITestsLaunchTests.swift; sourceTree = ""; }; + BBC521772C23F82400393F0F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + BBC521792C2402FE00393F0F /* LoginMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginMainView.swift; sourceTree = ""; }; + BBC5217B2C2413A900393F0F /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BBC521422C23F40F00393F0F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC521532C23F41100393F0F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC5215D2C23F41100393F0F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BBC5213C2C23F40F00393F0F = { + isa = PBXGroup; + children = ( + BBC521472C23F40F00393F0F /* week10hw */, + BBC521592C23F41100393F0F /* week10hwTests */, + BBC521632C23F41100393F0F /* week10hwUITests */, + BBC521462C23F40F00393F0F /* Products */, + ); + sourceTree = ""; + }; + BBC521462C23F40F00393F0F /* Products */ = { + isa = PBXGroup; + children = ( + BBC521452C23F40F00393F0F /* week10hw.app */, + BBC521562C23F41100393F0F /* week10hwTests.xctest */, + BBC521602C23F41100393F0F /* week10hwUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + BBC521472C23F40F00393F0F /* week10hw */ = { + isa = PBXGroup; + children = ( + BBC521772C23F82400393F0F /* Info.plist */, + BBC521732C23F4A900393F0F /* KakaoLogin */, + BBC521482C23F40F00393F0F /* week10hwApp.swift */, + BBC5214C2C23F41100393F0F /* Assets.xcassets */, + BBC5214E2C23F41100393F0F /* week10hw.entitlements */, + BBC5214F2C23F41100393F0F /* Preview Content */, + ); + path = week10hw; + sourceTree = ""; + }; + BBC5214F2C23F41100393F0F /* Preview Content */ = { + isa = PBXGroup; + children = ( + BBC521502C23F41100393F0F /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + BBC521592C23F41100393F0F /* week10hwTests */ = { + isa = PBXGroup; + children = ( + BBC5215A2C23F41100393F0F /* week10hwTests.swift */, + ); + path = week10hwTests; + sourceTree = ""; + }; + BBC521632C23F41100393F0F /* week10hwUITests */ = { + isa = PBXGroup; + children = ( + BBC521642C23F41100393F0F /* week10hwUITests.swift */, + BBC521662C23F41100393F0F /* week10hwUITestsLaunchTests.swift */, + ); + path = week10hwUITests; + sourceTree = ""; + }; + BBC521732C23F4A900393F0F /* KakaoLogin */ = { + isa = PBXGroup; + children = ( + BBC521762C23F4D900393F0F /* Model */, + BBC521752C23F4CF00393F0F /* ViewModel */, + BBC521742C23F4C200393F0F /* View */, + ); + path = KakaoLogin; + sourceTree = ""; + }; + BBC521742C23F4C200393F0F /* View */ = { + isa = PBXGroup; + children = ( + BBC521792C2402FE00393F0F /* LoginMainView.swift */, + ); + path = View; + sourceTree = ""; + }; + BBC521752C23F4CF00393F0F /* ViewModel */ = { + isa = PBXGroup; + children = ( + BBC5217B2C2413A900393F0F /* File.swift */, + ); + path = ViewModel; + sourceTree = ""; + }; + BBC521762C23F4D900393F0F /* Model */ = { + isa = PBXGroup; + children = ( + ); + path = Model; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + BBC521442C23F40F00393F0F /* week10hw */ = { + isa = PBXNativeTarget; + buildConfigurationList = BBC5216A2C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hw" */; + buildPhases = ( + BBC521412C23F40F00393F0F /* Sources */, + BBC521422C23F40F00393F0F /* Frameworks */, + BBC521432C23F40F00393F0F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = week10hw; + productName = week10hw; + productReference = BBC521452C23F40F00393F0F /* week10hw.app */; + productType = "com.apple.product-type.application"; + }; + BBC521552C23F41100393F0F /* week10hwTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = BBC5216D2C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hwTests" */; + buildPhases = ( + BBC521522C23F41100393F0F /* Sources */, + BBC521532C23F41100393F0F /* Frameworks */, + BBC521542C23F41100393F0F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + BBC521582C23F41100393F0F /* PBXTargetDependency */, + ); + name = week10hwTests; + productName = week10hwTests; + productReference = BBC521562C23F41100393F0F /* week10hwTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + BBC5215F2C23F41100393F0F /* week10hwUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = BBC521702C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hwUITests" */; + buildPhases = ( + BBC5215C2C23F41100393F0F /* Sources */, + BBC5215D2C23F41100393F0F /* Frameworks */, + BBC5215E2C23F41100393F0F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + BBC521622C23F41100393F0F /* PBXTargetDependency */, + ); + name = week10hwUITests; + productName = week10hwUITests; + productReference = BBC521602C23F41100393F0F /* week10hwUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BBC5213D2C23F40F00393F0F /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + BBC521442C23F40F00393F0F = { + CreatedOnToolsVersion = 15.2; + }; + BBC521552C23F41100393F0F = { + CreatedOnToolsVersion = 15.2; + TestTargetID = BBC521442C23F40F00393F0F; + }; + BBC5215F2C23F41100393F0F = { + CreatedOnToolsVersion = 15.2; + TestTargetID = BBC521442C23F40F00393F0F; + }; + }; + }; + buildConfigurationList = BBC521402C23F40F00393F0F /* Build configuration list for PBXProject "week10hw" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = BBC5213C2C23F40F00393F0F; + packageReferences = ( + BBC521782C23F9DF00393F0F /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */, + ); + productRefGroup = BBC521462C23F40F00393F0F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BBC521442C23F40F00393F0F /* week10hw */, + BBC521552C23F41100393F0F /* week10hwTests */, + BBC5215F2C23F41100393F0F /* week10hwUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BBC521432C23F40F00393F0F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BBC521512C23F41100393F0F /* Preview Assets.xcassets in Resources */, + BBC5214D2C23F41100393F0F /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC521542C23F41100393F0F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC5215E2C23F41100393F0F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + BBC521412C23F40F00393F0F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BBC521492C23F40F00393F0F /* week10hwApp.swift in Sources */, + BBC5217C2C2413A900393F0F /* File.swift in Sources */, + BBC5217A2C2402FE00393F0F /* LoginMainView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC521522C23F41100393F0F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BBC5215B2C23F41100393F0F /* week10hwTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BBC5215C2C23F41100393F0F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BBC521672C23F41100393F0F /* week10hwUITestsLaunchTests.swift in Sources */, + BBC521652C23F41100393F0F /* week10hwUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + BBC521582C23F41100393F0F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = BBC521442C23F40F00393F0F /* week10hw */; + targetProxy = BBC521572C23F41100393F0F /* PBXContainerItemProxy */; + }; + BBC521622C23F41100393F0F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = BBC521442C23F40F00393F0F /* week10hw */; + targetProxy = BBC521612C23F41100393F0F /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + BBC521682C23F41100393F0F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + BBC521692C23F41100393F0F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + BBC5216B2C23F41100393F0F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = week10hw/week10hw.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"week10hw/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = week10hw/Info.plist; + INFOPLIST_KEY_LSApplicationCategoryType = ""; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hw; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BBC5216C2C23F41100393F0F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = week10hw/week10hw.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"week10hw/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = week10hw/Info.plist; + INFOPLIST_KEY_LSApplicationCategoryType = ""; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hw; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + BBC5216E2C23F41100393F0F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hwTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/week10hw.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/week10hw"; + }; + name = Debug; + }; + BBC5216F2C23F41100393F0F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hwTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/week10hw.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/week10hw"; + }; + name = Release; + }; + BBC521712C23F41100393F0F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hwUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = week10hw; + }; + name = Debug; + }; + BBC521722C23F41100393F0F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.umc6.study.week10hwUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = week10hw; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BBC521402C23F40F00393F0F /* Build configuration list for PBXProject "week10hw" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BBC521682C23F41100393F0F /* Debug */, + BBC521692C23F41100393F0F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BBC5216A2C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hw" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BBC5216B2C23F41100393F0F /* Debug */, + BBC5216C2C23F41100393F0F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BBC5216D2C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hwTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BBC5216E2C23F41100393F0F /* Debug */, + BBC5216F2C23F41100393F0F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BBC521702C23F41100393F0F /* Build configuration list for PBXNativeTarget "week10hwUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BBC521712C23F41100393F0F /* Debug */, + BBC521722C23F41100393F0F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + BBC521782C23F9DF00393F0F /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/kakao/kakao-ios-sdk"; + requirement = { + branch = master; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + }; + rootObject = BBC5213D2C23F40F00393F0F /* Project object */; +} diff --git a/week10hw/week10hw.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/week10hw/week10hw.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/week10hw/week10hw.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..7ba55ee --- /dev/null +++ b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,23 @@ +{ + "pins" : [ + { + "identity" : "alamofire", + "kind" : "remoteSourceControl", + "location" : "https://github.com/Alamofire/Alamofire.git", + "state" : { + "revision" : "f455c2975872ccd2d9c81594c658af65716e9b9a", + "version" : "5.9.1" + } + }, + { + "identity" : "kakao-ios-sdk", + "kind" : "remoteSourceControl", + "location" : "https://github.com/kakao/kakao-ios-sdk", + "state" : { + "branch" : "master", + "revision" : "9f9b830dfd7ee66607c6fddcfeb1a6bc07e48714" + } + } + ], + "version" : 2 +} diff --git a/week10hw/week10hw.xcodeproj/project.xcworkspace/xcuserdata/jy_lee.xcuserdatad/UserInterfaceState.xcuserstate b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcuserdata/jy_lee.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..dba0697 Binary files /dev/null and b/week10hw/week10hw.xcodeproj/project.xcworkspace/xcuserdata/jy_lee.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/week10hw/week10hw.xcodeproj/xcuserdata/jy_lee.xcuserdatad/xcschemes/xcschememanagement.plist b/week10hw/week10hw.xcodeproj/xcuserdata/jy_lee.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..ab8d723 --- /dev/null +++ b/week10hw/week10hw.xcodeproj/xcuserdata/jy_lee.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + week10hw.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/week10hw/week10hw/Assets.xcassets/AccentColor.colorset/Contents.json b/week10hw/week10hw/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/week10hw/week10hw/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10hw/week10hw/Assets.xcassets/AppIcon.appiconset/Contents.json b/week10hw/week10hw/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..532cd72 --- /dev/null +++ b/week10hw/week10hw/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,63 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10hw/week10hw/Assets.xcassets/Contents.json b/week10hw/week10hw/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/week10hw/week10hw/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10hw/week10hw/Info.plist b/week10hw/week10hw/Info.plist new file mode 100644 index 0000000..d57a5a7 --- /dev/null +++ b/week10hw/week10hw/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLSchemes + + kakao768d9c4c82cd61674d837f10b98ed25b + + + + LSApplicationQueriesSchemes + + kakaokompassauth + kakaolink + kakaoplus + kakaotalk + + + diff --git a/week10hw/week10hw/KakaoLogin/View/LoginMainView.swift b/week10hw/week10hw/KakaoLogin/View/LoginMainView.swift new file mode 100644 index 0000000..df493d6 --- /dev/null +++ b/week10hw/week10hw/KakaoLogin/View/LoginMainView.swift @@ -0,0 +1,67 @@ +// +// LoginMainView.swift +// week10hw +// +// Created by 이재용 on 6/20/24. +// +import SwiftUI +import KakaoSDKAuth +import KakaoSDKUser + +struct ContentView: View { + @State private var isLoggedIn: Bool = false + @State private var userInfo: String = "" + + var body: some View { + VStack { + if isLoggedIn { + Text("User Info: \(userInfo)") + } else { + Button(action: { + loginWithKakao() + }) { + Text("Login with Kakao") + .padding() + .background(Color.yellow) + .foregroundColor(.black) + .cornerRadius(10) + } + } + } + .padding() + } + + func loginWithKakao() { + if UserApi.isKakaoTalkLoginAvailable() { + UserApi.shared.loginWithKakaoTalk { (oauthToken, error) in + if let error = error { + print(error) + } else { + print("loginWithKakaoTalk() success.") + getUserInfo() + } + } + } else { + UserApi.shared.loginWithKakaoAccount { (oauthToken, error) in + if let error = error { + print(error) + } else { + print("loginWithKakaoAccount() success.") + getUserInfo() + } + } + } + } + + func getUserInfo() { + UserApi.shared.me { (user, error) in + if let error = error { + print(error) + } else { + print("User info: \(String(describing: user))") + isLoggedIn = true + userInfo = user?.kakaoAccount?.profile?.nickname ?? "No Name" + } + } + } +} diff --git a/week10hw/week10hw/KakaoLogin/ViewModel/File.swift b/week10hw/week10hw/KakaoLogin/ViewModel/File.swift new file mode 100644 index 0000000..c1e868b --- /dev/null +++ b/week10hw/week10hw/KakaoLogin/ViewModel/File.swift @@ -0,0 +1,36 @@ +import SwiftUI +import KakaoSDKCommon +import KakaoSDKAuth +import KakaoSDKUser + +struct KakaoSigninButton: View{ + var body: some View{ + Button { + if (UserApi.isKakaoTalkLoginAvailable()) { + UserApi.shared.loginWithKakaoTalk {(oauthToken, error) in + if let error = error { + print(error) + } + if let oauthToken = oauthToken{ + // 소셜 로그인(회원가입 API CALL) + } + } + } else { + UserApi.shared.loginWithKakaoAccount {(oauthToken, error) in + if let error = error { + print(error) + } + if let oauthToken = oauthToken{ + print("kakao success") + // 소셜 로그인(회원가입 API CALL) + } + } + } + } label : { + Image("kakao_login_large_wide") + .resizable() + .aspectRatio(contentMode: .fit) + .frame(width : UIScreen.main.bounds.width * 0.9) + } + } +} diff --git a/week10hw/week10hw/Preview Content/Preview Assets.xcassets/Contents.json b/week10hw/week10hw/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/week10hw/week10hw/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10hw/week10hw/week10hw.entitlements b/week10hw/week10hw/week10hw.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/week10hw/week10hw/week10hw.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/week10hw/week10hw/week10hwApp.swift b/week10hw/week10hw/week10hwApp.swift new file mode 100644 index 0000000..f0d0862 --- /dev/null +++ b/week10hw/week10hw/week10hwApp.swift @@ -0,0 +1,29 @@ +// +// week10hwApp.swift +// week10hw +// +// Created by 이재용 on 6/20/24. +// + +import SwiftUI +import KakaoSDKCommon +import KakaoSDKAuth + +@main +struct week10hwApp: App { + init() { + // Kakao SDK 초기화 + KakaoSDK.initSDK(appKey: "768d9c4c82cd61674d837f10b98ed25b") + + } + var body: some Scene { + WindowGroup { + // onOpenURL()을 사용해 커스텀 URL 스킴 처리 + ContentView().onOpenURL(perform: { url in + if (AuthApi.isKakaoTalkLoginUrl(url)) { + AuthController.handleOpenUrl(url: url) + } + }) + } + } +} diff --git a/week10hw/week10hwTests/week10hwTests.swift b/week10hw/week10hwTests/week10hwTests.swift new file mode 100644 index 0000000..76e0972 --- /dev/null +++ b/week10hw/week10hwTests/week10hwTests.swift @@ -0,0 +1,35 @@ +// +// week10hwTests.swift +// week10hwTests +// +// Created by 이재용 on 6/20/24. +// + +import XCTest + +final class week10hwTests: 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. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/week10hw/week10hwUITests/week10hwUITests.swift b/week10hw/week10hwUITests/week10hwUITests.swift new file mode 100644 index 0000000..07ad38d --- /dev/null +++ b/week10hw/week10hwUITests/week10hwUITests.swift @@ -0,0 +1,41 @@ +// +// week10hwUITests.swift +// week10hwUITests +// +// Created by 이재용 on 6/20/24. +// + +import XCTest + +final class week10hwUITests: 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 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/week10hw/week10hwUITests/week10hwUITestsLaunchTests.swift b/week10hw/week10hwUITests/week10hwUITestsLaunchTests.swift new file mode 100644 index 0000000..d89b3f8 --- /dev/null +++ b/week10hw/week10hwUITests/week10hwUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// week10hwUITestsLaunchTests.swift +// week10hwUITests +// +// Created by 이재용 on 6/20/24. +// + +import XCTest + +final class week10hwUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}