Is there a more sane bootstrapping project out the...
# multiplatform
d
Is there a more sane bootstrapping project out there for compose multiplatform? I went through the official one and it’s quite a mess. I don’t get why there is a shared module as well as “commonMain” in the app module, wouldn’t the shared module be more suitable for adding kmm to an existing project? Although I set the project up for android, ios, desktop, and wasmJs, the only run configurations I get are android and ios, and only the android one works. For some reason when running ios it’s trying to use the agp?
Could not resolve com.android.tools.build:gradle:8.2.0.
After fiddling around with things for a while I managed to get the app running on all the platforms. The user experience getting started needs some major work, but maybe multiplatform isn’t mature enough for it to make sense to prioritize that yet.
Nevermind, it can’t seem to make up its mind on what JDK version it wants. Apparently ios requires 11, but then AGP requires 17…
k
I had to set the java home path inside the script that runs Gradle to build the xcframework, then it was fine
d
It was weird for me, I set it to 23 and then I could build iOS. But then later it stopped and said it needed 11, I downloaded 11 and then it said the gradle plugin needed a newer version. Went back to 17 which is what it used originally and now everything is fine 😕
k
That is weird
I'm using 21 or 22 right now, should be fine to go-to 23
I'll check it out when I get some time today
d
I just tried switching back to 23 and that seems to be ok now as well. No idea what was going on but the ios build fussing over the android gradle plugin seems to be something others have experienced: android studio - issue when running Kotlin Multiplatform iOS project - Stack Overflow
k
What xcode version are you running?
d
15.4
k
23 isn't a valid target for Kotlin Gradle plugin yet, so perhaps that's why it worked and then didn't - you are using cached results from when you did 22
Probably will be in a month or 3
So I'd stick with 22 for now