How can I ask gradle to run another task when usin...
# multiplatform
c
How can I ask gradle to run another task when using the cocoapods plugin. I've tried numerous things like
dependsOn("syncFramework"), dependsOn("build")
but whenever I build, it doesn't run the task.
solved 1
Nevermind, I was trying ..
npmInstall { dependsOn(compileKotlin) }
, rather than
..compileKotlin { dependsOn(npmInstall) }
🤦‍♂️
I found probably a cleaner way:
Copy code
ios {
        val main by compilations.getting {
            compileKotlinTask.dependsOn(npmInstall)
        }
    }