File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ REMOTE_LIBRARIES_STRINGS_PATHS = [
49
49
exclusions : [ ]
50
50
}
51
51
] . freeze
52
+ LOCAL_LIBRARIES_STRINGS_PATHS = [
53
+ # NOTE: for those we don't set `add_ignore_attr` to true because we currently use `checkDependencies true` in `WooCommerce/build.gradle`
54
+ # Which will correctly detect strings from the app's `strings.xml` being used by one of the module.
55
+ { library : 'Login Library' , strings_path : './libs/login/src/main/res/values/strings.xml' , source_id : 'module:login' }
56
+ ] . freeze
52
57
53
58
# URL of the GlotPress project containing the app's strings
54
59
GLOTPRESS_APP_STRINGS_PROJECT_URL = 'https://translate.wordpress.com/projects/woocommerce/woocommerce-android/'
@@ -766,6 +771,9 @@ platform :android do
766
771
#
767
772
desc 'Merge libraries strings files into the main app one'
768
773
lane :localize_libs do
774
+ # Merge `strings.xml` files of libraries hosted in this repo (in `./libs` folder) into the `strings.xml` of the main app
775
+ an_localize_libs ( app_strings_path : MAIN_STRINGS_PATH , libs_strings_path : LOCAL_LIBRARIES_STRINGS_PATHS )
776
+
769
777
REMOTE_LIBRARIES_STRINGS_PATHS . each do |lib |
770
778
download_path = android_download_file_by_version (
771
779
library_name : lib [ :name ] ,
You can’t perform that action at this time.
0 commit comments