https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

grahamborland

09/28/2023, 11:42 AM
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

xiaobailong24

09/28/2023, 2:58 PM
KotlinCompile
👍 1
3 Views