Disable explicit nulls for JSON serializer (#7824)
* Disable explicit nulls for JSON serializer * format to multiple lines (cherry picked from commit 3599d53c61dee40e61615dc5424738d2f5779155)
This commit is contained in:
parent
3ca2174c65
commit
3eb943055e
@ -91,7 +91,12 @@ class AppModule(val app: Application) : InjektModule {
|
||||
|
||||
addSingletonFactory<DatabaseHandler> { AndroidDatabaseHandler(get(), get()) }
|
||||
|
||||
addSingletonFactory { Json { ignoreUnknownKeys = true } }
|
||||
addSingletonFactory {
|
||||
Json {
|
||||
ignoreUnknownKeys = true
|
||||
explicitNulls = false
|
||||
}
|
||||
}
|
||||
|
||||
addSingletonFactory { PreferencesHelper(app) }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user