Join Slack
Powered by
Hi! Anyone know if it's possible to, with the coco...
# kotlin-native
a
andreasmattsson
06/05/2019, 7:08 AM
Hi! Anyone know if it's possible to, with the cocoapods gradle plugin, define dependencies on pods based on local paths rather than by Pod version? (my specific use case is for flutter where the pod is stored locally in a
$flutterProjectDir/.iOS/Flutter/engine/
dir?
i
ilya.matveev
06/05/2019, 7:39 AM
Hi! Such a use case is not supported in the plugin DSL directly. But you can declare the pod dependency in the build.gradle in a usual way, and then declare it again in the Podfile with a local path. See this test project:
https://github.com/JetBrains/kotlin/tree/master/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-cocoapods
. Here we declare a local dependency in build.gradle:
https://github.com/JetBrains/kotlin/blob/0c586ef5c1afd06ec359d7965c158cb80a40e182/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-cocoapods/kotlin-library/build.gradle.kts#L24
. And here specify the local path:
https://github.com/JetBrains/kotlin/blob/0c586ef5c1afd06ec359d7965c158cb80a40e182/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-cocoapods/ios-app/Podfile#L6
.
a
andreasmattsson
06/05/2019, 8:04 AM
Cool! Thanks a lot!
4
Views
Open in Slack
Previous
Next