Filter strings.xml with gradle-android-plugin?

前端 未结 2 1057
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 22:07

How would I filter my res/values/strings.xml file?

Something like:


    ${version}
..         


        
2条回答
  •  有刺的猬
    2021-02-04 23:07

    With groovy closure, if you prefer without ant external:

    filter {
        line -> line.replace('${version}', version)
    }
    

提交回复
热议问题