Revert "all: switch to moshi-kotlin and fix tests"

This reverts commit da25dd2ed9bea50691b889e093ff896fea598b1a.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-01-24 23:47:54 +05:30
parent f9fcb089a1
commit 32bfdde04e
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
7 changed files with 11 additions and 10 deletions

View file

@ -7,10 +7,10 @@ plugins {
dependencies {
kapt(Dependencies.AndroidX.Hilt.daggerCompiler)
kapt(Dependencies.ThirdParty.Moshi.codegen)
api(Dependencies.ThirdParty.Retrofit.lib)
implementation(project(":database"))
implementation(Dependencies.AndroidX.Hilt.dagger)
implementation(Dependencies.ThirdParty.Moshi.kotlinReflect)
implementation(Dependencies.ThirdParty.Retrofit.moshi)
testImplementation(Dependencies.Kotlin.Coroutines.core)
testImplementation(Dependencies.Testing.junit)

View file

@ -1,7 +1,6 @@
package dev.msfjarvis.lobsters.injection
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
@ -12,8 +11,6 @@ import dagger.hilt.components.SingletonComponent
object MoshiModule {
@Provides
fun provideMoshi(): Moshi {
return Moshi.Builder()
.add(KotlinJsonAdapterFactory())
.build()
return Moshi.Builder().build()
}
}