kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

Can we remove @FlowPreview yet?

Open martymiller opened this issue 3 years ago • 2 comments

I've had this annotation in my code for what seems like two years. How is it not stable yet?

martymiller avatar Jun 03 '22 21:06 martymiller

related to #3097

hoc081098 avatar Jun 04 '22 07:06 hoc081098

Just wanted to share that I added this to my app level build.gradle.kts (inside of the android { })

  tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
    kotlinOptions.freeCompilerArgs += listOf(
      "-Xopt-in=kotlin.RequiresOptIn",
      "-Xopt-in=kotlin.OptIn",
      "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
      "-Xopt-in=kotlinx.coroutines.ObsoleteCoroutinesApi",
      "-Xopt-in=kotlinx.coroutines.FlowPreview"
    )
  }

This allowed me to remove all the annotations in my code without any complaints from the IDE. When FlowPreview is eventually removed, I can just remove it from here.

martymiller avatar Jul 27 '22 16:07 martymiller

Is there any update on this one (or should it be continued on https://github.com/Kotlin/kotlinx.coroutines/issues/3097)? Thanks

albertocavalcante avatar Nov 14 '22 10:11 albertocavalcante

The update will arrive around 1.7.0 release

qwwdfsad avatar Nov 14 '22 10:11 qwwdfsad

@qwwdfsad Thanks for the quick response!

albertocavalcante avatar Nov 14 '22 10:11 albertocavalcante

A very few API are left as @FlowPreview, and they are left so intentionally, so closing this one

qwwdfsad avatar Mar 13 '23 17:03 qwwdfsad