Enol Simón
02/21/2024, 11:53 AMmoko-resources
to the new composeResources
and I will leave here my first experiences and problems:
• The first problem is the multi-module issue that Jetbrains is already working on, the Resources are only available in shared
module. As I still need to use the resources in other modules, this was my first barrier.
• There are some languages available in android
and moko-resources
that are not valid with composeResources
. I found for example the case of Asturian
(values-ast). Adding this directory, the application does not compile.
• Some Android libraries, needs the resourceId
to work, I am using them in the actual
implementation for android
and I am not able to get it with the new approach.
• It is not possible to have several string
files, inside values
you can have only strings.xml
but you can not other string files with different names (I was doing that with moko
and in android
so I can divide the strings by topics).
• After adding few languages, I started to have an issue related with MethodTooLargeException
that I was not able to fix.
• I could not find a function getDrawable
similar to the existing getString
that can be accessed by non-composable code.
• I was not able to run the application on iOS due to a MissingResourceException
.
After all of this problems, I decided to continue using moko
for now. I understand that some of these problems can be my problems and not everybody will have them, however, it is a big step and I am very thankful to Jetbrains guys for the effort, but for now I am unable to use the new composeResources
. Hopefully it will be more complete in the future.Djuro
02/21/2024, 12:50 PMKonstantin Tskhovrebov
02/26/2024, 2:58 PMEnol Simón
02/28/2024, 9:41 AMMofe Ejegi
03/05/2024, 2:11 PMMissingResourceException
was particularly annoying on iOS, but I read somewhere about some incompatibility between composeResources
and mokoResources
and getting rid of the latter completely from my project stopped that from happening.Eury Perez
03/14/2024, 12:12 PMMissingResourceException
, I read you stated that multi-module is still not supported. To my surprise, I have 2 projects in one it actually works in a module other than the shared one, and in another project only works in the shared module, here are the reproducers:
1. Working in both shared and signin module: Drive .zip
2. Only working in the composeApp module: Github branch
I'm wondering if multi-module is not supported, how is it working on project 1. I don't remember doing anything special, both are projects created in Android Studio with the KMM Plugin, can you take a look for me, please?