You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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 ...
...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Changes
check
on 0.24.0-alpha01 #628, Cannot find 'MainViewControllerKt' in scope #639 , Lacking taskcopyFrameworkResourcesToApp
in 0.24.0-alpha-4 #646, Generated Files issue #650, Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' #703registerFont
in FontResource for Apple (thanks, @darronschall) AddregisterFont
to Apple platforms #598pluralStringResource
for Compose (@darronschall) AddpluralStringResource
for Compose. #679&
for Android as just&
#689 , 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 #545stringResource
when locale changed in Compose Android Resource Context can not observe config changed. #533painerResource
for iOS painterResource is too slow on iOS #526base
locale Add option to fill in missing string translations with base translation #118Breaking changes
src/<sourceSet>/resources/MR
tosrc/<sourceSet>/moko-resources
FontResource
s 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)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 hierarchymultiplatformResources
values set from = to set likeresourcesPackage = "org.example.library"
toresourcesPackage.set("org.example.library")
commonMain/resources/MR
tocommonMain/moko-resources
(inner structure of catalog was saved)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:
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.
Beta Was this translation helpful? Give feedback.
All reactions