Skip to content

[Feat] #7 - 카카오 로그인 구현 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 6, 2022
Merged
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
Binary file added .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions Practice-JH/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Practice-JH' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Practice-JH
pod 'KakaoSDKUser' # 카카오 로그인
pod 'KakaoSDKUser' # 사용자 관리
Comment on lines +9 to +10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# 전체 추가
pod 'KakaoSDK'

# or

# 필요한 모듈 추가
pod 'KakaoSDKCommon'  # 필수 요소를 담은 공통 모듈
pod 'KakaoSDKAuth'  # 사용자 인증
pod 'KakaoSDKUser'  # 카카오 로그인, 사용자 관리
pod 'KakaoSDKTalk'  # 친구, 메시지(카카오톡)
pod 'KakaoSDKStory'  # 카카오스토리 
pod 'KakaoSDKLink'  # 메시지(카카오링크)
pod 'KakaoSDKTemplate'  # 메시지 템플릿 
pod 'KakaoSDKNavi'  # 카카오내비

이렇다구 하는데
사용자 인증 역할을 하는 'KakaoSDKAuth' 도 필요해요!

그런데 KakaoSDKUser 만 적어줘도 auth, common, user 이렇게 세개가 인스톨되더라구요 그래서 정상적으로 임포트를 할 수 있었던 것 같습니당!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아아 이런 실수를,,,,ㅋㅋㅋㅋㅋㅋㅋ...
그래도 덕분에 kakaoSDKUser를 임포트하면 auth, common, user가 인스톨된다는 점 알아갑니다!

pod 'KakaoSDKCommon'

end
34 changes: 34 additions & 0 deletions Practice-JH/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
PODS:
- Alamofire (5.4.4)
- KakaoSDKAuth (2.8.4):
- KakaoSDKCommon (= 2.8.4)
- KakaoSDKCommon (2.8.4):
- KakaoSDKCommon/Common (= 2.8.4)
- KakaoSDKCommon/Network (= 2.8.4)
- KakaoSDKCommon/Common (2.8.4)
- KakaoSDKCommon/Network (2.8.4):
- Alamofire (~> 5.1)
- KakaoSDKCommon/Common (= 2.8.4)
- KakaoSDKUser (2.8.4):
- KakaoSDKAuth (= 2.8.4)

DEPENDENCIES:
- KakaoSDKCommon
- KakaoSDKUser

SPEC REPOS:
trunk:
- Alamofire
- KakaoSDKAuth
- KakaoSDKCommon
- KakaoSDKUser

SPEC CHECKSUMS:
Alamofire: f3b09a368f1582ab751b3fff5460276e0d2cf5c9
KakaoSDKAuth: b9b693995f98b1821ccd22b39d383e1dede5ca45
KakaoSDKCommon: 33c9902ee9ce13e9d1cac3549896406229836ff5
KakaoSDKUser: d878977e0ba6b365cfeac3b6319cdf4231713bea

PODFILE CHECKSUM: cf4a938ceb4415e66e1c9c249ea342ba3f940cc0

COCOAPODS: 1.11.2
74 changes: 74 additions & 0 deletions Practice-JH/Practice-JH.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
objects = {

/* Begin PBXBuildFile section */
8E1581A0D8B8074E5094BDB5 /* Pods_Practice_JH.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3C2104A10DF938CAC0A82CE /* Pods_Practice_JH.framework */; };
EB88494627857B4B008823B7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB88494527857B4B008823B7 /* AppDelegate.swift */; };
EB88494827857B4B008823B7 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB88494727857B4B008823B7 /* SceneDelegate.swift */; };
EB88494A27857B4B008823B7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB88494927857B4B008823B7 /* ViewController.swift */; };
EB88494D27857B4B008823B7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EB88494B27857B4B008823B7 /* Main.storyboard */; };
EB88494F27857B50008823B7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EB88494E27857B50008823B7 /* Assets.xcassets */; };
EB88495227857B50008823B7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EB88495027857B50008823B7 /* LaunchScreen.storyboard */; };
EB88495E2786110A008823B7 /* LogoutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EB88495D2786110A008823B7 /* LogoutViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
828D371EE834245581318F0A /* Pods-Practice-JH.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Practice-JH.debug.xcconfig"; path = "Target Support Files/Pods-Practice-JH/Pods-Practice-JH.debug.xcconfig"; sourceTree = "<group>"; };
AD647D329912BCC2792AB3E1 /* Pods-Practice-JH.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Practice-JH.release.xcconfig"; path = "Target Support Files/Pods-Practice-JH/Pods-Practice-JH.release.xcconfig"; sourceTree = "<group>"; };
EB88494227857B4B008823B7 /* Practice-JH.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Practice-JH.app"; sourceTree = BUILT_PRODUCTS_DIR; };
EB88494527857B4B008823B7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
EB88494727857B4B008823B7 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -24,24 +28,46 @@
EB88494E27857B50008823B7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
EB88495127857B50008823B7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
EB88495327857B50008823B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
EB88495D2786110A008823B7 /* LogoutViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LogoutViewController.swift; sourceTree = "<group>"; };
F3C2104A10DF938CAC0A82CE /* Pods_Practice_JH.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Practice_JH.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
EB88493F27857B4B008823B7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8E1581A0D8B8074E5094BDB5 /* Pods_Practice_JH.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3E3400FD94D14F9E4BE91DD5 /* Frameworks */ = {
isa = PBXGroup;
children = (
F3C2104A10DF938CAC0A82CE /* Pods_Practice_JH.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
A526E27AB755AE205A8948D9 /* Pods */ = {
isa = PBXGroup;
children = (
828D371EE834245581318F0A /* Pods-Practice-JH.debug.xcconfig */,
AD647D329912BCC2792AB3E1 /* Pods-Practice-JH.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
EB88493927857B4B008823B7 = {
isa = PBXGroup;
children = (
EB88494427857B4B008823B7 /* Practice-JH */,
EB88494327857B4B008823B7 /* Products */,
A526E27AB755AE205A8948D9 /* Pods */,
3E3400FD94D14F9E4BE91DD5 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -60,6 +86,7 @@
EB88494727857B4B008823B7 /* SceneDelegate.swift */,
EB88494927857B4B008823B7 /* ViewController.swift */,
EB88494B27857B4B008823B7 /* Main.storyboard */,
EB88495D2786110A008823B7 /* LogoutViewController.swift */,
EB88494E27857B50008823B7 /* Assets.xcassets */,
EB88495027857B50008823B7 /* LaunchScreen.storyboard */,
EB88495327857B50008823B7 /* Info.plist */,
Expand All @@ -74,9 +101,11 @@
isa = PBXNativeTarget;
buildConfigurationList = EB88495627857B50008823B7 /* Build configuration list for PBXNativeTarget "Practice-JH" */;
buildPhases = (
64587BB89F072E2CFAF504A4 /* [CP] Check Pods Manifest.lock */,
EB88493E27857B4B008823B7 /* Sources */,
EB88493F27857B4B008823B7 /* Frameworks */,
EB88494027857B4B008823B7 /* Resources */,
18D53F76EB09A96547BC8834 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -133,13 +162,56 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
18D53F76EB09A96547BC8834 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Practice-JH/Pods-Practice-JH-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Practice-JH/Pods-Practice-JH-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Practice-JH/Pods-Practice-JH-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
64587BB89F072E2CFAF504A4 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Practice-JH-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
EB88493E27857B4B008823B7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EB88494A27857B4B008823B7 /* ViewController.swift in Sources */,
EB88494627857B4B008823B7 /* AppDelegate.swift in Sources */,
EB88495E2786110A008823B7 /* LogoutViewController.swift in Sources */,
EB88494827857B4B008823B7 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -284,6 +356,7 @@
};
EB88495727857B50008823B7 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 828D371EE834245581318F0A /* Pods-Practice-JH.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down Expand Up @@ -312,6 +385,7 @@
};
EB88495827857B50008823B7 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = AD647D329912BCC2792AB3E1 /* Pods-Practice-JH.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Practice-JH.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Practice-JH/Practice-JH.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
3 changes: 3 additions & 0 deletions Practice-JH/Practice-JH/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import UIKit
import KakaoSDKCommon

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -14,6 +15,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

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

return true
}

Expand Down
Loading