Skip to content

Commit

Permalink
refactor: migrate from legacy libraries
Browse files Browse the repository at this point in the history
Finishes migration from dbflow to room keeping the schema,
Also includes the jackson to moshi migration to drop reflection,
drops the last remaining usages of rxjava, and finalizes
migration from mvp to mvvm.
  • Loading branch information
kelsos committed Jan 5, 2025
1 parent ec41973 commit c16bb7e
Show file tree
Hide file tree
Showing 374 changed files with 8,943 additions and 9,692 deletions.
55 changes: 26 additions & 29 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.kotlinParcelize)
alias(libs.plugins.kapt)
alias(libs.plugins.ksp)
alias(libs.plugins.protobuf)
alias(libs.plugins.googleServices) apply false
Expand Down Expand Up @@ -98,6 +97,10 @@ android {
buildConfigField("String", "BUILD_TIME", "\"${buildTime()}\"")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
}

testOptions {
Expand Down Expand Up @@ -205,18 +208,6 @@ dependencies {

implementation(projects.changelog)

testImplementation(libs.androidx.arch.core.testing)
testImplementation(libs.androidx.test.core)
testImplementation(libs.androidx.test.runner)
testImplementation(libs.androidx.test.junit)
testImplementation(libs.androidx.test.truth)
testImplementation(libs.bundles.androidx.test.espresso)
testImplementation(libs.truth)
testImplementation(libs.koin.test)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.mockk)
testImplementation(libs.robolectric)

implementation(libs.androidx.annotation)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.core.ktx)
Expand All @@ -233,23 +224,34 @@ dependencies {
implementation(libs.androidx.legacy.support.v4)
implementation(libs.androidx.legacy.support.v13)
implementation(libs.bundles.coroutines)
implementation(libs.bundles.androidx.room)
implementation(libs.bundles.coil)
implementation(libs.bundles.koin)
implementation(libs.google.material)
implementation(libs.google.protobuf.javalite)
implementation(libs.squareup.moshi.lib)
implementation(libs.squareup.okio)
implementation(libs.squareup.okhttp)
implementation(libs.timber)

implementation(libs.bundles.dbflow)
implementation(libs.bundles.jackson)
implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.reflect)
implementation(libs.rxandroid)
implementation(libs.rxjava)
implementation(libs.rxkotlin)
implementation(libs.rxrelay)
ksp(libs.androidx.room.compiler)
ksp(libs.squareup.moshi.codegen)

kapt(libs.dbflow.processor)
testImplementation(libs.androidx.arch.core.testing)
testImplementation(libs.androidx.room.testing)
testImplementation(libs.androidx.test.core)
testImplementation(libs.androidx.test.runner)
testImplementation(libs.androidx.test.junit)
testImplementation(libs.androidx.test.truth)
testImplementation(libs.bundles.androidx.test.espresso)
testImplementation(libs.androidx.paging.common.ktx)
testImplementation(libs.androidx.paging.testing)
testImplementation(libs.turbine)
testImplementation(libs.truth)
testImplementation(libs.koin.test)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.mockk)
testImplementation(libs.robolectric)

debugImplementation(libs.squareup.leakcanary)
debugImplementation(libs.androidx.fragment.testing)
Expand Down Expand Up @@ -365,7 +367,8 @@ tasks {
doLast {
if (!project.file("google-services.json").exists()) {
throw GradleException(
"You need a google-services.json file to run this project. Please refer to the CONTRIBUTING.md file for details."
"You need a google-services.json file to run this project." +
" Please refer to the CONTRIBUTING.md file for details."
)
}
}
Expand All @@ -379,12 +382,6 @@ tasks {
}
}

kotlin {
sourceSets.all {
languageSettings.enableLanguageFeature("ExplicitBackingFields")
}
}

configurations.all {
resolutionStrategy {
force("com.google.code.findbugs:jsr305:3.0.2")
Expand Down
Loading

0 comments on commit c16bb7e

Please sign in to comment.