android: remove '-play' from version name for release notes

This commit is contained in:
Kavish Devar
2026-06-21 03:55:54 +05:30
parent cb0c46dc33
commit bf3920718c
2 changed files with 2 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ fun Main() {
val onboardingComplete = sharedPreferences.getBoolean("onboarding_complete", false)
val releaseNotesShownPrefKey = "release_notes_shown_${BuildConfig.VERSION_NAME.removeSuffix("-debug")}"
val releaseNotesShownPrefKey = "release_notes_shown_${BuildConfig.VERSION_NAME.removeSuffix("-debug").removeSuffix("-play")}"
val releaseNotesShown = sharedPreferences.getBoolean(releaseNotesShownPrefKey, false)
fun bindService() {

View File

@@ -116,7 +116,7 @@ fun ReleaseNotesScreen(
textAlign = TextAlign.Center
)
val versionName = BuildConfig.VERSION_NAME.removeSuffix("-debug")
val versionName = BuildConfig.VERSION_NAME.removeSuffix("-debug").removeSuffix("-play")
val url = "https://github.com/kavishdevar/librepods/releases/v$versionName"
val fullText = "${stringResource(R.string.version)} $versionName"
val textColor = MaterialTheme.colorScheme.primary