Skip to content

Releases: icerockdev/moko-resources

Release 0.13.1

09 Sep 14:41
5f1cdce
Compare
Choose a tag to compare

Changes

  • fix dependency of compileCommonMainKotlinMetadata to generateMRcommon

Release 0.13.0

06 Sep 14:48
e2750b5
Compare
Choose a tag to compare

Changes

  • Kotlin 1.4.0
  • project configuration with dependencySubstitution and includeBuild

Release 0.12.0

05 Sep 14:14
ae7fa6f
Compare
Choose a tag to compare

Changes

  • #105 support of color references by @color/colorName
  • #99 add support of static ios frameworks by copy resources gradle task (see readme for details)
  • #98 fix ios tests run and add sample of unit tests with resources (in mpp-hierarhical sample)

Thanks

@vchernyshov

Release 0.11.1

29 Aug 10:33
876daec
Compare
Choose a tag to compare

fix ios bundle copy to output framework with async configuration of gradle
fix ios bundle search in runtime (now search done not only in Frameworks but in all application directory (all bundle files search)

Release 0.11.0

30 Jun 12:17
deb51bc
Compare
Choose a tag to compare
  • Added support for multiplatform color resources with light/dark themes (#30)
  • Added additional extension function format for StringResource and PluralsResource (#77)
  • Added possibility to ImageResource creation using resource file name (#81)

Release 0.10.1

02 Jun 12:12
2c00586
Compare
Choose a tag to compare

Changes

  • Fixed generation task work in non-osx systems (#73)
  • New gradle task for fat-framework creation with bundles was created (#75)
  • Fixed equals function of StringDesc (#78, thanks to @dalewking )

Release 0.10.0

05 May 16:42
74b4dc3
Compare
Choose a tag to compare

Changes

  • #18 resources on ios now available with static framework
  • #58 fix generation of actual implementations with different sourcesets configs
  • #48 nested modules now can have resources and it will work on both platforms
  • #44 added FileResource for any format files passed into resources/MR/files - on android it will be raw resource, on iOS - just file in bundle
  • #50 project updated to gradle 6.3
  • #59 added support of multiple strings.xml / plurals.xml
  • #60 fix camelCase in android non filebased resources
  • #61 now export not required for iOS
  • #62 StringDesc now interface and can be extended from outside of library

Migration

StringDesc now not sealed class, so we should import extension functions, which create required implementation. To migrate do:

  1. autoreplace import dev.icerock.moko.resources.desc.StringDesc to import dev.icerock.moko.resources.desc.*
  2. optimize imports (to remove duplicates and star import)

On android for strings and plurals now allowed camelCase name generation, so if you use generated android resources (not MR but R class) and you name resources in camelCase now keys in R will be with camelCase, not lowercase.

StringDesc. LocaleType.System now objects, not class, so use autoreplace LocaleType.System() to LocaleType.System

Release 0.9.1

04 Apr 07:28
1fc79aa
Compare
Choose a tag to compare
  • fix duplication bug #54
  • fix invalid android resource names bug #46

Release 0.9.0

11 Mar 03:07
8ed5009
Compare
Choose a tag to compare

Changes

  • kotlin 1.3.70 #49
  • android plugin 3.6.1 #49
  • gradle 5.6.4 #49
  • runtime localization change for StringDesc#36
  • support of common source set name change #45

Thanks

@ATchernov @dgluhovic

Release 0.8.0

08 Feb 16:18
dbbdb13
Compare
Choose a tag to compare
  • #39 add Parcelable to resources and part of StringDesc
  • #37 fix StringDesc argument in StringDesc format string (thx to @DevTchernov )