android - How to read latest property in property file that is updated earlier in gradle execution -
for android project have configured defaultconfig such gets versionname androidmanifest.xml in generated apk version property in ./gradle.properties. works great. here snippet build.gradle:
android { .... defaultconfig { minsdkversion 16 //4.1.2 targetsdkversion 19 //4.4 kitkat versionname = version //read gradle.properties ... }
the problems when utilize townsfolk/gradle-release plugin plugin updates property in ./gradle.properties (bumps next release name) before in execution.
in scenario versionname read original ./gradle.properties file before modified gradle-release plugin.
how can forcefulness reading of property file in time pick latest property settings? tia help
android groovy gradle
No comments:
Post a Comment