Skip to content

Commit

Permalink
refactor: 머지전 필요없는 사항 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
re4rk committed Oct 7, 2023
1 parent c42b191 commit 65c8aa5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion android/festago/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
android:name=".FestagoApplication"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.festago.festago.data.retrofit

import com.festago.festago.repository.TokenRepository
import com.kakao.sdk.auth.TokenManagerProvider
import kotlinx.coroutines.runBlocking
import javax.inject.Inject

class TokenManager @Inject constructor(
Expand All @@ -13,12 +12,10 @@ class TokenManager @Inject constructor(
get() = tokenRepository.token ?: NULL_TOKEN

fun refreshToken() {
runBlocking {
tokenRepository.refreshToken(
socialType = "KAKAO",
token = TokenManagerProvider.instance.manager.getToken()?.accessToken ?: NULL_TOKEN,
)
}
tokenRepository.refreshToken(
socialType = "KAKAO",
token = TokenManagerProvider.instance.manager.getToken()?.accessToken ?: NULL_TOKEN,
)
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ interface TokenRetrofitService {

@POST("/auth/oauth2")
suspend fun getOauthToken(
@Body oauthRequestLegacy: OauthRequest,
@Body oauthRequest: OauthRequest,
): Response<OauthTokenResponse>
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class SignInViewModelTest {
vm.signIn("testToken")

// then
println(vm.event.getValue())
assertThat(vm.event.getValue()).isExactlyInstanceOf(SignInEvent.SignInFailure::class.java)
}
}

0 comments on commit 65c8aa5

Please sign in to comment.