Skip to content

Commit

Permalink
Opt-in for FlowPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaakko committed Nov 25, 2023
1 parent 4787ad2 commit 0d8ebd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/xyz/malkki/neostumbler/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d8ebd8

Please sign in to comment.