From fdd2c5b4e412ad1f453c0910c4ff4e8a3e3ea788 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Thu, 15 Oct 2020 18:31:49 +0200 Subject: [PATCH] Add version name in settings --- app/build.gradle | 8 ++++++-- app/src/main/res/drawable/icon_info.xml | 5 +++++ app/src/main/res/values/strings.xml | 3 ++- app/src/main/res/xml/root_preferences.xml | 6 ++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/drawable/icon_info.xml diff --git a/app/build.gradle b/app/build.gradle index 1522041..3d49eb2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,6 +22,10 @@ android { } } + applicationVariants.all { variant -> + variant.resValue "string", "versionName", variant.versionName + } + buildTypes { release { minifyEnabled true @@ -40,9 +44,9 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation "androidx.core:core-ktx:1.3.1" + implementation "androidx.core:core-ktx:1.3.2" implementation "androidx.appcompat:appcompat:1.2.0" - implementation "androidx.constraintlayout:constraintlayout:2.0.1" + implementation "androidx.constraintlayout:constraintlayout:2.0.2" implementation "androidx.sqlite:sqlite:2.1.0" implementation "androidx.preference:preference:1.1.1" diff --git a/app/src/main/res/drawable/icon_info.xml b/app/src/main/res/drawable/icon_info.xml new file mode 100644 index 0000000..654cfb3 --- /dev/null +++ b/app/src/main/res/drawable/icon_info.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5e5c726..cc1cec2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -136,7 +136,7 @@ Unable to access this file About GitHub - Want to read the documentation, review the source code, request feature, report bug… Check the DroidFS\'s repository ! + Want to read the documentation, review the source code, request feature, report bug… Check the DroidFS repository ! Share Export/Decrypt Copying selected items… @@ -178,4 +178,5 @@ Failed to compress the bitmap. Failed to write the file. Gocryptfs volume not recognized. Please check the selected path. + Version diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml index e30ed38..00ba6b5 100644 --- a/app/src/main/res/xml/root_preferences.xml +++ b/app/src/main/res/xml/root_preferences.xml @@ -49,6 +49,12 @@ + + \ No newline at end of file