Remove redundant opt-in flags (#1544)

* Remove "-opt-in=com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview"

Unused now

* Remove redundant -opt-in=RequiresOptIn
This commit is contained in:
Zac Sweers
2022-06-13 17:11:29 -04:00
committed by GitHub
parent e95af32df8
commit 53bb46c208
2 changed files with 0 additions and 3 deletions

View File

@@ -16,9 +16,7 @@ tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
@Suppress("SuspiciousCollectionReassignment")
freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.squareup.kotlinpoet.metadata.KotlinPoetMetadataPreview",
"-opt-in=com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview",
"-opt-in=com.squareup.moshi.kotlin.codegen.api.InternalMoshiCodegenApi",
)
}

View File

@@ -61,7 +61,6 @@ tasks.withType<KotlinCompile>()
.configureEach {
kotlinOptions {
val toAdd = mutableListOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-Xjvm-default=all"
)