mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 02:07:01 +05:30
Revert "Revert "all: switch to moshi-kotlin and fix tests""
This reverts commit 602d11de35180d72fae9472b280d08af460d940f.
This commit is contained in:
parent
c835a59cbf
commit
0a6371b159
7 changed files with 10 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
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
|
||||
|
@ -11,6 +12,8 @@ import dagger.hilt.components.SingletonComponent
|
|||
object MoshiModule {
|
||||
@Provides
|
||||
fun provideMoshi(): Moshi {
|
||||
return Moshi.Builder().build()
|
||||
return Moshi.Builder()
|
||||
.add(KotlinJsonAdapterFactory())
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue