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

Fix ksp code generation for non-jvm target #141

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

kadirkid
Copy link
Contributor

@kadirkid kadirkid commented Oct 4, 2023

When jvm isn't a target, ksp code generation fails due to the wrong srcDir being generated and the wrong dependency and task being set

When jvm isn't a target, ksp code generation fails due to the wrong srcDir being generated and the wrong dependency and task being set
val selectedTarget =
targets.firstOrNull { it.preset?.name == "jvm" }
?: targets.firstOrNull { it.preset?.name == "android" }
?: targets.first { it.preset?.name != "metadata" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not rely on metadata without bothering with jvm and/or android?

@minaEweida minaEweida merged commit f0c478d into master Oct 10, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants