From 0d44c44c6e5015a781bde69831a4e034d22567d5 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 20 Feb 2024 11:30:27 -0500 Subject: [PATCH] Adds release note ID to gradle. --- app/build.gradle | 1 + .../java/com/vitorpamplona/amethyst/ui/screen/CardFeedView.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d9932b68d1..7f6f5be40c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,6 +14,7 @@ android { targetSdk 34 versionCode 358 versionName "0.84.3" + buildConfigField "String", "RELEASE_NOTES_ID", "\"4d5a05aec61d8798f30f76b2efab81b98d75a03f935fb82823a1080bd56473cd\"" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedView.kt index ca24534e9a..2d24b634c0 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/CardFeedView.kt @@ -46,6 +46,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.lifecycle.compose.collectAsStateWithLifecycle +import com.vitorpamplona.amethyst.BuildConfig import com.vitorpamplona.amethyst.ui.components.LoadNote import com.vitorpamplona.amethyst.ui.note.BadgeCompose import com.vitorpamplona.amethyst.ui.note.MessageSetCompose @@ -207,7 +208,7 @@ private fun ShowDonationCard( val account by accountViewModel.account.live.observeAsState() if (account?.account?.hasDonatedInThisVersion() == false) { LoadNote( - "4d5a05aec61d8798f30f76b2efab81b98d75a03f935fb82823a1080bd56473cd", + BuildConfig.RELEASE_NOTES_ID, accountViewModel, ) { loadedNoteId -> if (loadedNoteId != null) {