mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 09:55:40 +03:00
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
3 changed files with 4 additions and 2 deletions
|
@ -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 a new issue