Which Gradle task can I hook into which runs before building any KMP target? `preBuild` works when ...
g
Which Gradle task can I hook into which runs before building any KMP target?
preBuild
works when building for Android:
Copy code
> ./gradlew lib:assembleDebug --dry-run
...
:lib:preBuild SKIPPED       <-- preBuild is included!
but
preBuild
is not executed for native/JS builds. For example, here it jumps straight to the
compile
tasks.
Copy code
> ./gradlew lib:assembleSlikBinXCFramework --dry-run
...
:lib:compileKotlinIosArm64 SKIPPED
👍 1
x
KotlinCompile
👍 1