Merge pull request #51 from NUmeroAndDev/replace_Xopt_to_opt

Replaced -Xopt-in to -opt-in because deprecated
pull/55/head
Alex Vanyo 3 years ago committed by GitHub
commit b4a2f35ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,13 +49,13 @@ fun Project.configureKotlinAndroid(
allWarningsAsErrors = properties["warningsAsErrors"] as? Boolean ?: false allWarningsAsErrors = properties["warningsAsErrors"] as? Boolean ?: false
freeCompilerArgs = freeCompilerArgs + listOf( freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.RequiresOptIn",
// Enable experimental coroutines APIs, including Flow // Enable experimental coroutines APIs, including Flow
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=kotlinx.coroutines.FlowPreview", "-opt-in=kotlinx.coroutines.FlowPreview",
"-Xopt-in=kotlin.Experimental", "-opt-in=kotlin.Experimental",
// Enable experimental kotlinx serialization APIs // Enable experimental kotlinx serialization APIs
"-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
) )
// Set JVM target to 1.8 // Set JVM target to 1.8

Loading…
Cancel
Save