Fix compilation warning after bump kotlin-gradle-plugin from 1.6.0 to 1.6.21

This commit is contained in:
Benoit Marty 2022-05-10 16:05:46 +02:00
parent c04655cd36
commit 5c7ee5ef58
3 changed files with 4 additions and 2 deletions

View File

@ -98,6 +98,9 @@ android {
freeCompilerArgs += [ freeCompilerArgs += [
// Disabled for now, there are too many errors. Could be handled in another dedicated PR // Disabled for now, there are too many errors. Could be handled in another dedicated PR
// '-Xexplicit-api=strict', // or warning // '-Xexplicit-api=strict', // or warning
"-Xopt-in=kotlin.RequiresOptIn",
// Opt in for kotlinx.coroutines.FlowPreview
"-Xopt-in=kotlinx.coroutines.FlowPreview",
] ]
} }

View File

@ -33,7 +33,7 @@ internal interface CheckNumberType {
companion object { companion object {
val JSON_ADAPTER_FACTORY = object : JsonAdapter.Factory { val JSON_ADAPTER_FACTORY = object : JsonAdapter.Factory {
@Nullable @Nullable
override fun create(type: Type, annotations: Set<Annotation?>?, moshi: Moshi): JsonAdapter<*>? { override fun create(type: Type, annotations: Set<Annotation>, moshi: Moshi): JsonAdapter<*>? {
if (type !== Any::class.java) { if (type !== Any::class.java) {
return null return null
} }

View File

@ -291,7 +291,6 @@ internal class DefaultTimeline(
} }
} }
@Suppress("EXPERIMENTAL_API_USAGE")
private fun listenToPostSnapshotSignals() { private fun listenToPostSnapshotSignals() {
postSnapshotSignalFlow postSnapshotSignalFlow
.sample(150) .sample(150)