diff --git a/apollo/build.gradle.kts b/apollo/build.gradle.kts index 4e908ac43..3c58eefba 100644 --- a/apollo/build.gradle.kts +++ b/apollo/build.gradle.kts @@ -182,7 +182,7 @@ fun KotlinNativeTarget.ed25519Bip32CInterop(target: String) { } /** - * Creates a copy task with the specified parameters. + * Factory to create a copy task with the specified parameters. * * @param name The name of the copy task. * @param fromDir The source directory from which files will be copied. @@ -866,6 +866,12 @@ afterEvaluate { tasks.getByName("mergeDebugResources").dependsOn(buildEd25519Bip32Task) tasks.getByName("mergeReleaseResources").dependsOn(buildEd25519Bip32Task) + tasks.getByName("compileProductionLibraryKotlinJs").doFirst { + if(!rootDir.resolve("build/js/packages/Apollo/kotlin/ed25519_bip32_wasm.js").isFile()) { + throw Exception("ed25519 wasm missing") + } + } + if (tasks.findByName("iosX64Test") != null) { tasks.named("iosX64Test") { this.enabled = false