Skip to content

Commit e794ab8

Browse files
committed
fix errors
1 parent aab6483 commit e794ab8

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

composeApp/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ kotlin {
4848

4949
implementation(libs.ktor.client.android)
5050
implementation("io.ktor:ktor-client-okhttp:3.0.1")
51+
implementation(project(":appintro"))
52+
5153
}
5254
commonMain.dependencies {
5355
implementation(compose.runtime)
@@ -73,7 +75,6 @@ kotlin {
7375
implementation(project.dependencies.platform("io.github.jan-tennert.supabase:bom:3.2.6"))
7476
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")
7577

76-
implementation(project(":appintro"))
7778
}
7879
commonTest.dependencies {
7980
implementation(libs.kotlin.test)

composeApp/src/jvmMain/kotlin/neth/iecal/trease/Platform.jvm.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package neth.iecal.trease
22

33
import androidx.compose.runtime.Composable
4+
import androidx.compose.runtime.LaunchedEffect
45
import androidx.compose.ui.Modifier
56
import androidx.compose.ui.layout.ContentScale
67
import io.github.kdroidfilter.composemediaplayer.VideoPlayerState
78
import io.github.kdroidfilter.composemediaplayer.VideoPlayerSurface
89
import io.ktor.client.HttpClient
910
import io.ktor.client.engine.okhttp.OkHttp
11+
import neth.iecal.trease.viewmodels.HomeScreenViewModel
1012
import okio.FileSystem
1113
import java.io.File
1214

@@ -39,4 +41,19 @@ actual fun PlatformVideoPlayer(
3941
contentScale = ContentScale.Crop,
4042
modifier = modifier,
4143
)
44+
}
45+
46+
@Composable
47+
actual fun FocusStarterDialog(
48+
viewModel: HomeScreenViewModel,
49+
onConfirm: () -> Unit,
50+
onDismissed: () -> Unit
51+
) {
52+
// Todo: Add blocking to jvm
53+
LaunchedEffect(Unit){
54+
onConfirm()
55+
}
56+
}
57+
58+
actual fun onForceStopFocus() {
4259
}

composeApp/src/jvmMain/kotlin/neth/iecal/trease/ui/screens/HomeScreenJvm.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)