Hello everyone, hope you are all doing well! I hav...
# moko
d
Hello everyone, hope you are all doing well! I have been using moko-resources on a project of mine. There is one specific scenario that I noticed. When in
strings.xml
I have a string resource with name length of specific size ex.
Copy code
<string name="confirm_new_password_placeholder">Confirm your new password</string
notice that the name
confirm_new_password_placeholder
had kinda too many characters (32) What happens is that Android works fine but iOS is causing issues and can't handle these resources properly. For example, output text value of
Text(stringResource(MR.strings.confirm_new_password_placeholder))
on Android it would be Confirm your new password on iOS it would be _confirm_new_password_placeholder -_ literally like this Did someone face this issue? using 0.24.0-alpha-1
a
you receive key instead of value on iOS when in iOS bundle not found this string key. Maybe in your project gradle plugin enabled in multiple gradle modules and resources package is same. in this case ios runtime find first bundle with bundle identifier <resources package> but inside no resources. To fix it - set unique resources package for each gradle module. also maybe your bundles not copy to app (if you use static framework) - in this case setup xcode build phase
1
👍 1
d
Okay cool, I will check it out