Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 148 additions & 14 deletions iOS_Study_A.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,51 @@
954B6B612AC57BE100FDCFAB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B602AC57BE100FDCFAB /* AppDelegate.swift */; };
954B6B632AC57BE100FDCFAB /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */; };
954B6B652AC57BE100FDCFAB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B642AC57BE100FDCFAB /* ViewController.swift */; };
954B6B682AC57BE100FDCFAB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B662AC57BE100FDCFAB /* Main.storyboard */; };
954B6B6A2AC57BE200FDCFAB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B692AC57BE200FDCFAB /* Assets.xcassets */; };
954B6B6D2AC57BE200FDCFAB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */; };
DFB412F62B00F23100DA60B7 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = DFB412F52B00F23100DA60B7 /* SnapKit */; };
DFB412F92B032BB900DA60B7 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = DFB412F82B032BB900DA60B7 /* Alamofire */; };
DFB412FC2B03803100DA60B7 /* CombineMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DFB412FB2B03803100DA60B7 /* CombineMoya */; };
DFB412FE2B03803100DA60B7 /* Moya in Frameworks */ = {isa = PBXBuildFile; productRef = DFB412FD2B03803100DA60B7 /* Moya */; };
DFB413002B03803100DA60B7 /* ReactiveMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DFB412FF2B03803100DA60B7 /* ReactiveMoya */; };
DFB413022B03803100DA60B7 /* RxMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DFB413012B03803100DA60B7 /* RxMoya */; };
DFB413052B0460E400DA60B7 /* KakaoSDK in Frameworks */ = {isa = PBXBuildFile; productRef = DFB413042B0460E400DA60B7 /* KakaoSDK */; };
DFB413072B0460E400DA60B7 /* KakaoSDKAuth in Frameworks */ = {isa = PBXBuildFile; productRef = DFB413062B0460E400DA60B7 /* KakaoSDKAuth */; };
DFB413092B0460E400DA60B7 /* KakaoSDKCert in Frameworks */ = {isa = PBXBuildFile; productRef = DFB413082B0460E400DA60B7 /* KakaoSDKCert */; };
DFB4130B2B0460E400DA60B7 /* KakaoSDKCertCore in Frameworks */ = {isa = PBXBuildFile; productRef = DFB4130A2B0460E400DA60B7 /* KakaoSDKCertCore */; };
DFB4130D2B0460E400DA60B7 /* KakaoSDKCommon in Frameworks */ = {isa = PBXBuildFile; productRef = DFB4130C2B0460E400DA60B7 /* KakaoSDKCommon */; };
DFB4130F2B0460E400DA60B7 /* KakaoSDKUser in Frameworks */ = {isa = PBXBuildFile; productRef = DFB4130E2B0460E400DA60B7 /* KakaoSDKUser */; };
DFB413112B0472B400DA60B7 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFB413102B0472B400DA60B7 /* SecondViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
954B6B5D2AC57BE100FDCFAB /* iOS_Study_A.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS_Study_A.app; sourceTree = BUILT_PRODUCTS_DIR; };
954B6B602AC57BE100FDCFAB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
954B6B642AC57BE100FDCFAB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
954B6B672AC57BE100FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
954B6B692AC57BE200FDCFAB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
954B6B6C2AC57BE200FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
954B6B6E2AC57BE200FDCFAB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DFB413102B0472B400DA60B7 /* SecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
954B6B5A2AC57BE100FDCFAB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DFB413092B0460E400DA60B7 /* KakaoSDKCert in Frameworks */,
DFB4130D2B0460E400DA60B7 /* KakaoSDKCommon in Frameworks */,
DFB413022B03803100DA60B7 /* RxMoya in Frameworks */,
DFB4130B2B0460E400DA60B7 /* KakaoSDKCertCore in Frameworks */,
DFB412F62B00F23100DA60B7 /* SnapKit in Frameworks */,
DFB412F92B032BB900DA60B7 /* Alamofire in Frameworks */,
DFB412FE2B03803100DA60B7 /* Moya in Frameworks */,
DFB413002B03803100DA60B7 /* ReactiveMoya in Frameworks */,
DFB4130F2B0460E400DA60B7 /* KakaoSDKUser in Frameworks */,
DFB412FC2B03803100DA60B7 /* CombineMoya in Frameworks */,
DFB413052B0460E400DA60B7 /* KakaoSDK in Frameworks */,
DFB413072B0460E400DA60B7 /* KakaoSDKAuth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -59,7 +83,7 @@
954B6B602AC57BE100FDCFAB /* AppDelegate.swift */,
954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */,
954B6B642AC57BE100FDCFAB /* ViewController.swift */,
954B6B662AC57BE100FDCFAB /* Main.storyboard */,
DFB413102B0472B400DA60B7 /* SecondViewController.swift */,
954B6B692AC57BE200FDCFAB /* Assets.xcassets */,
954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */,
954B6B6E2AC57BE200FDCFAB /* Info.plist */,
Expand All @@ -83,6 +107,20 @@
dependencies = (
);
name = iOS_Study_A;
packageProductDependencies = (
DFB412F52B00F23100DA60B7 /* SnapKit */,
DFB412F82B032BB900DA60B7 /* Alamofire */,
DFB412FB2B03803100DA60B7 /* CombineMoya */,
DFB412FD2B03803100DA60B7 /* Moya */,
DFB412FF2B03803100DA60B7 /* ReactiveMoya */,
DFB413012B03803100DA60B7 /* RxMoya */,
DFB413042B0460E400DA60B7 /* KakaoSDK */,
DFB413062B0460E400DA60B7 /* KakaoSDKAuth */,
DFB413082B0460E400DA60B7 /* KakaoSDKCert */,
DFB4130A2B0460E400DA60B7 /* KakaoSDKCertCore */,
DFB4130C2B0460E400DA60B7 /* KakaoSDKCommon */,
DFB4130E2B0460E400DA60B7 /* KakaoSDKUser */,
);
productName = iOS_Study_A;
productReference = 954B6B5D2AC57BE100FDCFAB /* iOS_Study_A.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -111,6 +149,12 @@
Base,
);
mainGroup = 954B6B542AC57BE100FDCFAB;
packageReferences = (
DFB412F42B00F23100DA60B7 /* XCRemoteSwiftPackageReference "SnapKit" */,
DFB412F72B032BB900DA60B7 /* XCRemoteSwiftPackageReference "Alamofire" */,
DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */,
DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */,
);
productRefGroup = 954B6B5E2AC57BE100FDCFAB /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -127,7 +171,6 @@
files = (
954B6B6D2AC57BE200FDCFAB /* LaunchScreen.storyboard in Resources */,
954B6B6A2AC57BE200FDCFAB /* Assets.xcassets in Resources */,
954B6B682AC57BE100FDCFAB /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -138,6 +181,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DFB413112B0472B400DA60B7 /* SecondViewController.swift in Sources */,
954B6B652AC57BE100FDCFAB /* ViewController.swift in Sources */,
954B6B612AC57BE100FDCFAB /* AppDelegate.swift in Sources */,
954B6B632AC57BE100FDCFAB /* SceneDelegate.swift in Sources */,
Expand All @@ -147,14 +191,6 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
954B6B662AC57BE100FDCFAB /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
954B6B672AC57BE100FDCFAB /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -285,13 +321,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iOS_Study_A/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -312,13 +348,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iOS_Study_A/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -356,6 +392,104 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
DFB412F42B00F23100DA60B7 /* XCRemoteSwiftPackageReference "SnapKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/SnapKit/SnapKit.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.0.0;
};
};
DFB412F72B032BB900DA60B7 /* XCRemoteSwiftPackageReference "Alamofire" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Alamofire/Alamofire.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.0.0;
};
};
DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Moya/Moya.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 15.0.0;
};
};
DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/kakao/kakao-ios-sdk";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
DFB412F52B00F23100DA60B7 /* SnapKit */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412F42B00F23100DA60B7 /* XCRemoteSwiftPackageReference "SnapKit" */;
productName = SnapKit;
};
DFB412F82B032BB900DA60B7 /* Alamofire */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412F72B032BB900DA60B7 /* XCRemoteSwiftPackageReference "Alamofire" */;
productName = Alamofire;
};
DFB412FB2B03803100DA60B7 /* CombineMoya */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */;
productName = CombineMoya;
};
DFB412FD2B03803100DA60B7 /* Moya */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */;
productName = Moya;
};
DFB412FF2B03803100DA60B7 /* ReactiveMoya */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */;
productName = ReactiveMoya;
};
DFB413012B03803100DA60B7 /* RxMoya */ = {
isa = XCSwiftPackageProductDependency;
package = DFB412FA2B03803000DA60B7 /* XCRemoteSwiftPackageReference "Moya" */;
productName = RxMoya;
};
DFB413042B0460E400DA60B7 /* KakaoSDK */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDK;
};
DFB413062B0460E400DA60B7 /* KakaoSDKAuth */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDKAuth;
};
DFB413082B0460E400DA60B7 /* KakaoSDKCert */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDKCert;
};
DFB4130A2B0460E400DA60B7 /* KakaoSDKCertCore */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDKCertCore;
};
DFB4130C2B0460E400DA60B7 /* KakaoSDKCommon */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDKCommon;
};
DFB4130E2B0460E400DA60B7 /* KakaoSDKUser */ = {
isa = XCSwiftPackageProductDependency;
package = DFB413032B0460E400DA60B7 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */;
productName = KakaoSDKUser;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 954B6B552AC57BE100FDCFAB /* Project object */;
}
4 changes: 4 additions & 0 deletions iOS_Study_A/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//

import UIKit
import KakaoSDKCommon
import KakaoSDKAuth
import KakaoSDKUser

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -14,6 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
//KakaoSDK.initSDK(appKey: "6991dad04e23fc94a5f6375804b13ae0")
return true
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "kakao_login_medium_narrow.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions iOS_Study_A/Base.lproj/Main.storyboard

This file was deleted.

2 changes: 0 additions & 2 deletions iOS_Study_A/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
Expand Down
28 changes: 26 additions & 2 deletions iOS_Study_A/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,41 @@
//

import UIKit
import KakaoSDKCommon
import KakaoSDKAuth
import KakaoSDKUser

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

var window: UIWindow?


func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
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 }

guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(windowScene: windowScene) // SceneDelegate의 프로퍼티에 설정해줌
let mainViewController = ViewController() // 맨 처음 보여줄 ViewController
KakaoSDK.initSDK(appKey: "6991dad04e23fc94a5f6375804b13ae0")
window?.rootViewController = mainViewController
window?.makeKeyAndVisible()
/*if let url = URLContexts.first?.url {
if (AuthApi.isKakaoTalkLoginUrl(url)) {
_ = AuthController.handleOpenUrl(url: url)
}
}*/
}

func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
if let url = URLContexts.first?.url {
if (AuthApi.isKakaoTalkLoginUrl(url)) {

_ = AuthController.handleOpenUrl(url: url)
}
}
}

func sceneDidDisconnect(_ scene: UIScene) {
Expand Down
Loading