Has anyone here worked with adding compose multiplatform to an existing kotlin multiplatform app?
I'm starting with the People in Space template and trying to add common compose code. When I try to add in elements of the project structure here: https://github.com/JetBrains/compose-multiplatform-template/tree/main gradle gets mad at me. Curious if this is even possible.
m
Marko Novakovic
06/29/2023, 6:15 AM
I’ve done it recently
Marko Novakovic
06/29/2023, 6:15 AM
it is possible but I don’t know what problems are you facing
k
Konstantin Tskhovrebov
06/29/2023, 9:46 AM
@Malachi Holden did you restart your mac machine after the environment setup? 🍎
a
andrew
06/29/2023, 6:53 PM
Yes, it's definitely possible to copy paste over stuff
m
Malachi Holden
06/29/2023, 7:32 PM
@Konstantin Tskhovrebov
1. I am using a Dell, 2. I did not restart after setup.
I'm not working on the iOS side so I didn't think I needed a Mac
I can certainly try restarting tho
Malachi Holden
06/29/2023, 10:38 PM
@Marko Novakovic My naive attempt was to create a composeMain directory inside the common module. Then I tried to add a
Copy code
val composeMain by getting { ... }
block to the common build.gradle.kts, Inside I pasted the contents of the
commonMain
block from the compose-multiplatform-template repo.
However gradle is not recognizing the