Commit b88069db authored by Oscar Megia Lopez's avatar Oscar Megia Lopez
Browse files

version 1.0.31 (20)

Updated build.gradle to have the same build number in version.properties
file than in About screen.
parent d800117d
......@@ -14,15 +14,13 @@ android {
if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
versionBuild = versionProps['VERSION_BUILD'].toInteger()
versionBuild = versionProps['VERSION_BUILD'].toInteger() + 1
} else {
throw new FileNotFoundException("Could not read version.properties!")
}
/*Wrapping inside a method avoids auto incrementing on every gradle task run. Now it runs only when we build apk*/
ext.autoIncrementBuildNumber = {
if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
......@@ -42,12 +40,14 @@ android {
versionName "1.0." + versionBuild
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
// Hook to check if the release/debug task is among the tasks to be executed.
//Let's make use of it
gradle.taskGraph.whenReady {taskGraph ->
......
......@@ -9,7 +9,7 @@ public class AcercaDeActivity extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.acerca_de);
String sAcercade = getResources().getString(R.string.mensaje_acerca_de_google,
String sAcercade = getResources().getString(R.string.mensaje_acerca_de,
BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE);
final TextView mTextView = (TextView) findViewById(R.id.TextView01);
mTextView.setText(sAcercade);
......
#Sun Aug 04 20:40:55 GMT+01:00 2019
VERSION_BUILD=27
#Sun Aug 04 21:07:38 GMT+01:00 2019
VERSION_BUILD=31
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment