Skip to content

Commit

Permalink
Add kotlinx-datetime (#27)
Browse files Browse the repository at this point in the history
* Add kotlinx-datetime

* Enable core library desugaring
  • Loading branch information
AfigAliyev committed Aug 12, 2022
1 parent b3a599e commit c5ead18
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ android {
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand Down Expand Up @@ -102,4 +103,6 @@ dependencies {

testImplementation(libs.bundles.test)
androidTestImplementation(libs.bundles.android.test)

coreLibraryDesugaring(libs.desugar.jdk.libs)
}
1 change: 1 addition & 0 deletions core/core-data/data-remote/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {

api(libs.kotlinx.coroutines.core)
api(libs.kotlinx.serialization.json)
api(libs.kotlinx.datetime)
api(libs.bundles.retrofit)

testImplementation(libs.bundles.test)
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ android-gradle-plugin = "7.2.2"
spotless = "6.9.1"
detekt = "1.21.0"
kode-detekt-rules-compose = "1.1.0"
desugar-jdk-libs = "1.1.6"

androidx-compose = "1.2.1"
androidx-compose-compiler = "1.3.0"
Expand All @@ -25,6 +26,7 @@ mockk = "1.12.5"

kotlinx-coroutines = "1.6.4"
kotlinx-serialization = "1.4.0-RC"
kotlinx-datetime = "0.4.0"

dagger = "2.43.2"
okhttp = "4.10.0"
Expand Down Expand Up @@ -57,6 +59,7 @@ mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }

dagger-hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "dagger" }
dagger-hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "dagger" }
Expand All @@ -67,6 +70,7 @@ retrofit-kotlinx-serialization-converter = { module = "com.jakewharton.retrofit:

detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
kode-detekt-rules-compose = { module = "ru.kode:detekt-rules-compose", version.ref = "kode-detekt-rules-compose" }
desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar-jdk-libs" }

[bundles]
androidx-compose = [
Expand Down

0 comments on commit c5ead18

Please sign in to comment.