LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.14k stars 167 forks source link

chore(deps): update kotlin monorepo to v2 (major) #1523

Closed MV-GH closed 1 month ago

MV-GH commented 1 month ago

The 2.0.0 kotlin compiler has been released already. It just moved now to a plugin

https://developer.android.com/jetpack/androidx/releases/compose-kotlin

MV-GH commented 1 month ago

Mostly from the noise in the kotlin compose slack channel

Also beware that kotlin compiler 2 brings some changes to recompositions. Strong skipping is now enabled by default. This is good but might cause some issues if we have something wrongly configured. So I would at least wait a bit to do a release.

https://medium.com/androiddevelopers/jetpack-compose-strong-skipping-mode-explained-cbdb2aa4b900

Important changes

  • Composables with unstable parameters can be skipped.
  • Unstable parameters are compared for equality via instance equality (===)
    • Stable parameters continue to be compared for equality with Object.equals()
  • All lambdas in composable functions are automatically remembered. This means you will no longer have to wrap lambdas in remember to ensure a composable that uses a lambda, skips.

That last one is very good, many of my recompositions changes were that, (my PR is getting pretty far but will have to change now)

dessalines commented 1 month ago

Sweet.