|
|
|
@ -90,5 +90,19 @@ private inline fun <reified T : KotlinTopLevelExtension> Project.configureKotlin
|
|
|
|
|
// Enable experimental coroutines APIs, including Flow
|
|
|
|
|
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
|
|
|
)
|
|
|
|
|
freeCompilerArgs.add(
|
|
|
|
|
/**
|
|
|
|
|
* Remove this args after Phase 3.
|
|
|
|
|
* https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-consistent-copy-visibility/#deprecation-timeline
|
|
|
|
|
*
|
|
|
|
|
* Deprecation timeline
|
|
|
|
|
* Phase 3. (Supposedly Kotlin 2.2 or Kotlin 2.3).
|
|
|
|
|
* The default changes.
|
|
|
|
|
* Unless ExposedCopyVisibility is used, the generated 'copy' method has the same visibility as the primary constructor.
|
|
|
|
|
* The binary signature changes. The error on the declaration is no longer reported.
|
|
|
|
|
* '-Xconsistent-data-class-copy-visibility' compiler flag and ConsistentCopyVisibility annotation are now unnecessary.
|
|
|
|
|
*/
|
|
|
|
|
"-Xconsistent-data-class-copy-visibility"
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|