Skip to content

Deps: Update Kotlin to 2.1.21 #389

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

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Deps: Update Kotlin to 2.1.21 #389

wants to merge 29 commits into from

Conversation

buenaflor
Copy link
Contributor

Kotlin 2.1.21 adds support for Xcode 16.3 and higher so this is important

Also update the compose version for the sample apps

@buenaflor buenaflor requested a review from romtsn as a code owner May 16, 2025 12:44
Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.75%. Comparing base (4abc388) to head (0cbb440).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
- Coverage   79.97%   79.75%   -0.23%     
==========================================
  Files          44       44              
  Lines         814      815       +1     
  Branches      110      110              
==========================================
- Hits          651      650       -1     
- Misses        107      109       +2     
  Partials       56       56              

☔ 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.

@buenaflor buenaflor marked this pull request as draft May 16, 2025 13:14
@buenaflor
Copy link
Contributor Author

Setting it to draft, lots of problems with the K2 compiler right now

Comment on lines 46 to -47
public var contexts: Map<String, Any> = mapOf()
internal set
Copy link
Contributor Author

@buenaflor buenaflor Jun 27, 2025

Choose a reason for hiding this comment

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

internal set was what messed up the K2 compiler when compiling for native targets. admittedly I have no idea why but it compiles without it 😅

@@ -31,5 +30,5 @@ internal fun wrapUnhandledExceptionHook(hook: (Throwable) -> Unit) {
prevHook.value?.invoke(it)
terminateWithUnhandledException(it)
}
prevHook.value = setUnhandledExceptionHook(wrappedHook.freeze())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

freeze() is deprecated / not needed anymore in this kotlin version

@buenaflor buenaflor marked this pull request as ready for review June 28, 2025 12:52
@buenaflor
Copy link
Contributor Author

@romtsn ready for review when you hve time 🙏

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