Open Takashi-san opened 2 years ago
seems that all configured ok.
can you show contents of compiled framework and app?
run ls -lR .
inside compiled app and compiled framework
The result from path android/shared_core/build/cocoapods/framework :
total 0
drwxr-xr-x 7 myUser staff 224 18 Abr 12:25 shared_core.framework
./shared_core.framework:
total 120968
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 Headers
-rw-r--r-- 1 myUser staff 949 18 Abr 12:26 Info.plist
drwxr-xr-x 3 myUser staff 96 18 Abr 11:28 Modules
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 android:shared_core.bundle
-rw-r--r-- 1 myUser staff 61312288 18 Abr 12:26 shared_core
./shared_core.framework/Headers:
total 4224
-rw-r--r-- 1 myUser staff 1644008 18 Abr 12:26 shared_core.h
./shared_core.framework/Modules:
total 8
-rw-r--r-- 1 myUser staff 108 18 Abr 12:26 module.modulemap
./shared_core.framework/android:shared_core.bundle:
total 0
drwxr-xr-x 4 myUser staff 128 18 Abr 12:25 Contents
./shared_core.framework/android:shared_core.bundle/Contents:
total 8
-rw-r--r-- 1 myUser staff 507 18 Abr 12:26 Info.plist
drwxr-xr-x 8 myUser staff 256 18 Abr 12:25 Resources
./shared_core.framework/android:shared_core.bundle/Contents/Resources:
total 1296
-rw-r--r-- 1 myUser staff 660184 18 Abr 12:26 Assets.car
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 Base.lproj
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 en.lproj
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 es.lproj
drwxr-xr-x 2 myUser staff 64 18 Abr 12:25 files
drwxr-xr-x 3 myUser staff 96 18 Abr 12:25 pt.lproj
./shared_core.framework/android:shared_core.bundle/Contents/Resources/Base.lproj:
total 400
-rw-r--r-- 1 myUser staff 203562 18 Abr 12:26 Localizable.strings
./shared_core.framework/android:shared_core.bundle/Contents/Resources/en.lproj:
total 360
-rw-r--r-- 1 myUser staff 181955 18 Abr 12:26 Localizable.strings
./shared_core.framework/android:shared_core.bundle/Contents/Resources/es.lproj:
total 392
-rw-r--r-- 1 myUser staff 199358 18 Abr 12:26 Localizable.strings
./shared_core.framework/android:shared_core.bundle/Contents/Resources/files:
total 0
./shared_core.framework/android:shared_core.bundle/Contents/Resources/pt.lproj:
total 400
-rw-r--r-- 1 myUser staff 203562 18 Abr 12:26 Localizable.strings
What are you looking for in the compiled app path? If I try to run this on the android/app/build folder the log is too big and I can't share it.
in compiled app i see that bundle with resources exist and should correctly read. please try to configure reproducer from sample of moko-resources
Facing same issue
Hi, I've been trying to use the string resource on the iOS side but I'm always getting back the string key instead of its value. Ways that I have tried to access the resource:
The MokoUtils on android side:
I believe that it was unable to find my bundle according to what I saw in other issues and the log of resource.bundle. I tried to load the bundle but it never loaded.
Maybe some configuration of my project isn't right, but I can't figure out what is it that is wrong. Android project build.gradle:
shared_core module build.gradle:
Localization values added to the info.plist of iOS app project and target:
Build script phase added to the end of the build phases:
Any help now is greatly appreciated.