From 325f60eb18bd9551792c5106720c208e3bc10cbc Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Mon, 21 Sep 2026 09:03:07 -0400 Subject: [PATCH] build: rebundle the example when library sources change --- example/android/app/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 48ba69d..8c51bb0 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -122,3 +122,10 @@ dependencies { implementation jscFlavor } } + +// The bundle task only watches JS sources under example/. The library sources live at the +// repository root in this hoisted pnpm workspace, so register them as inputs too. +tasks.matching { it.name.startsWith("createBundle") && it.name.endsWith("JsAndAssets") }.configureEach { + inputs.files(fileTree("../../../src") { include "**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx" }) + .withPathSensitivity(org.gradle.api.tasks.PathSensitivity.RELATIVE) +}