diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 95a044f..2dfa20f 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -24,9 +24,6 @@ android { versionName = "1.4.0" // 🚀 v1.4.0: Checklists, Multi-Device Sync Fixes, UX Improvements testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" - - // 🔥 NEU: Build Date für About Screen - buildConfigField("String", "BUILD_DATE", "\"${getBuildDate()}\"") } // Disable Google dependency metadata for F-Droid/IzzyOnDroid compatibility @@ -144,12 +141,6 @@ dependencies { androidTestImplementation(libs.androidx.espresso.core) } -// 🔥 NEU: Helper function für Build Date -fun getBuildDate(): String { - val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US) - return dateFormat.format(Date()) -} - // ⚡ v1.3.1: ktlint deaktiviert wegen Parser-Problemen // Aktivieren in v1.4.0 wenn Code-Stil bereinigt wurde // ktlint { diff --git a/android/app/src/main/java/dev/dettmer/simplenotes/SettingsActivity.kt b/android/app/src/main/java/dev/dettmer/simplenotes/SettingsActivity.kt index 0b8d6d6..a4c926f 100644 --- a/android/app/src/main/java/dev/dettmer/simplenotes/SettingsActivity.kt +++ b/android/app/src/main/java/dev/dettmer/simplenotes/SettingsActivity.kt @@ -371,13 +371,12 @@ class SettingsActivity : AppCompatActivity() { * Setup about section with version info and clickable cards */ private fun setupAboutSection() { - // Display app version with build date + // Display app version try { val versionName = BuildConfig.VERSION_NAME val versionCode = BuildConfig.VERSION_CODE - val buildDate = BuildConfig.BUILD_DATE - textViewAppVersion.text = "Version $versionName ($versionCode)\nErstellt am: $buildDate" + textViewAppVersion.text = "Version $versionName ($versionCode)" } catch (e: Exception) { Logger.e(TAG, "Failed to load version info", e) textViewAppVersion.text = "Version nicht verfügbar"