[Gradle] Fix cocoapods' cinterops UTD

^KT-60112 Verification Pending
This commit is contained in:
Artem Daugel-Dauge
2023-07-04 18:43:48 +02:00
committed by Space Team
parent 344dbcbd23
commit b381752074
2 changed files with 28 additions and 0 deletions
@@ -338,6 +338,10 @@ open class KotlinCocoapodsPlugin : Plugin<Project> {
val podBuildTaskProvider = project.getPodBuildTaskProvider(target, pod)
val buildSettingsFileProvider = project.buildSettingsFileProvider(pod, target)
interopTask.inputs.file(buildSettingsFileProvider)
// Since we can't properly declare frameworks as inputs (see below) it's the best approximation
interopTask.inputs.files(podBuildTaskProvider.flatMap { it.srcDir })
interopTask.dependsOn(podBuildTaskProvider)
interopTask.doFirst { _ ->