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

Clean up common source sets #217

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Clean up common source sets #217

merged 3 commits into from
Nov 16, 2023

Conversation

MrHadiSatrio
Copy link
Owner

What has changed

Common source code (ones in commonMain/ and commonTest/) are now free of JVM imports.

Why it was changed

Mostly for hygiene. We don't really have any problems as we do have JVM as one of the targets, but it's still an inappropriate thing to do.

Ever since we upgraded to Kotlin 1.9.x, IntelliJ has been unable to
properly resolve 'kotlin.test.Test'. This turned out to be a known bug
(KT-62368) set to be fixed in Kotlin 2.0. The recommended workaround
for now is to depend on 'kotlin-test-junit' instead.
Common source should not directly depend on a JVM library like JUnit.
Though this is effectively a non-issue because we do have JVM as one of
the targets, it's still an inappropriate thing to do.
Common source should not directly depend on 'java.*' classes.
Though this is effectively a non-issue because we do have JVM as one of
the targets, it's still an inappropriate thing to do.
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@MrHadiSatrio MrHadiSatrio merged commit f4a23e7 into develop Nov 16, 2023
3 checks passed
@MrHadiSatrio MrHadiSatrio deleted the task/kmm_cleanup branch November 16, 2023 17:46
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.

1 participant