diff --git a/app/build.gradle b/app/build.gradle index cdda123e..2d6bda7d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -79,6 +79,7 @@ tasks.withType(KotlinCompilationTask).configureEach { freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime") freeCompilerArgs.add("-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi") freeCompilerArgs.add("-opt-in=androidx.compose.material3.ExperimentalMaterial3Api") + freeCompilerArgs.add("-opt-in=kotlinx.coroutines.FlowPreview") } } diff --git a/app/src/main/java/xyz/malkki/neostumbler/MainActivity.kt b/app/src/main/java/xyz/malkki/neostumbler/MainActivity.kt index efd24957..613286ad 100644 --- a/app/src/main/java/xyz/malkki/neostumbler/MainActivity.kt +++ b/app/src/main/java/xyz/malkki/neostumbler/MainActivity.kt @@ -24,13 +24,11 @@ import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import kotlinx.coroutines.FlowPreview import xyz.malkki.neostumbler.ui.composables.ReportMap import xyz.malkki.neostumbler.ui.screens.ReportsScreen import xyz.malkki.neostumbler.ui.screens.SettingsScreen import xyz.malkki.neostumbler.ui.theme.NeoStumblerTheme -@FlowPreview class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)