Skip to content

Commit

Permalink
[D83T-11] 카카오 로그인 SDK Init
Browse files Browse the repository at this point in the history
  • Loading branch information
YHKOO95 committed Feb 16, 2023
1 parent 98e3049 commit dec628c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
3 changes: 3 additions & 0 deletions presentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,7 @@ dependencies {

//opensource
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'

// 카카오 로그인
implementation "com.kakao.sdk:v2-user:2.12.1"
}
5 changes: 4 additions & 1 deletion presentation/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

-keep class com.kakao.sdk.**.model.* { <fields>; }
-keep class * extends com.google.gson.TypeAdapter
15 changes: 15 additions & 0 deletions presentation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
android:exported="true"
android:theme="@style/Theme.Bpm.NoActionBar" />

<activity
android:name="com.kakao.sdk.auth.AuthCodeHandlerActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<!-- Redirect URI: "kakao${NATIVE_APP_KEY}://oauth" -->
<data android:host="oauth"
android:scheme="kakaoced602989810575b0c1d032415db11c8" />
</intent-filter>
</activity>


<meta-data
android:name="com.kakao.sdk.AppKey"
android:value="ced602989810575b0c1d032415db11c8" />
Expand Down
8 changes: 7 additions & 1 deletion presentation/src/main/java/com/d83t/bpm/presentation/App.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.d83t.bpm.presentation

import android.app.Application
import com.kakao.sdk.common.KakaoSdk
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber

Expand All @@ -9,8 +10,13 @@ class App : Application() {

override fun onCreate() {
super.onCreate()

// 카카오 로그인을 위한 SDK 셋업
KakaoSdk.init(this, "ced602989810575b0c1d032415db11c8")

Timber.plant(Timber.DebugTree())
if(BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
}
}

}

0 comments on commit dec628c

Please sign in to comment.