Can moko.resources be used just to build resource ...
# moko
m
Can moko.resources be used just to build resource files? Why ask? Because with a lot of strings and not many languages, the overhead of writing an actual and expected function for each string means actually writing more not less. Why not simply build the platform specific asset files and let the platform code handle it "natively"?
a
moko-resources works with all resources natively. plugin move resources from common directory to valid dirs in android and ios projects. it's what you want?
m
Perhaps yes. But where are the files it builds? I haven't been able to find them to see. I'm expecting it to be the .lproj files, but that doesn't seem to be the way it works.
a
on ios it in bundle files inside framework
m
Either I can't find it or I've made a mistake somewhere and it's not generated. Where, exactly, should it be? I'm using an XCFramework. I've tried running the command given in the docs from the command line. I've tried
Copy code
./gradlew -p . :mobilemanegesharedmodule:copyResourcesSharedmoduleDebugXCFrameworkToApp \ 
-Pmoko.resources.BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR \
-Pmoko.resources.CONTENTS_FOLDER_PATH=$CONTENTS_FOLDER_PATH
From the project directory but the build fails, complaining
/MyProject:sharedmodule.bundle/Contents/Resources/en.lproj/Localizable.strings (No such file or directory)
Should it work from the cli?