From baf7d90df99fdd8ba1c0d6530016339d9ba2ca22 Mon Sep 17 00:00:00 2001 From: K Date: Fri, 30 Oct 2026 08:09:43 +0700 Subject: [PATCH] build: drop the unused androidTest variant so the VS Code Kotlin import works The project has no instrumented tests. The Kotlin extension's Gradle import reads the debugAndroidTest outputs without running their tasks and fails. --- app/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 736d728ba..65353df27 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -249,6 +249,12 @@ android { } } +// No instrumented tests; the unused androidTest variant breaks the VS Code Kotlin import. +androidComponents { + beforeVariants(selector().all()) { it.androidTest.enable = false } +} + +// Vendor binaries remain in the user's SDK directory; never vendor them into Git. if (vitureSdkDir) { android.sourceSets.main.jniLibs.srcDir(new File(vitureSdkDir, 'android')) def stageVitureNotices = tasks.register('stageVitureNotices', Copy) {