Skip to content

Commit

Permalink
add coroutines to commonMain
Browse files Browse the repository at this point in the history
odaridavid committed Mar 21, 2024
1 parent e7d22b7 commit 2e742f8
Showing 2 changed files with 3 additions and 24 deletions.
25 changes: 2 additions & 23 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
[versions]
activity-compose = "1.9.0-alpha03"
# Plugins
android-gradle-plugin = "8.3.0"
ben-manes-gradle = "0.51.0"
chucker = "4.0.0"
coil-compose = "2.6.0"
# Firebase
com-google-services = "4.4.1"
compose-bom = "2024.02.01"
compose-navigation = "2.8.0-alpha03"
# Android X
core-ktx-version = "1.13.0-alpha05"
coroutines-test = "1.8.0"
crashlytics-plugin = "2.9.9"
datastore = "1.1.0-beta01"
firebase-bom = "32.7.3"
compose-constraint = "1.0.1"

# DI
hilt = "2.51"
hilt-nav-compose = "1.2.0"
# Testing
junit = "4.13.2"
kotlin = "1.9.22"
kotlin-serialization = "1.9.22"
@@ -29,38 +23,31 @@ kotlinx-serialization = "1.6.3"
kotlinx-serialization-converter = "1.0.0"
lifecycle-runtime-ktx = "2.8.0-alpha02"
lifecycle-viewmodel-compose = "2.8.0-alpha02"
# Versioning
mapsplatform-secrets = "2.0.1"
mockk = "1.13.3"
okhttp = "4.10.0"
# Play Services
play-services-location = "21.1.0"
# Async
retrofit = "2.9.0"
truth = "1.4.2"
turbine = "1.0.0"
leakcanary = "3.0-alpha-1"
#InAppUpdate
inappupdate = "2.1.0"
#About
about-lib = "11.1.0"
firebase-perf = "1.4.2"
compose-material3 = "1.2.1"
androidx-test-runner = "1.5.2"
androidx-test-rules = "1.5.0"
core-ktx = "1.5.0"
coroutines = "1.8.0"

[libraries]
activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activity-compose" }
#chucker
chucker-debug = { module = "com.github.chuckerteam.chucker:library", version.ref = "chucker" }
chucker-release = { module = "com.github.chuckerteam.chucker:library-no-op", version.ref = "chucker" }
coil = { module = "io.coil-kt:coil-compose", version.ref = "coil-compose" }
com-firebase-crashlytics-plugin = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "crashlytics-plugin" }
#Firebase
com-google-services = { module = "com.google.gms:google-services", version.ref = "com-google-services" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }

compose-material3 = { group = "androidx.compose.material3", name = "material3-android", version.ref = "compose-material3" }
compose-navigation = { group = "androidx.navigation", name = "navigation-compose", version.ref = "compose-navigation" }
compose-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
@@ -69,21 +56,17 @@ compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-viewmodel-lifecycle = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle-viewmodel-compose" }
compose-constraint = { group = "androidx.constraintlayout", name = "constraintlayout-compose", version.ref = "compose-constraint" }
#AndroidX
core-ktx = { module = "androidx.core:core-ktx", version.ref = "core-ktx-version" }
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines-test" }
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase-bom" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx" }
firebase-perfomance-monitoring = { module = "com.google.firebase:firebase-perf" }
datastore = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }

#DI
coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
hilt-nav-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "hilt-nav-compose" }

# Testing
junit = { module = "junit:junit", version.ref = "junit" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines-android" }
kotlinx-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
@@ -95,15 +78,12 @@ okhttp = { module = "com.squareup.okhttp3:okhttp" }
okhttp-bom = { module = "com.squareup.okhttp3:okhttp-bom", version.ref = "okhttp" }
okhttp-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor" }
playservices-location = { module = "com.google.android.gms:play-services-location", version.ref = "play-services-location" }
# Async
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }
turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
#InAppUpdate
inapp-update = { module = "com.google.android.play:app-update", version.ref = "inappupdate" }
inapp-update-ktx = { module = "com.google.android.play:app-update-ktx", version.ref = "inappupdate" }
#About
about-lib-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "about-lib" }
about-lib-compose-ui = { module = "com.mikepenz:aboutlibraries-compose-m3", version.ref = "about-lib" }
android-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
@@ -117,7 +97,6 @@ dagger-hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hi
mapsplatform-secrets-gradle-plugin = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "mapsplatform-secrets" }
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
org-jetbrains-kotlin-plugin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin-serialization" }
#Multiplatform
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinCocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
about-lib-plugin = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "about-lib" }
2 changes: 1 addition & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ kotlin {

sourceSets {
commonMain.dependencies {
// put your multiplatform dependencies here
implementation(libs.coroutines)
}
commonTest.dependencies {
// TODO Add common test dependencies

0 comments on commit 2e742f8

Please sign in to comment.