Skip to content

Commit

Permalink
➕[ADD] : #139 카카오 로그인을 위한 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Oct 12, 2021
1 parent de3892d commit 5ab36fc
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Resource/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
<string>278013610969-pmisnn93vofvfhk25q9a86eeu84ns1ll.apps.googleusercontent.com</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>d0dfcb0748764955e307f1a4dc9ce45c</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
Expand Down
2 changes: 2 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Source/Support/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

import UIKit
import GoogleSignIn
import KakaoSDKCommon

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

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

Expand Down
9 changes: 9 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Source/Support/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import UIKit
import KakaoSDKAuth

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

Expand All @@ -17,6 +18,14 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// 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).
}

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) {
// Called as the scene is being released by the system.
Expand Down
2 changes: 2 additions & 0 deletions ChaRo-iOS/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ target 'ChaRo-iOS' do
pod 'RxSwift', '6.2.0'
pod 'RxCocoa', '6.2.0'
pod 'GoogleSignIn'
pod 'KakaoSDKCommon'
pod 'KakaoSDKAuth'
end

17 changes: 16 additions & 1 deletion ChaRo-iOS/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ PODS:
- AppAuth/Core (~> 1.4)
- GTMSessionFetcher/Core (~> 1.5)
- GTMSessionFetcher/Core (1.5.0)
- KakaoSDKAuth (2.6.0):
- KakaoSDKCommon (= 2.6.0)
- KakaoSDKCommon (2.6.0):
- KakaoSDKCommon/Common (= 2.6.0)
- KakaoSDKCommon/Network (= 2.6.0)
- KakaoSDKCommon/Common (2.6.0)
- KakaoSDKCommon/Network (2.6.0):
- Alamofire (~> 5.1)
- KakaoSDKCommon/Common (= 2.6.0)
- Kingfisher (6.3.0)
- lottie-ios (3.2.3)
- RxCocoa (6.2.0):
Expand All @@ -28,6 +37,8 @@ PODS:
DEPENDENCIES:
- Alamofire (~> 5.4)
- GoogleSignIn
- KakaoSDKAuth
- KakaoSDKCommon
- Kingfisher (~> 6.0)
- lottie-ios
- RxCocoa (= 6.2.0)
Expand All @@ -43,6 +54,8 @@ SPEC REPOS:
- GoogleSignIn
- GTMAppAuth
- GTMSessionFetcher
- KakaoSDKAuth
- KakaoSDKCommon
- Kingfisher
- lottie-ios
- RxCocoa
Expand All @@ -58,6 +71,8 @@ SPEC CHECKSUMS:
GoogleSignIn: fd381840dbe7c1137aa6dc30849a5c3e070c034a
GTMAppAuth: ad5c2b70b9a8689e1a04033c9369c4915bfcbe89
GTMSessionFetcher: b3503b20a988c4e20cc189aa798fd18220133f52
KakaoSDKAuth: 037e6260f4468cbc3bde89a802864d6b58c5271c
KakaoSDKCommon: 38154188336a1118f1b757f0fec54ff989365ddc
Kingfisher: 6c3df386db71d82c0817a429d2c9421a77396529
lottie-ios: c058aeafa76daa4cf64d773554bccc8385d0150e
RxCocoa: 4baf94bb35f2c0ab31bc0cb9f1900155f646ba42
Expand All @@ -67,6 +82,6 @@ SPEC CHECKSUMS:
SwiftyJSON: 6faa0040f8b59dead0ee07436cbf76b73c08fd08
Then: acfe0be7e98221c6204e12f8161459606d5d822d

PODFILE CHECKSUM: 7b204eb7c5f1afc7826ada861476879a5436cfd4
PODFILE CHECKSUM: 416ad9d788c2788fd97938da1aa7e590974c3c44

COCOAPODS: 1.10.2

0 comments on commit 5ab36fc

Please sign in to comment.