Skip to content

Clean up the K2 build config #135

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

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Conversation

lppedd
Copy link
Contributor

@lppedd lppedd commented Mar 30, 2025

  • Set LV KotlinVersion.KOTLIN_2_1: this means we're effectively compiling with K2
  • Set JvmTarget.JVM_1_8: no real reason to bump it to 11 imo, but in case let me know the rationale
  • Enabled all the native targets by using kotlin.native.enableKlibsCrossCompilation

@petertrr you can also refactor the publishing step to publish everything in one go now.

@lppedd lppedd force-pushed the build/k2-cleanup branch from 2aaf180 to 36f80c8 Compare March 30, 2025 16:40
Copy link

codecov bot commented Mar 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.82%. Comparing base (0d8025b) to head (36f80c8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #135      +/-   ##
============================================
- Coverage     85.10%   84.82%   -0.29%     
+ Complexity      219      218       -1     
============================================
  Files            29       29              
  Lines           658      659       +1     
  Branches        117      117              
============================================
- Hits            560      559       -1     
- Misses           69       71       +2     
  Partials         29       29              
Flag Coverage Δ
unittests 84.82% <ø> (-0.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

watchosDeviceArm64()

// Deprecated.
// Should follow the same route as official Kotlin libraries
Copy link
Owner

Choose a reason for hiding this comment

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

WDYM by the same route? Sorry, I'm not keeping up with the recent context

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@petertrr basically we should stick to what kotlinx libs do: build for all targets, even if deprecated.
Once (and if) it will get removed, we'll delete that line.

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, thanks for the clarification!

@petertrr petertrr merged commit c611999 into petertrr:main Apr 9, 2025
2 of 3 checks 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.

2 participants