Skip to content

Conversation

@rainxchzed
Copy link
Owner

Centralized the app version name and code in build.gradle.kts to ensure consistency across all builds (Android, Desktop, Linux).

This change introduces a getVersionName() expect/actual function to retrieve the version name from a common BuildConfig file on Android and JVM, allowing the UI to display the version dynamically.

The following has been updated to use the new centralized version variables:

  • Android versionCode and versionName.
  • Desktop packageVersion.
  • Linux appRelease and debPackageVersion.

Centralized the app version name and code in `build.gradle.kts` to ensure consistency across all builds (Android, Desktop, Linux).

This change introduces a `getVersionName()` `expect`/`actual` function to retrieve the version name from a common `BuildConfig` file on Android and JVM, allowing the UI to display the version dynamically.

The following has been updated to use the new centralized version variables:
- Android `versionCode` and `versionName`.
- Desktop `packageVersion`.
- Linux `appRelease` and `debPackageVersion`.
@rainxchzed rainxchzed merged commit 031bcd3 into main Dec 11, 2025
1 check passed
@rainxchzed rainxchzed deleted the dynamic-version branch December 17, 2025 05:06
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.

2 participants