Skip to content

fix: use build-time config for copyright year#510

Merged
torlando-tech merged 1 commit intomainfrom
fix/copyright-year-buildconfig-main
Feb 20, 2026
Merged

fix: use build-time config for copyright year#510
torlando-tech merged 1 commit intomainfrom
fix/copyright-year-buildconfig-main

Conversation

@torlando-tech
Copy link
Copy Markdown
Owner

Summary

  • Replaces hardcoded "© 2025" with BuildConfig.COPYRIGHT_YEAR set at build time
  • Copyright year is an intentional release-time decision, not a runtime auto-update

Closes #490. Supersedes #495 and #503.

Changes

File Change
app/build.gradle.kts Add COPYRIGHT_YEAR BuildConfig field
AboutCard.kt:145 Use BuildConfig.COPYRIGHT_YEAR instead of hardcoded "2025"

Test plan

  • Open Settings > About — verify copyright shows "© 2025–2026 Columba Contributors"

🤖 Generated with Claude Code

Use BuildConfig.COPYRIGHT_YEAR (set in build.gradle.kts) instead of
dynamic year calculation from the device clock. This prevents users
with incorrect system time from seeing wrong copyright dates.

Update yearly by changing the value in build.gradle.kts.

Closes #490

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Feb 19, 2026

Greptile Summary

Replaces hardcoded copyright year with build-time configuration using BuildConfig.COPYRIGHT_YEAR. The copyright now displays as "© 2025–2026 Columba Contributors" in the About screen.

Key changes:

  • Added COPYRIGHT_YEAR BuildConfig field in app/build.gradle.kts set to "2026"
  • Updated AboutCard.kt to use BuildConfig.COPYRIGHT_YEAR instead of hardcoded "2025"
  • Copyright is now an intentional release-time decision rather than runtime auto-update

This approach aligns with the project's philosophy that copyright year changes are deliberate release decisions.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Simple, focused change that replaces a hardcoded string with a build-time constant. The implementation is straightforward, follows existing patterns for BuildConfig usage in the codebase, and has minimal surface area for bugs. The change is well-contained to two files with clear, understandable modifications.
  • No files require special attention

Important Files Changed

Filename Overview
app/build.gradle.kts Added COPYRIGHT_YEAR BuildConfig field set to "2026" for build-time copyright configuration
app/src/main/java/com/lxmf/messenger/ui/screens/settings/cards/AboutCard.kt Replaced hardcoded "© 2025" with dynamic "© 2025–${BuildConfig.COPYRIGHT_YEAR}" to show copyright range

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Build Time] --> B[build.gradle.kts]
    B --> C[buildConfigField COPYRIGHT_YEAR = 2026]
    C --> D[Generate BuildConfig class]
    D --> E[Runtime]
    E --> F[AboutCard.kt]
    F --> G[Access BuildConfig.COPYRIGHT_YEAR]
    G --> H[Display: © 2025–2026 Columba Contributors]
Loading

Last reviewed commit: ef6f150

@sentry
Copy link
Copy Markdown
Contributor

sentry bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@torlando-tech torlando-tech merged commit 29d0f10 into main Feb 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date in About is still at the year 2025

1 participant