Is there a way to pass ant variables to java code (android)?

前端 未结 3 1235
滥情空心
滥情空心 2021-01-25 05:59

I like to include some build variables in my application. For example a buildnumber. Can I pass some variables from a ant build script to my Android application and use that var

3条回答
  •  不知归路
    2021-01-25 06:34

    Use an ant task (such as replaceregexp) to insert the build numbers and other variables into a class for that purpose.

    
    

    Or something similar. Basically you want to compile the information into a class as part of the build process.

提交回复
热议问题