Skip to content

Commit

Permalink
πŸ“¦ Update and cleanup dependencies (#7)
Browse files Browse the repository at this point in the history
* πŸ”₯ Simplify redundant dependencies

* πŸ”₯ Simplify redundant dependencies

* πŸ†™ Update dependencies

* Revert some destructive changes πŸ€·β€β™‚οΈ
  • Loading branch information
semanticer authored Sep 29, 2021
1 parent 152c003 commit c24dece
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ subprojects {
allWarningsAsErrors = true
// Set JVM target to 1.8
jvmTarget = "1.8"
apiVersion = "1.4"
languageVersion = "1.4"
apiVersion = "1.5"
languageVersion = "1.5"
freeCompilerArgs += ["-Xskip-prerelease-check"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,17 @@ object Libs {
object Test {
const val kotestVersion = "4.2.3"

const val junit4 = "junit:junit:4.13"
const val robolectric = "org.robolectric:robolectric:4.5.1"
const val turbine = "app.cash.turbine:turbine:0.6.0"
const val junit5Plugin = "de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1"
const val kotestMatchers = "io.kotest:kotest-assertions-core-jvm:${kotestVersion}"
const val kotestProperties = "io.kotest:kotest-property-jvm:${kotestVersion}"
const val mockk = "io.mockk:mockk:1.12.0"
const val mockkAndroid = "io.mockk:mockk-android:1.10.0"
const val assertJ = "org.assertj:assertj-core:3.17.1"
const val turbine = "app.cash.turbine:turbine:0.6.0"
const val kotestMatchers = "io.kotest:kotest-assertions-core-jvm:${kotestVersion}"

object Jupiter {
private const val version = "5.7.1"
// (Required) Writing and executing Unit Tests on the JUnit5 Platform
const val api = "org.junit.jupiter:junit-jupiter-api:$version"
const val engine = "org.junit.jupiter:junit-jupiter-engine:$version"
// (Optional) If you need "Parameterized Tests"
const val params = "org.junit.jupiter:junit-jupiter-params:$version"

}
}

Expand All @@ -51,7 +45,7 @@ object Libs {
}

object Coroutines {
private const val version = "1.5.1"
private const val version = "1.5.2"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"

Expand Down Expand Up @@ -108,7 +102,7 @@ object Libs {
}

object Lifecycle {
private const val version = "2.4.0-alpha01"
private const val version = "2.4.0-beta01"
const val viewModel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
const val viewModelCompose = "androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07"
const val ktx = "androidx.lifecycle:lifecycle-livedata-ktx:$version"
Expand Down Expand Up @@ -140,7 +134,7 @@ object Libs {
}

object Hilt {
private const val version = "2.37"
private const val version = "2.38.1"

const val gradlePlugin = "com.google.dagger:hilt-android-gradle-plugin:$version"
const val hilt = "com.google.dagger:hilt-android:$version"
Expand Down
6 changes: 2 additions & 4 deletions komposable-architecture/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ dependencies {
implementation Libs.Kotlin.stdlib
implementation Libs.Coroutines.core

testImplementation Libs.Test.turbine
testImplementation Libs.Test.Jupiter.api
testRuntimeOnly Libs.Test.Jupiter.engine
testImplementation Libs.Test.Jupiter.params
testImplementation Libs.Test.kotestMatchers
testImplementation Libs.Test.kotestProperties
testImplementation Libs.slf4j
testImplementation Libs.Test.mockk
testImplementation Libs.Test.turbine
testImplementation Libs.Test.kotestMatchers
testImplementation Libs.Kotlin.Test.kotlinTest
testImplementation Libs.Kotlin.Test.kotlinTestJunit
testImplementation Libs.Coroutines.Test.kotlinCoroutineTest
Expand Down
1 change: 0 additions & 1 deletion todo-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ dependencies {

testImplementation Libs.Test.Jupiter.api
testRuntimeOnly Libs.Test.Jupiter.engine
testImplementation Libs.Test.Jupiter.params
testImplementation Libs.slf4j
testImplementation Libs.Kotlin.Test.kotlinTest
testImplementation Libs.Kotlin.Test.kotlinTestJunit
Expand Down

0 comments on commit c24dece

Please sign in to comment.