Repository navigation
0.24.0
#730
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Changes
checkon 0.24.0-alpha01 #628, Cannot find 'MainViewControllerKt' in scope #639 , Lacking taskcopyFrameworkResourcesToAppin 0.24.0-alpha-4 #646, Generated Files issue #650, Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' #703registerFontin FontResource for Apple (thanks, @darronschall) AddregisterFontto Apple platforms #598pluralStringResourcefor Compose (@darronschall) AddpluralStringResourcefor Compose. #679&for Android as justʱ , 0.24.0-beta-03 includes removed strings and fails to build #697 , 0.24.0-beta-3 incorrectly escapes unicode character sequences in iOS strings file #698 , 0.24.0-beta-4 incorrectly handles plurals with"character; displays as\"on iOS and doesn't display on Android. #710 , 0.24.0-beta-5 creates invalid unicode escape sequence #723values()function is available for all resources in shared code Make values() function on ResourceContainer multiplatform #545stringResourcewhen locale changed in Compose Android Resource Context can not observe config changed. #533painerResourcefor iOS painterResource is too slow on iOS #526baselocale Add option to fill in missing string translations with base translation #118Breaking changes
src/<sourceSet>/resources/MRtosrc/<sourceSet>/moko-resourcesFontResources not generates additional object for FontFamily. ,MR.fonts.Arial.regular=>MR.fonts.arial-regularParcelablewas removed (because K2 not support different actuals for expect interface)How to update
For migration from 0.23.0 to 0.24.0 you need do this steps:
resourcesSourceSet- now expect object will be generated in lower source set in hierarchymultiplatformResourcesvalues set from = to set likeresourcesPackage = "org.example.library"toresourcesPackage.set("org.example.library")commonMain/resources/MRtocommonMain/moko-resources(inner structure of catalog was saved)Property generation was changed from:
MR.assets.same_fileto
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.txtin MR will generated:
MR.files.sameFolder.file_txtIn 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:
You need add this in your project:
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
This discussion was created from the release 0.24.0.
All reactions