Kotlin 2.2.0 and Compose Strong Skipping released in SkipUnit 1.3.0 #459
Replies: 1 comment
-
We've discovered that there is at least one popular Kotlin library that is not yet compatible with Kotlin 2.2: Dagger. This issue is being tracked at google/dagger#4779, where they mention that the next version is expected to be Kotlin 2.2 compatible. This will not affect all-Skip app projects (since we don't use Dagger or Hilt), but if you are exporting Skip libraries to integrate into a separate Android app, you may need to temporarily pin your SkipUnit version to the previous release (1.2.1) which had the Kotlin dependency set to 2.0.0. You would do this by editing your top-level import PackageDescription
let package = Package(
name: "some-project",
products: [
.library(name: "SomeProject", targets: ["SomeProject"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "1.6.0"),
.package(url: "https://source.skip.tools/skip-unit.git", exact: "1.2.1"),
// other project dependencies…
],
targets: [
.target(name: "SomeProject", dependencies: [
.product(name: "SkipUnit", package: "skip-unit"),
// other target dependencies…
], plugins: [.plugin(name: "skipstone", package: "skip")]),
]
) We anticipate that most popular Android projects will gain Kotlin 2.2 support in the near future, so this should only be a temporary measure. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have released SkipUnit 1.3.0. SkipUnit is the base module in the Skip stack, and controls the version of Kotlin that a project uses.
This update upgrades the Kotlin version in use from 2.0.0 to 2.2.0. We have tested all the Skip projects against this new version, but as it is a signifiant minor upgrade to the Kotlin language, it has the potential to introduce incompatibilities or behavioral changes if your project uses custom Kotlin extensively. In these cases, you may want to review the Kotlin 2.2.0 release notes, as well as the release notes from the version upgrades back to 2.0.0.
One signifiant change that has been added in Kotlin 2.0.20 is the Compose "strong skipping" mode, described at https://developer.android.com/develop/ui/compose/performance/stability/strongskipping. We have made some updates to SkipUI 1.34.0 to accommodate this new mode.
To update the Skip module versions, you can run Xcode's
File
/Packages
/Update to Latest Package Versions
, or when building from the command-line, by runningswift package update
.As always, please let us know if you encounter any issues, either through these discussion forums, through issue reports, or on our Slack.
Beta Was this translation helpful? Give feedback.
All reactions