android: remove unused metadata-reflect adapter

This commit is contained in:
Harsh Shandilya 2021-08-06 18:03:26 +05:30
parent 0826b73e51
commit 80a985bf2d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 1 additions and 4 deletions

View file

@ -17,7 +17,6 @@ dependencies {
implementation(libs.androidx.paging.compose) implementation(libs.androidx.paging.compose)
implementation(libs.dagger.hilt.android) implementation(libs.dagger.hilt.android)
implementation(libs.retrofit.moshiConverter) implementation(libs.retrofit.moshiConverter)
implementation(libs.moshix.metadatareflect)
} }
android { android {

View file

@ -6,7 +6,6 @@ import dagger.Provides
import dagger.Reusable import dagger.Reusable
import dagger.hilt.InstallIn import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent import dagger.hilt.components.SingletonComponent
import dev.zacsweers.moshix.reflect.MetadataKotlinJsonAdapterFactory
@Module @Module
@InstallIn(SingletonComponent::class) @InstallIn(SingletonComponent::class)
@ -14,6 +13,6 @@ object MoshiModule {
@Provides @Provides
@Reusable @Reusable
fun provideMoshi(): Moshi { fun provideMoshi(): Moshi {
return Moshi.Builder().add(MetadataKotlinJsonAdapterFactory()).build() return Moshi.Builder().build()
} }
} }

View file

@ -25,7 +25,6 @@ dagger-hilt-core = { module = "com.google.dagger:hilt-core", version.ref = "hilt
moshi-lib = "com.squareup.moshi:moshi:1.12.0" moshi-lib = "com.squareup.moshi:moshi:1.12.0"
moshix-ksp = { module = "dev.zacsweers.moshix:moshi-ksp", version.ref = "moshix" } moshix-ksp = { module = "dev.zacsweers.moshix:moshi-ksp", version.ref = "moshix" }
moshix-metadatareflect = { module = "dev.zacsweers.moshix:moshi-metadata-reflect", version.ref = "moshix" }
retrofit-lib = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" } retrofit-lib = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
retrofit-moshiConverter = { module = "com.squareup.retrofit2:converter-moshi", version.ref = "retrofit" } retrofit-moshiConverter = { module = "com.squareup.retrofit2:converter-moshi", version.ref = "retrofit" }