:construction: Weโ€™ve released <https://github.com/...
# compose
d
๐Ÿšง Weโ€™ve released Compose Multiplatform 1.6.0-rc02 with a bug fix in the resource library. This fix introduces breaking changes. Check out the details: ๐Ÿ‘‰ https://kotl.in/4pplj1 See the full changelog: ๐Ÿ‘‰ https://kotl.in/iewqof
๐Ÿ‘ 1
๐Ÿ‘๐Ÿฝ 1
e
The release notes say that when using resources this
Copy code
import <modulePackage>.generated.resources.Res
Should be replaced with
Copy code
import <modulePackage>.generated.resources.Res
import <modulePackage>.generated.resources.*
That doesn't seem right + a lot of projects are configured to not use star imports
๐Ÿ‘€ 1
โž• 7
๐Ÿ™ 1
j
Hehe I love that I update to latest release before its announced ๐Ÿ˜„ I reacted as well on the star imports, as I think collide with default Kotlin guidelines even. Curious how come need to do this, but I presume they shifted from object static constants or such to public variables decoupled from Res class now. Havent checked source code yet.
โž• 1
One nice thing seems to be fixed now, but not mentioned in release, is all gradle lint release tasks gave errors, now doesnt anymore. Doing clean rebuild works much better, and also faster. So thats nice ๐Ÿ™‚
@eygraber Ah ok, seems like they created strings, drawable and such in separate files now, with extension member like this:
Copy code
@ExperimentalResourceApi
internal val Res.drawable.compose_multiplatform: DrawableResource
  get() = Drawable0.compose_multiplatform
Before they were all inside Res class ๐Ÿ™‚
๐Ÿ‘ 1
i
Wildcard usage was described as the fastest way to adapt your code, not as the requirement. We changed the wording.
thank you color 2