Browse Source

Add version name in settings

master
Hardcore Sushi 12 months ago
parent
commit
fdd2c5b4e4
  1. 8
      app/build.gradle
  2. 5
      app/src/main/res/drawable/icon_info.xml
  3. 3
      app/src/main/res/values/strings.xml
  4. 6
      app/src/main/res/xml/root_preferences.xml

8
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"

5
app/src/main/res/drawable/icon_info.xml

@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/>
</vector>

3
app/src/main/res/values/strings.xml

@ -136,7 +136,7 @@
<string name="query_cursor_null_error_msg">Unable to access this file</string>
<string name="about">About</string>
<string name="github">GitHub</string>
<string name="github_summary">Want to read the documentation, review the source code, request feature, report bug… Check the DroidFS\'s repository !</string>
<string name="github_summary">Want to read the documentation, review the source code, request feature, report bug… Check the DroidFS repository !</string>
<string name="share">Share</string>
<string name="decrypt_files">Export/Decrypt</string>
<string name="loading_msg_copy">Copying selected items…</string>
@ -178,4 +178,5 @@
<string name="bitmap_compress_failed">Failed to compress the bitmap.</string>
<string name="file_write_failed">Failed to write the file.</string>
<string name="error_not_a_volume">Gocryptfs volume not recognized. Please check the selected path.</string>
<string name="version">Version</string>
</resources>

6
app/src/main/res/xml/root_preferences.xml

@ -49,6 +49,12 @@
<intent android:action="android.intent.action.VIEW" android:data="https://github.com/hardcore-sushi/DroidFS"/>
</Preference>
<Preference
android:key="version"
android:icon="@drawable/icon_info"
android:title="@string/version"
android:summary="@string/versionName"/> <!--added by gradle at build time-->
</PreferenceCategory>
</PreferenceScreen>
Loading…
Cancel
Save