Skip to content

Commit

Permalink
feat : Onboarding skip
Browse files Browse the repository at this point in the history
온보딩을 한번 확인했다면 스킵
  • Loading branch information
kkh725 committed Aug 22, 2024
1 parent 60c21d2 commit 30792c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
minSdk = 26
targetSdk = 34
versionCode = 4 //todo 릴리즈 생성마다 +1
versionName = "1.0.0"
versionName = "1.0.1" //1번수정
//git ignore 용입니다.
//구글 네이티브 앱 키
buildConfigField(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ fun WriteCompleteBox(type: String) {
GlideImage(
model = imageUrl, contentDescription = "", modifier = Modifier
.weight(2f)
.height(210.dp)
)
Column(
horizontalAlignment = Alignment.CenterHorizontally,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class MyLogViewModel @Inject constructor(
Log.d("essaylist data", response.body()!!.path + response.body()!!.data)

if (response.isSuccessful) {
Token.accessToken = response.headers()["authorization"]?.takeIf { it.isNotEmpty() } ?: Token.accessToken
Token.accessToken = response.headers()["authorization"]?.takeIf { it.isNotEmpty() } ?: Token.accessToken

response.body()!!.data.essays.forEach { essay ->
// publishedEssayList에 이미 해당 essay가 존재하는지 확인
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ class SettingsViewModel @Inject constructor(
val response = userApi.requestBadgeLevelUp(bearerAccessToken,Token.refreshToken, badgeId)
Log.d(TAG, "requestBadgeLevelUp: ${Token.accessToken}")

Token.accessToken = response.headers()["authorization"]?.takeIf { it.isNotEmpty() } ?: Token.accessToken
Token.accessToken = response.headers()["authorization"]?.takeIf { it.isNotEmpty() } ?: Token.accessToken

if (response.body()!!.success){
isLevelUpSuccess = true
delay(1000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ class WritingViewModel @Inject constructor(
tags = hashTagList
)
val response = essayApi.writeEssay(bearerAccessToken, Token.refreshToken,essayData = essayData)
Token.accessToken = response.headers()["authorization"]?.takeIf { it.isNotEmpty() } ?: Token.accessToken

if (response.isSuccessful) {
exampleItems.detailEssay = response.body()!!.data!!
exampleItems.detailEssayBackStack.push(exampleItems.detailEssay)
Expand Down

0 comments on commit 30792c4

Please sign in to comment.