Skip to content

Commit b67eebb

Browse files
committed
Feat: AuthToken 데이터 클래스 추가
- datastore-preferences 라이브러리 alias 수정 - dataStore 모듈 kotlinx.serialization.json 의존성 추가
1 parent 1d93680 commit b67eebb

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

core/datastore/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ android {
99
}
1010

1111
dependencies {
12-
implementation(libs.androidx.datastore)
12+
implementation(libs.androidx.datastore.preferences)
13+
implementation(libs.kotlinx.serialization.json)
1314
}

core/datastore/src/main/java/com/threegap/bitnagil/datastore/.gitkeep

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.threegap.bitnagil.datastore.model
2+
3+
import kotlinx.serialization.Serializable
4+
5+
@Serializable
6+
data class AuthToken(
7+
val accessToken: String? = null,
8+
val refreshToken: String? = null,
9+
)

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ compose-compiler-gradle-plugin = { group = "org.jetbrains.kotlin", name = "compo
6161
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidxAppcompat" }
6262
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "androidxActivity" }
6363
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidxCore" }
64-
androidx-datastore = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "androidxDatastore" }
64+
androidx-datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "androidxDatastore" }
6565
androidx-lifecycle-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidxLifecycle" }
6666
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "androidxLifecycle" }
6767
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "androidxLifecycle" }

0 commit comments

Comments
 (0)