Merge remote-tracking branch 'origin/7.7'

This commit is contained in:
Jonas Acker
2026-11-26 12:00:24 +01:00
11 changed files with 26 additions and 26 deletions

View File

@@ -2346,8 +2346,8 @@
"paywall_trialYears": "{count, plural, =1{1 Jahr} other{{count} Jahre}}",
"paywall_trialBadge": "{duration} gratis",
"paywall_startTrial": "Pro {duration} gratis testen",
"paywall_trialThenYearly": "{duration} gratis, danach {price}/Jahr. Kündigst du vor Ende des Testzeitraums, zahlst du nichts.",
"paywall_trialThenBilledYearly": "{duration} gratis, danach jährliche Abrechnung. Kündigst du vor Ende des Testzeitraums, zahlst du nichts.",
"paywall_trialThenYearly": "{duration} gratis, danach {price}/Jahr.",
"paywall_trialThenBilledYearly": "{duration} gratis, danach jährliche Abrechnung.",
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday: Basis liegt auch auf deinem Konto. Melde dich auf deinen anderen Geräten mit demselben Konto an, dann läuft es dort auch.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday: Melde dich jetzt an, dann läuft Basis auch auf deinen anderen Geräten: iPhone, iPad, Android, Mac und Windows.",
"paywall_baseStoreNote": "Einmalkauf für die {store}-Version. Er gilt nicht in anderen Stores oder auf anderen Plattformen – Pro schon.",

View File

@@ -2590,9 +2590,9 @@
"@paywall_trialBadge": {"placeholders": {"duration": {"type": "String"}}},
"paywall_startTrial": "Try Pro free for {duration}",
"@paywall_startTrial": {"placeholders": {"duration": {"type": "String"}}},
"paywall_trialThenYearly": "{duration} free, then {price}/year. Cancel before the trial ends and you pay nothing.",
"paywall_trialThenYearly": "{duration} free, then {price}/year.",
"@paywall_trialThenYearly": {"placeholders": {"duration": {"type": "String"}, "price": {"type": "String"}}},
"paywall_trialThenBilledYearly": "{duration} free, then billed yearly. Cancel before the trial ends and you pay nothing.",
"paywall_trialThenBilledYearly": "{duration} free, then billed yearly.",
"@paywall_trialThenBilledYearly": {"placeholders": {"duration": {"type": "String"}}},
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday: it's on your account too. Sign in with the same account on your other devices and Base works there as well.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday: sign in now and Base also works on your other devices: iPhone, iPad, Android, Mac and Windows.",

View File

@@ -2344,8 +2344,8 @@
"paywall_trialYears": "{count, plural, =1{1 año} other{{count} años}}",
"paywall_trialBadge": "{duration} gratis",
"paywall_startTrial": "Prueba Pro {duration} gratis",
"paywall_trialThenYearly": "{duration} gratis, después {price}/año. Si cancelas antes de que acabe la prueba, no pagas nada.",
"paywall_trialThenBilledYearly": "{duration} gratis, después facturación anual. Si cancelas antes de que acabe la prueba, no pagas nada.",
"paywall_trialThenYearly": "{duration} gratis, después {price}/año.",
"paywall_trialThenBilledYearly": "{duration} gratis, después facturación anual.",
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday: también está en tu cuenta. Inicia sesión con la misma cuenta en tus otros dispositivos y Base funcionará allí también.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday: inicia sesión ahora y Base también funcionará en tus otros dispositivos: iPhone, iPad, Android, Mac y Windows.",
"paywall_baseStoreNote": "Compra única para la versión de {store}. No se transfiere a otras tiendas ni plataformas; Pro sí.",

View File

@@ -2344,8 +2344,8 @@
"paywall_trialYears": "{count, plural, =1{1 an} other{{count} ans}}",
"paywall_trialBadge": "{duration} d'essai gratuit",
"paywall_startTrial": "Essai gratuit de {duration}",
"paywall_trialThenYearly": "{duration} d'essai gratuit, puis {price}/an. Résilie avant la fin de l'essai et tu ne paies rien.",
"paywall_trialThenBilledYearly": "{duration} d'essai gratuit, puis facturation annuelle. Résilie avant la fin de l'essai et tu ne paies rien.",
"paywall_trialThenYearly": "{duration} d'essai gratuit, puis {price}/an.",
"paywall_trialThenBilledYearly": "{duration} d'essai gratuit, puis facturation annuelle.",
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday : c'est aussi sur ton compte. Connecte-toi avec le même compte sur tes autres appareils et Base y fonctionnera aussi.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday : connecte-toi maintenant et Base fonctionnera aussi sur tes autres appareils : iPhone, iPad, Android, Mac et Windows.",
"paywall_baseStoreNote": "Achat unique pour la version {store}. Il n'est pas transférable vers d'autres stores ou plateformes – Pro l'est.",

View File

@@ -2344,8 +2344,8 @@
"paywall_trialYears": "{count, plural, =1{1 anno} other{{count} anni}}",
"paywall_trialBadge": "{duration} gratis",
"paywall_startTrial": "Prova Pro gratis per {duration}",
"paywall_trialThenYearly": "{duration} gratis, poi {price}/anno. Se disdici prima della fine della prova, non paghi nulla.",
"paywall_trialThenBilledYearly": "{duration} gratis, poi fatturazione annuale. Se disdici prima della fine della prova, non paghi nulla.",
"paywall_trialThenYearly": "{duration} gratis, poi {price}/anno.",
"paywall_trialThenBilledYearly": "{duration} gratis, poi fatturazione annuale.",
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday: è anche sul tuo account. Accedi con lo stesso account sugli altri dispositivi e Base funzionerà anche lì.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday: accedi ora e Base funzionerà anche sugli altri tuoi dispositivi: iPhone, iPad, Android, Mac e Windows.",
"paywall_baseStoreNote": "Acquisto una tantum per la versione {store}. Non si trasferisce ad altri store o piattaforme; Pro sì.",

View File

@@ -2344,8 +2344,8 @@
"paywall_trialYears": "{count, plural, =1{1 rok} few{{count} lata} other{{count} lat}}",
"paywall_trialBadge": "{duration} za darmo",
"paywall_startTrial": "{duration} Pro za darmo",
"paywall_trialThenYearly": "{duration} za darmo, potem {price}/rok. Jeśli anulujesz przed końcem okresu próbnego, nic nie zapłacisz.",
"paywall_trialThenBilledYearly": "{duration} za darmo, potem rozliczenie roczne. Jeśli anulujesz przed końcem okresu próbnego, nic nie zapłacisz.",
"paywall_trialThenYearly": "{duration} za darmo, potem {price}/rok.",
"paywall_trialThenBilledYearly": "{duration} za darmo, potem rozliczenie roczne.",
"purchaseBaseDoneCrossPlatformOnAccount": "Black Friday: jest też na Twoim koncie. Zaloguj się tym samym kontem na innych urządzeniach, a Base zadziała też tam.",
"purchaseBaseDoneCrossPlatformSignIn": "Black Friday: zaloguj się teraz, a Base zadziała też na innych Twoich urządzeniach: iPhone, iPad, Android, Mac i Windows.",
"paywall_baseStoreNote": "Jednorazowy zakup dla wersji {store}. Nie przenosi się do innych sklepów ani platform – Pro tak.",

View File

@@ -2801,8 +2801,8 @@
"paywall_trialYears": "{count, plural, other{{count} 年}}",
"paywall_trialBadge": "免费 {duration}",
"paywall_startTrial": "免费试用 Pro {duration}",
"paywall_trialThenYearly": "免费 {duration},之后 {price}/年。在试用期结束前取消即不收费。",
"paywall_trialThenBilledYearly": "免费 {duration},之后按年计费。在试用期结束前取消即不收费。",
"paywall_trialThenYearly": "免费 {duration},之后 {price}/年。",
"paywall_trialThenBilledYearly": "免费 {duration},之后按年计费。",
"purchaseBaseDoneCrossPlatformOnAccount": "黑色星期五:它也在你的账户中。在其他设备上登录同一账户,基础版也能在那里使用。",
"purchaseBaseDoneCrossPlatformSignIn": "黑色星期五:立即登录,基础版也能在你的其他设备上使用:iPhone、iPad、Android、Mac 和 Windows。",
"paywall_baseStoreNote": "{store} 版本的一次性购买。它不会转移到其他商店或平台 — Pro 可以。",

View File

@@ -76,7 +76,7 @@ class ProTrial {
/// The Stripe builds (Windows outside the store, Microsoft Store Pro, Linux)
/// have no product to read a trial from. During this window the backend's
/// `stripe-checkout` adds a 60-day trial to yearly checkouts; this copy only
/// `stripe-checkout` adds a 30-day trial to yearly checkouts; this copy only
/// decides when the paywall says so, and must match the backend.
class StripeYearlyTrialPromo {
const StripeYearlyTrialPromo._();
@@ -85,7 +85,7 @@ class StripeYearlyTrialPromo {
static final DateTime startsAt = DateTime.utc(2026, 11, 26, 10);
static final DateTime endsAt = DateTime.utc(2026, 11, 28, 12);
static const ProTrial trial = ProTrial(ProTrialUnit.month, 2);
static const ProTrial trial = ProTrial(ProTrialUnit.month, 1);
@visibleForTesting
static DateTime Function() now = DateTime.now;

View File

@@ -1,7 +1,7 @@
name: bike_control
description: "BikeControl - Control your virtual riding"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 7.7.2+173
version: 7.7.3+174
environment:
sdk: ^3.9.0

View File

@@ -111,12 +111,12 @@ Future<void> main() async {
});
group('Stripe builds', () {
testWidgets('show two months free on yearly inside the window', (tester) async {
testWidgets('show a month free on yearly inside the window', (tester) async {
StripeYearlyTrialPromo.now = () => DateTime.utc(2026, 11, 27, 12);
await pump(tester, Paywall(debugNativeTrainer: () => null), channel: PurchaseChannel.windowsDirect);
expect(find.text('BLACK FRIDAY · 2 months free'), findsOneWidget);
expect(find.text('Try Pro free for 2 months'), findsOneWidget);
expect(find.text(AppLocalizations.current.paywall_trialThenBilledYearly('2 months')), findsOneWidget);
expect(find.text('BLACK FRIDAY · 1 month free'), findsOneWidget);
expect(find.text('Try Pro free for 1 month'), findsOneWidget);
expect(find.text(AppLocalizations.current.paywall_trialThenBilledYearly('1 month')), findsOneWidget);
});
testWidgets('show no trial outside the window', (tester) async {

View File

@@ -151,12 +151,12 @@ void main() {
expect(StripeYearlyTrialPromo.isRunning, isFalse);
});
test('offers two months on the Stripe builds only', () {
test('offers a month on the Stripe builds only', () {
at(DateTime.utc(2026, 11, 27, 12));
const twoMonths = ProTrial(ProTrialUnit.month, 2);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.windowsDirect), twoMonths);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.microsoftStore), twoMonths);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.linuxDirect), twoMonths);
const oneMonth = ProTrial(ProTrialUnit.month, 1);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.windowsDirect), oneMonth);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.microsoftStore), oneMonth);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.linuxDirect), oneMonth);
// The stores carry their own trial on the product.
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.appStore), isNull);
expect(StripeYearlyTrialPromo.trialOn(PurchaseChannel.macAppStore), isNull);