From 8112b3603a7ada504b3b9797c319665c2a7baaaf Mon Sep 17 00:00:00 2001 From: jangjh123 Date: Mon, 13 Feb 2023 16:29:23 +0900 Subject: [PATCH] =?UTF-8?q?[D83T-14]=20Jetpack=20Compose=20Lifecycle=20?= =?UTF-8?q?=EB=B0=8F=20DataStore=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jetpack Compose Lifecycle 의존성 추가를 위한 선행 작업으로 Kotlin 버전 및 Compose Compiler 버전을 갱신하였습니다. --- build.gradle | 4 ++-- data/build.gradle | 7 ++++++- domain/build.gradle | 2 +- presentation/build.gradle | 14 +++++++++++--- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 5325f55..7f3e946 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ buildscript { plugins { id 'com.android.application' version '7.4.0' apply false id 'com.android.library' version '7.4.0' apply false - id 'org.jetbrains.kotlin.android' version '1.7.21' apply false - id 'org.jetbrains.kotlin.jvm' version '1.7.21' apply false + id 'org.jetbrains.kotlin.android' version '1.8.10' apply false + id 'org.jetbrains.kotlin.jvm' version '1.8.10' apply false id 'com.google.dagger.hilt.android' version '2.44' apply false } diff --git a/data/build.gradle b/data/build.gradle index bc6edc6..d3f7015 100644 --- a/data/build.gradle +++ b/data/build.gradle @@ -45,7 +45,7 @@ dependencies { implementation project(path: ':domain') //kotlin - implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.21" + implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" @@ -58,6 +58,11 @@ dependencies { implementation "com.google.dagger:hilt-android:${hilt_version}" kapt "com.google.dagger:hilt-android-compiler:${hilt_version}" + //data store + def data_store_version = "1.0.0" + implementation "androidx.datastore:datastore-preferences:${data_store_version}" + implementation "androidx.datastore:datastore-preferences-core:${data_store_version}" + //retrofit def RETROFIT = "2.9.0" implementation "com.squareup.retrofit2:retrofit:${RETROFIT}" diff --git a/domain/build.gradle b/domain/build.gradle index 551083c..b5373d2 100644 --- a/domain/build.gradle +++ b/domain/build.gradle @@ -44,7 +44,7 @@ android { dependencies { //kotlin - implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.21" + implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" diff --git a/presentation/build.gradle b/presentation/build.gradle index b87e386..c3ded7d 100644 --- a/presentation/build.gradle +++ b/presentation/build.gradle @@ -1,10 +1,10 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' - id 'kotlin-kapt' id 'kotlin-parcelize' id 'dagger.hilt.android.plugin' id 'com.google.android.gms.oss-licenses-plugin' + id 'kotlin-kapt' } android { @@ -42,7 +42,7 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion "1.4.0-alpha02" + kotlinCompilerExtensionVersion "1.4.2" } compileOptions { @@ -70,7 +70,7 @@ dependencies { implementation project(path: ':domain') //kotlin - implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.21" + implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" @@ -120,6 +120,14 @@ dependencies { implementation "com.google.accompanist:accompanist-insets:$insets_version" implementation "com.google.accompanist:accompanist-insets-ui:$insets_version" + //compose lifecycle + implementation "androidx.lifecycle:lifecycle-runtime-compose:2.6.0-beta01" + + //data store + def data_store_version = "1.0.0" + implementation "androidx.datastore:datastore-preferences:${data_store_version}" + implementation "androidx.datastore:datastore-preferences-core:${data_store_version}" + //material implementation "com.google.android.material:material:1.8.0"