mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
Fix warning: w: '-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead
This commit is contained in:
parent
5c7ee5ef58
commit
67cd82385a
2 changed files with 6 additions and 6 deletions
|
@ -98,9 +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=kotlin.RequiresOptIn",
|
||||
// Opt in for kotlinx.coroutines.FlowPreview
|
||||
"-Xopt-in=kotlinx.coroutines.FlowPreview",
|
||||
"-opt-in=kotlinx.coroutines.FlowPreview",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -297,14 +297,14 @@ android {
|
|||
kotlinOptions {
|
||||
jvmTarget = "11"
|
||||
freeCompilerArgs += [
|
||||
"-Xopt-in=kotlin.RequiresOptIn",
|
||||
"-opt-in=kotlin.RequiresOptIn",
|
||||
// Fixes false positive "This is an internal Mavericks API. It is not intended for external use."
|
||||
// of MvRx `by viewModel()` calls. Maybe due to the inlining of code... This is a temporary fix...
|
||||
"-Xopt-in=com.airbnb.mvrx.InternalMavericksApi",
|
||||
"-opt-in=com.airbnb.mvrx.InternalMavericksApi",
|
||||
// Opt in for kotlinx.coroutines.FlowPreview too
|
||||
"-Xopt-in=kotlinx.coroutines.FlowPreview",
|
||||
"-opt-in=kotlinx.coroutines.FlowPreview",
|
||||
// Opt in for kotlinx.coroutines.ExperimentalCoroutinesApi too
|
||||
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue