Skip to content

Commit bdaeff9

Browse files
Merge pull request #2122 from session-foundation/release/1.33.4
1.33.4 in master
2 parents 757113d + 9059c6c commit bdaeff9

26 files changed

Lines changed: 90 additions & 17 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ configurations.configureEach {
2626
exclude(module = "commons-logging")
2727
}
2828

29-
val canonicalVersionCode = 449
30-
val canonicalVersionName = "1.33.3"
29+
val canonicalVersionCode = 451
30+
val canonicalVersionName = "1.33.4"
3131

3232
val postFixSize = 10
3333
val abiPostFix = mapOf(

app/src/main/java/org/session/libsession/network/onion/PathManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.session.libsession.network.onion
22

33
import kotlinx.coroutines.CancellationException
4+
import kotlinx.coroutines.CoroutineStart
45
import kotlinx.coroutines.CoroutineScope
56
import kotlinx.coroutines.Deferred
67
import kotlinx.coroutines.FlowPreview
@@ -93,7 +94,7 @@ open class PathManager @Inject constructor(
9394

9495
// Warm up from persisted paths without blocking construction.
9596
// Stored as a Deferred so getPath() can await it for deterministic completion.
96-
private val warmUpJob: Deferred<Unit> = scope.async {
97+
private val warmUpJob: Deferred<Unit> = scope.async(start = CoroutineStart.LAZY) {
9798
val persisted = sanitizePaths(storage.getOnionRequestPaths())
9899
_paths.update { current -> if (current.isEmpty()) persisted else current }
99100
}

app/src/main/java/org/session/libsession/utilities/NonTranslatableStringConstants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ object NonTranslatableStringConstants {
1818
const val ENTITY_RANGEPROOF = "Rangeproof PTY LTD"
1919
const val ENTITY_STF = "The Session Technology Foundation"
2020
const val DONATE_APPEAL_NAME = "Cofounder of Session Chris McCabe"
21+
const val ENTITY_STF_SHORT = "Session Technology Foundation (STF)"
2122
}
2223

app/src/main/java/org/session/libsession/utilities/StringSubKeys.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ object StringSubstitutionConstants {
6565
const val ACTION_TYPE_KEY: StringSubKey = "action_type"
6666
const val ACTIVATION_TYPE_KEY: StringSubKey = "activation_type"
6767
const val ENTITY_KEY: StringSubKey = "entity"
68-
const val DONATE_APPEAL_KEY: StringSubKey = "donate_appeal_name"
68+
const val DONATE_APPEAL_KEY: StringSubKey = "donate_appeal_name"
69+
const val ENTITY_STF_SHORT_KEY: StringSubKey = "entity_stf_short"
6970
}

app/src/main/java/org/session/libsession/utilities/TextSecurePreferences.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,11 @@ interface TextSecurePreferences {
364364

365365

366366
// Donation
367-
const val HAS_DONATED = "has_donated_v2"
368-
const val HAS_COPIED_DONATION_URL = "has_copied_donation_url_v2"
369-
const val SEEN_DONATION_CTA_AMOUNT = "seen_donation_cta_amount_v2"
370-
const val LAST_SEEN_DONATION_CTA = "last_seen_donation_cta_v2"
371-
const val SHOW_DONATION_CTA_FROM_POSITIVE_REVIEW = "show_donation_cta_from_positive_review_v2"
367+
const val HAS_DONATED = "has_donated_v3"
368+
const val HAS_COPIED_DONATION_URL = "has_copied_donation_url_v3"
369+
const val SEEN_DONATION_CTA_AMOUNT = "seen_donation_cta_amount_v3"
370+
const val LAST_SEEN_DONATION_CTA = "last_seen_donation_cta_v3"
371+
const val SHOW_DONATION_CTA_FROM_POSITIVE_REVIEW = "show_donation_cta_from_positive_review_v3"
372372

373373
const val DEBUG_HAS_DONATED = "debug_has_donated"
374374
const val DEBUG_HAS_COPIED_DONATION_URL = "debug_has_copied_donation_url"

app/src/main/java/org/thoughtcrime/securesms/home/HomeDialogs.kt

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import androidx.compose.ui.res.painterResource
3333
import androidx.compose.ui.res.stringResource
3434
import androidx.compose.ui.text.style.TextAlign
3535
import androidx.compose.ui.tooling.preview.Preview
36+
import androidx.compose.ui.tooling.preview.PreviewParameter
3637
import androidx.compose.ui.unit.dp
3738
import com.squareup.phrase.Phrase
3839
import kotlinx.coroutines.delay
@@ -75,7 +76,9 @@ import org.thoughtcrime.securesms.ui.theme.LocalColors
7576
import org.thoughtcrime.securesms.ui.theme.LocalDimensions
7677
import org.thoughtcrime.securesms.ui.theme.LocalType
7778
import org.thoughtcrime.securesms.ui.theme.PreviewTheme
79+
import org.thoughtcrime.securesms.ui.theme.SessionColorsParameterProvider
7880
import org.thoughtcrime.securesms.ui.theme.SessionMaterialTheme
81+
import org.thoughtcrime.securesms.ui.theme.ThemeColors
7982
import org.thoughtcrime.securesms.ui.theme.blackAlpha40
8083
import org.thoughtcrime.securesms.util.DonationManager.Companion.URL_DONATE
8184

@@ -273,11 +276,12 @@ fun DonationDialog(
273276
sendCommand(HideDonationCTADialog)
274277
}
275278

276-
val title = Phrase.from(context,R.string.donateSessionAppealTitle)
277-
.put(StringSubstitutionConstants.DONATE_APPEAL_KEY, NonTranslatableStringConstants.DONATE_APPEAL_NAME)
279+
val title = Phrase.from(context,R.string.finalAppeal)
280+
.put(StringSubstitutionConstants.APP_NAME_KEY, NonTranslatableStringConstants.APP_NAME)
278281
.format()
279282

280-
val text = Phrase.from(context,R.string.donateSessionAppealDescription)
283+
val text = Phrase.from(context,R.string.finalAppealDescription)
284+
.put(StringSubstitutionConstants.ENTITY_STF_SHORT_KEY, NonTranslatableStringConstants.ENTITY_STF_SHORT)
281285
.put(StringSubstitutionConstants.APP_NAME_KEY, NonTranslatableStringConstants.APP_NAME)
282286
.format()
283287

@@ -294,13 +298,17 @@ fun DonationDialog(
294298
.verticalScroll(rememberScrollState())
295299
) {
296300
// hero image
297-
BottomFadingEdgeBox(
301+
/*BottomFadingEdgeBox(
298302
modifier = Modifier.heightIn(max = heroMaxHeight),
299303
fadingEdgeHeight = 70.dp,
300304
fadingColor = LocalColors.current.backgroundSecondary,
301305
content = { _ ->
302306
CTAImage(heroImage = R.drawable.cta_hero_donation)
303307
},
308+
)*/
309+
CTAImage(
310+
modifier = Modifier.background(LocalColors.current.backgroundSecondary),
311+
heroImage = R.drawable.cta_hero_donation
304312
)
305313

306314
// content
@@ -348,7 +356,7 @@ fun DonationDialog(
348356
modifier = Modifier
349357
.qaTag(R.string.qa_cta_button_positive)
350358
.shimmerOverlay(),
351-
text = stringResource(R.string.donateSessionAppealReadMore),
359+
text = stringResource(R.string.readMoreCapital),
352360
onClick = {
353361
context.openUrl(URL_DONATE)
354362
sendCommand(HomeViewModel.Commands.OnDonationLinkClicked)
@@ -383,8 +391,10 @@ fun DonationDialog(
383391

384392
@Preview
385393
@Composable
386-
fun PreviewDonationDialog() {
387-
PreviewTheme {
394+
fun PreviewDonationDialog(
395+
@PreviewParameter(SessionColorsParameterProvider::class) colors: ThemeColors
396+
) {
397+
PreviewTheme(colors) {
388398
Column(
389399
modifier = Modifier.fillMaxSize()
390400
) {

app/src/main/java/org/thoughtcrime/securesms/ui/ProComponents.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,11 @@ fun SimpleSessionProCTA(
474474

475475
@Composable
476476
fun CTAImage(
477+
modifier: Modifier = Modifier,
477478
@DrawableRes heroImage: Int,
478479
){
479480
AsyncImage(
480-
modifier = Modifier
481+
modifier = modifier
481482
.fillMaxWidth()
482483
.background(LocalColors.current.accent),
483484
contentScale = ContentScale.FillWidth,
-99.4 KB
Loading

app/src/main/res/values-b+cs+CZ/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@
552552
<string name="feedbackDescription">Podělte se o své zkušenosti s {app_name} vyplněním krátkého dotazníku.</string>
553553
<string name="file">Soubor</string>
554554
<string name="files">Soubory</string>
555+
<string name="finalAppeal"><font color="0">Naše poslední výzva:</font>\n{app_name} bude za 90 dní ukončena</string>
556+
<string name="finalAppealDescription">Vaše dary pomohly, ale {entity_stf_short} získala pouze tolik prostředků, aby podpořila kritické operace do 8. července.\n\nVývoj byl pozastaven a bez dodatečného financování bude STF ukončena, což povede k odstranění aplikace {app_name} z obchodů s aplikacemi a k vypnutí základních služeb.\n\nPomozte nám prosím zajistit budoucnost Session.</string>
555557
<string name="followSystemSettings">Použít nastavení systému.</string>
556558
<string name="forever">Navždy</string>
557559
<string name="from">Od:</string>
@@ -1254,6 +1256,7 @@
12541256
<string name="rateSessionApp">Ohodnotit aplikaci</string>
12551257
<string name="rateSessionModalDescription">Jsme rádi, že se vám {app_name} líbí. Pokud máte chvíli času, ohodnoťte nás na {storevariant} abyste ostatním pomohli objevit soukromou a bezpečnou komunikaci!</string>
12561258
<string name="read">Přečteno</string>
1259+
<string name="readMoreCapital">Další informace</string>
12571260
<string name="readReceipts">Potvrzení o přečtení</string>
12581261
<string name="readReceiptsDescription">Zobrazit potvrzení o přečtení pro všechny zprávy, které posíláte a přijímáte.</string>
12591262
<string name="received">Přijato:</string>

app/src/main/res/values-b+de+DE/strings.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@
523523
<string name="feedbackDescription">Teile deine Erfahrungen mit {app_name}, indem du eine kurze Umfrage ausfüllst.</string>
524524
<string name="file">Datei</string>
525525
<string name="files">Dateien</string>
526+
<string name="finalAppeal"><font color="0">Unser letzter Appell:</font>\n{app_name} wird in 90 Tagen eingestellt</string>
527+
<string name="finalAppealDescription">Ihre Spenden haben geholfen, aber das {entity_stf_short} hat nur genug Mittel erhalten, um kritische Abläufe bis zum 8. Juli zu unterstützen.\n\nDie Entwicklung wurde pausiert, und ohne zusätzliche Finanzierung wird das STF eingestellt, was dazu führt, dass {app_name} aus den App Stores entfernt wird und essenzielle Dienste offline gehen.\n\nBitte helfen Sie uns, die Zukunft von Session zu sichern.</string>
526528
<string name="followSystemSettings">Systemeinstellungen übernehmen.</string>
527529
<string name="forever">Für immer</string>
528530
<string name="from">Von:</string>
@@ -1183,6 +1185,7 @@
11831185
<string name="rateSessionModalDescriptionUpdated">{app_name} schaltet keine Werbung, verkauft keine Nutzerdaten und ist nur seinen Nutzern gegenüber verantwortlich. Ihre Bewertung bei {storevariant} hilft anderen dabei, Nachrichtendienste zu finden, denen ihre Privatsphäre wirklich wichtig ist.</string>
11841186
<string name="rateUs">Bewerten Sie uns</string>
11851187
<string name="read">Gelesen</string>
1188+
<string name="readMoreCapital">Weiterlesen</string>
11861189
<string name="readReceipts">Lesebestätigungen</string>
11871190
<string name="readReceiptsDescription">Zeige Lesebestätigungen für alle Nachrichten, die du sendest und erhältst.</string>
11881191
<string name="received">Empfangen:</string>
@@ -1224,6 +1227,10 @@
12241227
<item quantity="one">Mitglied entfernen</item>
12251228
<item quantity="other">Mitglieder entfernen</item>
12261229
</plurals>
1230+
<plurals name="removeMemberLowercase">
1231+
<item quantity="one">Mitglied entfernen</item>
1232+
<item quantity="other">Mitglieder entfernen</item>
1233+
</plurals>
12271234
<plurals name="removeMemberMessages">
12281235
<item quantity="one">Mitglied und dessen Nachrichten entfernen</item>
12291236
<item quantity="other">Mitglieder und deren Nachrichten entfernen</item>

0 commit comments

Comments
 (0)