Skip to content

Releases: icerockdev/moko-resources

0.24.3

22 Sep 17:08
2c48480
Compare
Choose a tag to compare

Changes

  • #762 #769 ios static framework custom configurations support fix
  • #768 fix escaped @ char

Thanks

@ExNDY @Syer10

0.24.2

23 Aug 06:27
4fefda5
Compare
Choose a tag to compare

Changes

  • #755 removed @ThreadLocal annotation

Thanks

@romanandreyvich

0.24.1

20 Jun 11:00
5def4b4
Compare
Choose a tag to compare

Changes

  • fix #732 build error with empty string resources

Thanks

@Syer10

0.24.0

09 Jun 16:39
907e04a
Compare
Choose a tag to compare

Changes

  • Support of Kotlin 1.9.20+ #477, #510, #531, #532, #535, #555, #557, #562, #576, #590, #594, #606, #612, #613, #618, #621, #628, #639 , #646, #650, #703
  • Support of Compose Multiplatform 1.6.0+ #530, #685
  • Gradle Configuration-Cache support #311, #607
  • Adaptation for new Android Gradle Plugin Layout V2 (fix for broken android sourceSets) #642 , #655
  • Adaptation of plugin for Kotlin 2.0 changes #564, #595
  • Gradle plugin was reworked and simplified #474
  • Support of custom resources directory (additional contains support of tasks result, thanks @Burtan) [Readme] #641 , #667
  • Support of SourceSet resources #204, #357
  • Support of Dark/Light themed images (thanks, @lammertw) [Readme] #543, #672 , #676 , #680 , #728
  • Support of WatchOs target (thanks, @FabioCornelli) #648
  • Removed: Usage of moko.parcelize (check how to update for workaround) #678
  • Fixed: Usage of colorResources on iOS when resource was changed #681
  • Fixed: getAssetByFilePath for files without extension (thanks, @luca992) #550
  • Added registerFont in FontResource for Apple (thanks, @darronschall) #598
  • Improve performance of first time usage resources on Apple targets #708
  • Added simply usage of plurals with pluralStringResource for Compose (@darronschall) #679
  • Reworked strings and plurals processing in gradle plugin #462, #673 , #689 , #697 , #698 , #710 , #723
  • Removed unused compose desktop dependency #718
  • Fix custom baseName for apple frameworks in CopyResources tasks #709
  • Fix assets path on Windows #700
  • Fix js tests on CI #669
  • Described in readme about Xcode sandbox usage #643
  • Added control of actool minimal deployment version #619
  • Show error in gradle log if iOS Assets can't compile #610
  • values() function is available for all resources in shared code #545
  • Added recomposition of stringResource when locale changed in Compose #533
  • Optimized painerResource for iOS #526
  • MR will not be generated if no resources in module #418
  • Fixed code completion in XCode with static framework and cocoapods #387
  • Now files and assets resources names contains extension in name (to support same name with different extensions) #350
  • Missed translations will use base locale #118

Breaking changes

  • Minimal: Kotlin 1.9.20+
  • Minimal: Compose Multiplatform: 1.6.0+
  • Resources moved from src/<sourceSet>/resources/MR to src/<sourceSet>/moko-resources
  • FontResources not generates additional object for FontFamily. , MR.fonts.Arial.regular => MR.fonts.arial-regular
  • Parcelable was removed (because K2 not support different actuals for expect interface)
  • Assets and files now contain extension in property name
  • Disable warning notification about static framework moved from plugin configuration to gradle.properties [Readme]

How to update

For migration from 0.23.0 to 0.24.0 you need do this steps:

  • Remove all workaround for compatibility 0.23.0 with kotlin 1.9.x+
  • Remove gradle config resourcesSourceSet - now expect object will be generated in lower source set in hierarchy
  • Change all multiplatformResources values set from = to set like resourcesPackage = "org.example.library" to resourcesPackage.set("org.example.library")
  • Move resources from commonMain/resources/MR to commonMain/moko-resources (inner structure of catalog was saved)
  • Update plugin settings, please check Readme
  • Assets and Files changes:
    Property generation was changed from:
    MR.assets.same_file
    to
    MR.assets.same_file_ext (now include file extension).
    Now property save catalog hierarchy if your file is in:
    commonMain/moko-resources/files/sameFolder/file.txt
    in MR will generated:
    MR.files.sameFolder.file_txt
    In your code need update on usage of new style property

If you use other MOKO library where has moko-resources version less 0.24.0 (or other libs with MOKO), that workaround help you. If you has exception on iOS target like:

...
error: KLIB resolver: Could not find "dev.icerock.moko:parcelize" in ...
...

You need add this in your project:

dependencies {
    iosMainImplementation("dev.icerock.moko:parcelize:0.9.0")
}

That dependency can be removed after all libs will be updated on 0.24.0+.

Thanks

@ExNDY @Pschsch @illarionov @lammertw @FabioCornelli @darronschall @luca992 @martinbonnin @Burtan @shtolik @Syer10

0.24.0-beta-5

22 May 10:47
8f7f9e4
Compare
Choose a tag to compare
0.24.0-beta-5 Pre-release
Pre-release

This is an beta version. Bugs may be present.

Changes

in compare of 0.24.0-beta-4

  • #707 update sample to k2
  • #710 fix invalid escaping of characters
  • #709 fix custom baseName usage with apple targets
  • #708 fix slow search of bundle on apple targets
  • #718 remove unecessary desktop dependency for resources-compose
  • #521 fix plural fallback on jvm

Breaking changes

To use static XCFramework now you should enable creation of copyResources tasks in multiplatformResources block.

multiplatformResources {
    configureCopyXCFrameworkResources("nameOfXCFramework")
}

Thanks

@Lucchetto

0.24.0-beta-4

16 May 05:40
0b1b6cc
Compare
Choose a tag to compare
0.24.0-beta-4 Pre-release
Pre-release

This is an beta version. Bugs may be present.

Changes

in compare of 0.24.0-beta-3

  • #685 fix strings encoding
  • #669 fix JS tests and resources access (also StringDesc.localized was renamed to StringDesc.toLocalizedString)
  • #697 fix missed base texts generation
  • #700 fix assets in directories on windows

0.24.0-beta-3

04 May 06:27
Compare
Choose a tag to compare
0.24.0-beta-3 Pre-release
Pre-release

This is an beta version. Bugs may be present.

Changes

in compare of 0.24.0-beta-2

  • #688 rename arg of pluralStringResource
  • #689 fix escaping of strings on Android
  • #669 fix kotlin iOS test run
  • #695 automatically dependsOn tasks that produce resources

0.24.0-beta-2

27 Apr 15:24
Compare
Choose a tag to compare
0.24.0-beta-2 Pre-release
Pre-release

This is an beta version. Bugs may be present.

Changes

in compare of 0.24.0-beta-1

  • #672 fix crash with short names of images
  • #673 fix new line support in texts
  • #681 fix color runtime change
  • #680 fix light-only images dark mode support

0.24.0-beta-1

19 Apr 17:19
7dcf26b
Compare
Choose a tag to compare
0.24.0-beta-1 Pre-release
Pre-release

This is an beta version. Bugs may be present.

Changes

in compare of 0.24.0-alpha-5

  • #595 Support Kotlin 2.0, removed expect/actual interfaces
  • Generation of Assets and Files as in hierarchy tree
  • #641 Custom resources sourceSet management api
  • #648 watchOS support
  • #624 Support dark theme for image resources
  • #533 Android configuration change support without context changes
  • #655 fix Jetpack Android preview and android resources sourceSet indexing
  • fix crash on read svg files for ImageResource of jvm target
  • acToolMinimumDeploymentTarged renamed to iosMinimumDeploymentTarget

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)