Add version name in settings
This commit is contained in:
parent
06126facad
commit
fdd2c5b4e4
@ -22,6 +22,10 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
applicationVariants.all { variant ->
|
||||||
|
variant.resValue "string", "versionName", variant.versionName
|
||||||
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
@ -40,9 +44,9 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
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.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.sqlite:sqlite:2.1.0"
|
||||||
implementation "androidx.preference:preference:1.1.1"
|
implementation "androidx.preference:preference:1.1.1"
|
||||||
|
5
app/src/main/res/drawable/icon_info.xml
Normal file
5
app/src/main/res/drawable/icon_info.xml
Normal file
@ -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>
|
@ -136,7 +136,7 @@
|
|||||||
<string name="query_cursor_null_error_msg">Unable to access this file</string>
|
<string name="query_cursor_null_error_msg">Unable to access this file</string>
|
||||||
<string name="about">About</string>
|
<string name="about">About</string>
|
||||||
<string name="github">GitHub</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="share">Share</string>
|
||||||
<string name="decrypt_files">Export/Decrypt</string>
|
<string name="decrypt_files">Export/Decrypt</string>
|
||||||
<string name="loading_msg_copy">Copying selected items…</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="bitmap_compress_failed">Failed to compress the bitmap.</string>
|
||||||
<string name="file_write_failed">Failed to write the file.</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="error_not_a_volume">Gocryptfs volume not recognized. Please check the selected path.</string>
|
||||||
|
<string name="version">Version</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -49,6 +49,12 @@
|
|||||||
<intent android:action="android.intent.action.VIEW" android:data="https://github.com/hardcore-sushi/DroidFS"/>
|
<intent android:action="android.intent.action.VIEW" android:data="https://github.com/hardcore-sushi/DroidFS"/>
|
||||||
</Preference>
|
</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>
|
</PreferenceCategory>
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
Loading…
Reference in New Issue
Block a user