How to add string resource to strings.xml file in cordova project

Upon release cordova build android, a file is automatically created build.gradle.
I would like this script to insert a variable into a file strings.xml. I can do this by adding a line resValueto build.gradle, but I do not want to modify this automatically generated file.
Anyway to achieve this?

+4
source share
1 answer

You can add a line to the plugin.xml file.

    <config-file target="res/values/strings.xml" parent="/*">
        <string name="pick_any_option">Pick any option...</string>
    </config-file> 
-1
source

Source: https://habr.com/ru/post/1618349/


All Articles