Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin Multiplatform #72

Open
cvb941 opened this issue Nov 1, 2022 · 4 comments
Open

Kotlin Multiplatform #72

cvb941 opened this issue Nov 1, 2022 · 4 comments

Comments

@cvb941
Copy link

cvb941 commented Nov 1, 2022

Hi, I'm just raising an issue for the Kotlin Multiplatform support.

@serras
Copy link
Collaborator

serras commented Nov 1, 2022

In theory it should be possible to use it, since KSP supports Multiplatform. However, I guess that we should create some sort of demo project with KMM support to be sure.

@serras
Copy link
Collaborator

serras commented Nov 2, 2022

I've added information about how to run KopyKat in a Multiplatform project as part of commit b95740c. @cvb941 what do you think?

@cvb941
Copy link
Author

cvb941 commented Nov 3, 2022

Hello, thanks for the activity on this.

I tested this on my project of interest with the following results:

Setting up copycat on kspCommonMainMetadata does not seem to generate any code.
Using kspAndroid instead results in a lot of build errors (excerpt below)

...
e: /Users/cvb941/src/shared/build/generated/ksp/android/androidLocalDebug/kotlin/so/shared/presentation/group/so.shared.presentation.group.GroupDetail$State$Mutable.kt: (68, 83): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun GroupDetail.GroupData.toMutable(): `GroupDetail$GroupData$Mutable` defined in so.shared.presentation.group in file so.shared.presentation.group.GroupDetail$GroupData$Mutable.kt
public fun `EditProfile$Incident$OnAboutMeChange$Mutable`.freeze(): EditProfile.Incident.OnAboutMeChange defined in so.shared.presentation.profile in file so.shared.presentation.profile.EditProfile$Incident$OnAboutMeChange$Mutable.kt
...

@atollk
Copy link

atollk commented Dec 1, 2023

Just wanted to mention that this issue still exists, also for target kspJvm. KopyKat is not usable with Kotlin Multiplatform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants