diff --git a/feature/auth/build.gradle.kts b/feature/auth/build.gradle.kts index ef146125..86fbc556 100644 --- a/feature/auth/build.gradle.kts +++ b/feature/auth/build.gradle.kts @@ -32,16 +32,6 @@ android { "GOOGLE_OAUTH_CLIENT_SECRET", properties["google.oauth.client.secret"] as String ) - buildConfigField( - "String", - "DEBUG_ACCESSTOKEN", - properties["debug.access.token"] as String - ) - buildConfigField( - "String", - "DEBUG_REFRESHTOKEN", - properties["debug.refresh.token"] as String - ) } buildTypes { diff --git a/feature/auth/src/main/java/com/teamwiney/auth/login/LoginScreen.kt b/feature/auth/src/main/java/com/teamwiney/auth/login/LoginScreen.kt index 40e7ef38..137d54f4 100644 --- a/feature/auth/src/main/java/com/teamwiney/auth/login/LoginScreen.kt +++ b/feature/auth/src/main/java/com/teamwiney/auth/login/LoginScreen.kt @@ -36,8 +36,6 @@ import com.google.android.gms.common.api.ApiException import com.teamwiney.auth.login.component.SocialLoginButton import com.teamwiney.auth.login.component.SplashBackground import com.teamwiney.core.common.WineyAppState -import com.teamwiney.core.common.navigation.AuthDestinations -import com.teamwiney.core.common.navigation.HomeDestinations import com.teamwiney.core.design.R import com.teamwiney.ui.components.HeightSpacer import com.teamwiney.ui.components.dashedBorder @@ -134,22 +132,6 @@ fun LoginScreen( SocialLoginButton(drawable = R.mipmap.img_google_login) { viewModel.processEvent(LoginContract.Event.GoogleLoginButtonClicked) } - // 홈화면 테스트용 아이콘 - SocialLoginButton(drawable = R.mipmap.img_lock) { - appState.showSnackbar("홈 화면 테스트 입니다.") - viewModel.testLogin { - appState.navigate(HomeDestinations.ROUTE) { - popUpTo(AuthDestinations.Login.ROUTE) { - inclusive = true - } - } - } - } - // 회원가입 테스트용 아이콘 - SocialLoginButton(drawable = R.mipmap.img_winey_logo_title) { - appState.showSnackbar("회원가입 화면 테스트 입니다.") - appState.navigate("${AuthDestinations.SignUp.ROUTE}?userId=15") - } } Text( text = buildAnnotatedString { diff --git a/feature/auth/src/main/java/com/teamwiney/auth/login/LoginViewModel.kt b/feature/auth/src/main/java/com/teamwiney/auth/login/LoginViewModel.kt index f9d76bbb..2cdd1d02 100644 --- a/feature/auth/src/main/java/com/teamwiney/auth/login/LoginViewModel.kt +++ b/feature/auth/src/main/java/com/teamwiney/auth/login/LoginViewModel.kt @@ -20,14 +20,12 @@ import com.teamwiney.data.network.adapter.ApiResult import com.teamwiney.data.network.model.response.SocialLogin import com.teamwiney.data.repository.auth.AuthRepository import com.teamwiney.data.repository.persistence.DataStoreRepository -import com.teamwiney.feature.auth.BuildConfig import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.collectLatest import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.onStart import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking -import kotlinx.coroutines.withContext import javax.inject.Inject @HiltViewModel @@ -162,21 +160,4 @@ class LoginViewModel @Inject constructor( } } - fun testLogin(callback: () -> Unit) = viewModelScope.launch { - val accessToken = BuildConfig.DEBUG_ACCESSTOKEN - val refreshToken = BuildConfig.DEBUG_REFRESHTOKEN - - withContext(coroutineContext) { - dataStoreRepository.setStringValue( - ACCESS_TOKEN, - accessToken - ) - dataStoreRepository.setStringValue( - REFRESH_TOKEN, - refreshToken - ) - } - callback() - } - } \ No newline at end of file