mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08: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
@ -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 New Issue
Block a user