Skip to content

Commit dee8523

Browse files
committed
fix: Remove dynamic build date for Reproducible Builds
Fixes #7 - Thanks @IzzySoft for reporting and investigating! Removed: - getBuildDate() function from build.gradle.kts - BUILD_DATE buildConfigField - Build date display in SettingsActivity Sorry for the hour of work this caused - will be more careful about RB in the future.
1 parent fbcca38 commit dee8523

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

android/app/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ android {
2424
versionName = "1.4.0" // 🚀 v1.4.0: Checklists, Multi-Device Sync Fixes, UX Improvements
2525

2626
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
27-
28-
// 🔥 NEU: Build Date für About Screen
29-
buildConfigField("String", "BUILD_DATE", "\"${getBuildDate()}\"")
3027
}
3128

3229
// Disable Google dependency metadata for F-Droid/IzzyOnDroid compatibility
@@ -144,12 +141,6 @@ dependencies {
144141
androidTestImplementation(libs.androidx.espresso.core)
145142
}
146143

147-
// 🔥 NEU: Helper function für Build Date
148-
fun getBuildDate(): String {
149-
val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US)
150-
return dateFormat.format(Date())
151-
}
152-
153144
// ⚡ v1.3.1: ktlint deaktiviert wegen Parser-Problemen
154145
// Aktivieren in v1.4.0 wenn Code-Stil bereinigt wurde
155146
// ktlint {

android/app/src/main/java/dev/dettmer/simplenotes/SettingsActivity.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,12 @@ class SettingsActivity : AppCompatActivity() {
371371
* Setup about section with version info and clickable cards
372372
*/
373373
private fun setupAboutSection() {
374-
// Display app version with build date
374+
// Display app version
375375
try {
376376
val versionName = BuildConfig.VERSION_NAME
377377
val versionCode = BuildConfig.VERSION_CODE
378-
val buildDate = BuildConfig.BUILD_DATE
379378

380-
textViewAppVersion.text = "Version $versionName ($versionCode)\nErstellt am: $buildDate"
379+
textViewAppVersion.text = "Version $versionName ($versionCode)"
381380
} catch (e: Exception) {
382381
Logger.e(TAG, "Failed to load version info", e)
383382
textViewAppVersion.text = "Version nicht verfügbar"

0 commit comments

Comments
 (0)