Rupesh
05/27/2021, 4:20 AMFilip Wiesner
05/27/2021, 6:10 AMFilip Wiesner
05/27/2021, 6:12 AMRupesh
05/27/2021, 6:13 AMmbonnin
05/27/2021, 6:52 AMmbonnin
05/27/2021, 6:52 AMRupesh
05/27/2021, 7:09 AMmbonnin
05/27/2021, 7:13 AMmbonnin
05/27/2021, 7:14 AMRupesh
05/27/2021, 7:21 AMshared-module
which can be used for both the platforms. It can be run from Android Studio. Can I run the plugin task from xCode too?mbonnin
05/27/2021, 7:23 AMplugin will generate the code forÂCorrect. You don't have to name your module which can be used for both the platformsshared-module
shared-module
though, you can use any name you want.
Can I run the plugin task from xCode too?Not really, the plugin is a Gradle plugin and Xcode doesn't support Gradle. In all cases, it generates Kotlin code, which Xcode cannot compile. You can use a
packForXcode
task to create a .framework
file exported to XCode. See https://github.com/joreilly/MortyComposeKMM/blob/main/shared/build.gradle.kts#L72 for an exampleRupesh
05/27/2021, 8:16 AMFilip Wiesner
05/27/2021, 10:26 AMRupesh
05/27/2021, 1:07 PMFilip Wiesner
05/27/2021, 1:09 PMFilip Wiesner
05/27/2021, 1:11 PMRupesh
05/27/2021, 1:19 PMrocketraman
06/01/2021, 8:58 PM