icerockdev / mobile-multiplatform-gradle-plugin

Gradle plugin for simplify Kotlin Multiplatform mobile configurations
Apache License 2.0
94 stars 16 forks source link

Add generation of dummy framework to simplify pod install with cinterop #11

Open Alex009 opened 4 years ago

Alex009 commented 4 years ago

How cocoapods detect static/dynamic framework for correct integration - https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/xcode/linkage_analyzer.rb How this implemented in kotlin plugin - https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/CocoapodsTasks.kt#L209

now dummy generation task support dynamic frameworks too, so we can just use kotlin plugin's version

Alex009 commented 3 years ago

useful info - https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/xcode/linkage_analyzer.rb

Alex009 commented 3 years ago

to use https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/CocoapodsTasks.kt#L209 we should wait kotlin 1.5.30 plugin