From dbe041a158119db3323d1e8e7715cb5909195970 Mon Sep 17 00:00:00 2001 From: soywiz-invideo Date: Wed, 29 Jun 2022 10:26:44 +0200 Subject: [PATCH 1/3] Check :korge-sandbox compiles at least on the JVM --- .github/workflows/TEST.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/TEST.yml b/.github/workflows/TEST.yml index 02c5eb3e97..a33215fb1f 100644 --- a/.github/workflows/TEST.yml +++ b/.github/workflows/TEST.yml @@ -22,6 +22,7 @@ jobs: - { name: Grant execute permission for gradlew, run: chmod +x gradlew } - { name: Start gradle, run: ./gradlew } - { name: Testing JVM, run: ./gradlew jvmTest -i } + - { name: Check sandbox compiles, run: "./gradlew :korge-sandbox:jvmJar" } test-js: timeout-minutes: 120 From 3ce4504f98446b96e86dd2221ba56b3ae68607f8 Mon Sep 17 00:00:00 2001 From: soywiz-invideo Date: Wed, 29 Jun 2022 10:26:55 +0200 Subject: [PATCH 2/3] Fix MainSound sample --- korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt b/korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt index 48313e2151..5fc509ed61 100644 --- a/korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt +++ b/korge-sandbox/src/commonMain/kotlin/samples/MainSound.kt @@ -1,12 +1,12 @@ package samples import com.soywiz.korge.scene.Scene -import com.soywiz.korge.view.Container +import com.soywiz.korge.view.SContainer import com.soywiz.korau.sound.* import com.soywiz.korio.file.std.* class MainSound : Scene() { - override suspend fun Container.sceneMain() { + override suspend fun SContainer.sceneMain() { val music = resourcesVfs["sounds/Snowland.mp3"].readMusic() // val music = resourcesVfs["sounds/Deus_Ex_Tempus.ogg"].readMusic() val channel = music.play() From 02cea7321f385aa9ad73dbe44d46d0a580fb1065 Mon Sep 17 00:00:00 2001 From: soywiz-invideo Date: Wed, 29 Jun 2022 10:26:58 +0200 Subject: [PATCH 3/3] Minor --- .../commonMain/kotlin/com/soywiz/korge/animate/AnimateLibrary.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/korge/src/commonMain/kotlin/com/soywiz/korge/animate/AnimateLibrary.kt b/korge/src/commonMain/kotlin/com/soywiz/korge/animate/AnimateLibrary.kt index 0511187e40..3d10170de9 100644 --- a/korge/src/commonMain/kotlin/com/soywiz/korge/animate/AnimateLibrary.kt +++ b/korge/src/commonMain/kotlin/com/soywiz/korge/animate/AnimateLibrary.kt @@ -387,4 +387,3 @@ class AnLibrary(val context: Context, val width: Int, val height: Int, val fps: fun createMainTimeLine() = createMovieClip(0) } -