Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions e2e/e2e-test/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

// TODO Consider moving this to the shared module or the korge plugin configurations
Comment thread
malliaridis marked this conversation as resolved.
sourceSets {
getByName("main") {
assets.directories.add("../shared/src/commonMain/resources")
}
}

// Ignore most of the configuration like packaging and signing, as we do not care in e2e tests
packaging {
resources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MainActivity : KorgwActivity(config = GameWindowCreationConfig(msaa = 1, f
)

Log.d(TAG, "Determining screenshotsVfs...")
val path = Environment["OUTPUT_DIR"] ?: "."
val path = applicationContext.getExternalFilesDir(null)!!.absolutePath

@augmentcode augmentcode Bot Jul 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e/e2e-test/androidApp/src/main/kotlin/org/korge/e2e/MainActivity.kt:33getExternalFilesDir(null) can return null when external storage isn’t currently mounted; the !! will crash the e2e app and prevent screenshot capture in that case.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Log.d(TAG, "Determining screenshotsVfs... $path")
val screenshotsVfs = localVfs(path).also { it.mkdirs() }.jail()
Log.d(TAG, "vfs: $screenshotsVfs")
Expand Down
2 changes: 1 addition & 1 deletion e2e/e2e-test/desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ korge {

targetJvm()

jvmMainClassName = "org.korge.e2e.RefMainKt"
jvmMainClassName = "org.korge.e2e.jvm.RefMainKt"
}

kotlin {
Expand Down
Loading