I'm experimenting with new Android build system based on Gradle and I'm thinking, what is the best way to autoincrease versionCode with it. I am thinking about two options
- create versionCode file, read number from it, increase it and write it back to the file
- parse AndroidManifest.xml, read versionCode from it, increase it and write it back to the AndroidManifest.xml
Is there any more simple or suitable solution?
Has anyone used one of mentiod options and could share it with me?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…