Skip to content

Releases: icerockdev/moko-resources

0.24.0-alpha-5

26 Feb 01:56
Compare
Choose a tag to compare
0.24.0-alpha-5 Pre-release
Pre-release

This is an alpha version. Bugs may be present. Any new features may change their API before release.

Changes

  • fix registration of copyFrameworkResourcesToApp task without cocoapods usage (invalid property was used)

0.24.0-alpha-4

13 Feb 02:51
Compare
Choose a tag to compare
0.24.0-alpha-4 Pre-release
Pre-release

This is an alpha version. Bugs may be present. Any new features may change their API before release.

Changes

  • fix missed copyFrameworkResourcesToApp task for case when framework prefix is empty

0.24.0-alpha-3

05 Feb 12:40
Compare
Choose a tag to compare
0.24.0-alpha-3 Pre-release
Pre-release

This is an alpha version. Bugs may be present. Any new features may change their API before release.

Changes

  • fix missed copyFrameworkResourcesToApp task
  • fix IDE Gradle Sync issue (Querying the mapped value of provider(java.util.Set) before task ':common:resources:generateMRandroidDebug' has completed is not supported)
  • migrate android source sets configuration to Android Gradle plugin Variants API. This should fix issues with explicit gradle task dependencies

0.24.0-alpha-2

21 Jan 16:42
Compare
Choose a tag to compare
0.24.0-alpha-2 Pre-release
Pre-release

This is an alpha version. Bugs may be present. Any new features may change their API before release.

Changes

  • fix deep hierarchy actual generation

0.24.0-alpha-1

15 Jan 02:19
Compare
Choose a tag to compare
0.24.0-alpha-1 Pre-release
Pre-release

This is an alpha version. Bugs may be present. Any new features may change their API before release.

Changes

  • Kotlin 1.9 support (tested on kotlin 1.9.10, 1.9.20)
  • Compose Multiplatform 1.5 support (tested on 1.5.11)
  • Gradle Configuration Cache support
  • Multiple resources source directories support (now you can store resources in any kotlin source set - in commonMain for shared resources and iosMain for ios, for example)
  • Added config to control apple actool minimal deployment target (acToolMinimalDeploymentTarget)

Breaking changes

  • resources now moved from src/<sourceSet>/resources/MR to src/<sourceSet>/moko-resources
  • fonts now generated without inner objects - old generation style was MR.fonts.Arial.italic now MR.fonts.arial-italic
  • assets now generated without inner objects - old generation style was MR.assets.dir.innerdir.myasset now MR.assets.myasset - this will be fixed later

How to update

  1. change version of moko-resources gradle plugin and runtime library to 0.24.0-alpha-1
  2. change version of kotlin to 1.9+ (1.9.10+ to support xcode 15 for iOS)
  3. change version of compose multiplatform to 1.5+ (better to use CM 1.5.11 and kotlin 1.9.21)
  4. change version of android gradle plugin to 8.1.0+
  5. change version of gradle to 8.0+
  6. move resources from src/<sourceSet>/resources/MR to src/<sourceSet>/moko-resources
  7. remove gradle config resourcesSourceSet - now expect object will be generated in lower source set in hierarchy
  8. change all multiplatformResources values set from = to set like resourcesPackage = "org.example.library" to resourcesPackage.set("org.example.library")
  9. remove any used workaround hacks from gradle config (like add dependsOn(commonMain) in each source set or direct add of generated kotlin source directories)

if you use fonts or assets - you should update your code to new generation structure (no inner objects in fonts and assets now).

If you have some issues

At first please compare your setup with samples in release branch.
If you not find solution with samples - read next block.

Call to feedback

In this release gradle plugin was rewritten to fix fundamental problems. All sample projects now compiles and works fine, but in real projects can be some new cases that will not work. Please write us in attached to this release discussion. Write about successful works case, about bugs, any feedback about this release.

0.23.0

04 Jun 15:50
beb3fb2
Compare
Choose a tag to compare

Changes

  • #464 added FontResource.asFont for compose
  • #468 fix Indonesian language support on Android
  • #460 fix support of kotlin 1.8.20 on Web

Thanks

@chrisbanes

0.22.3

24 May 11:38
2c14411
Compare
Choose a tag to compare

Changes

  • #489 fix of colors on native macOS Compose Multiplatform target

0.22.2

23 May 13:18
25e4f29
Compare
Choose a tag to compare

Changes

  • hotfix of #492 - apple assets not compile

0.22.1

20 May 19:51
Compare
Choose a tag to compare

Changes

  • #466 fix SVG support in AGP 8
  • #472 increase limit of string format for iOS

Thanks

@warnyul @andreabusi @maverick-2013

0.22.0

25 Apr 10:48
09541e6
Compare
Choose a tag to compare

Changes

  • #29 #155 support of vector images (svg)

Thanks

@warnyul