From 7514d4599da2f9728a877a674150461075ed0c1c Mon Sep 17 00:00:00 2001 From: hyunji1203 Date: Sat, 16 Sep 2023 11:10:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/now/naaga/data/repository/DefaultAuthRepository.kt | 6 ++---- .../app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt b/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt index 84b17bfc1..188ccff77 100644 --- a/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt +++ b/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt @@ -6,6 +6,7 @@ import com.now.domain.repository.AuthRepository import com.now.naaga.data.local.AuthDataSource import com.now.naaga.data.mapper.toDto import com.now.naaga.data.remote.retrofit.ServicePool.authService +import com.now.naaga.util.KAKAO_LOGIN_LOG_TAG import com.now.naaga.util.getValueOrThrow import com.now.naaga.util.unlinkWithKakao import kotlinx.coroutines.CoroutineDispatcher @@ -34,15 +35,12 @@ class DefaultAuthRepository( return withContext(dispatcher) { runCatching { authService.withdrawalMember() - Log.d("test", "회원탈퇴 성공") return@withContext true }.onSuccess { unlinkWithKakao() - Log.d("test", "카카오 회원탈퇴 성공") }.onFailure { - Log.d("test", "${it.message}, ${it}") + Log.d(KAKAO_LOGIN_LOG_TAG, "${it.message}, ${it}") } - Log.d("test", "회원탈퇴 실패") return@withContext false } } diff --git a/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt b/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt index c1ace8d07..40d5f8ccf 100644 --- a/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt +++ b/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt @@ -7,7 +7,7 @@ import com.kakao.sdk.common.model.ClientError import com.kakao.sdk.common.model.ClientErrorCause import com.kakao.sdk.user.UserApiClient -private const val KAKAO_LOGIN_LOG_TAG = "kakao login" +const val KAKAO_LOGIN_LOG_TAG = "kakao login" private const val KAKAO_LOGIN_FAIL_MESSAGE = "카카오계정으로 로그인 실패" private const val KAKAO_LOGIN_SUCCESS_MESSAGE = "카카오계정으로 로그인 성공" private const val KAKAO_UNLINK_FAIL_MESSAGE = "연결 끊기 실패"