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 += [
|
||||
// Disabled for now, there are too many errors. Could be handled in another dedicated PR
|
||||
// '-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 {
|
||||
val JSON_ADAPTER_FACTORY = object : JsonAdapter.Factory {
|
||||
@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) {
|
||||
return null
|
||||
}
|
||||
|
|
|
@ -291,7 +291,6 @@ internal class DefaultTimeline(
|
|||
}
|
||||
}
|
||||
|
||||
@Suppress("EXPERIMENTAL_API_USAGE")
|
||||
private fun listenToPostSnapshotSignals() {
|
||||
postSnapshotSignalFlow
|
||||
.sample(150)
|
||||
|
|
Loading…
Reference in New Issue