Fix compilation warning after bump kotlin-gradle-plugin from 1.6.0 to 1.6.21
This commit is contained in:
parent
c04655cd36
commit
5c7ee5ef58
|
@ -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",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,6 @@ internal class DefaultTimeline(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("EXPERIMENTAL_API_USAGE")
|
|
||||||
private fun listenToPostSnapshotSignals() {
|
private fun listenToPostSnapshotSignals() {
|
||||||
postSnapshotSignalFlow
|
postSnapshotSignalFlow
|
||||||
.sample(150)
|
.sample(150)
|
||||||
|
|
Loading…
Reference in New Issue