Repository navigation
fix(ios): give the OnDeviceParakeet framework a MARKETING_VERSION so TestFlight uploads succeed again - #22239
Merged
Merged
Conversation
…App Store Connect accepts the build Since #21488 every TestFlight upload fails with ITMS-90057: OnDeviceParakeet.framework's generated Info.plist has no CFBundleShortVersionString because the framework target set no MARKETING_VERSION. Co-Authored-By: Claude Fable 5.1 <[email protected]>
kodjima33
added a commit
that referenced
this pull request
Oct 18, 2026
…l arm of the paywall experiment (#22237) ## Summary New `trial` arm of the mobile paywall experiment (`paywall-variant`, PostHog 957521): a native free-trial paywall shown once right after sign-up and consent, before the first onboarding step. - `TrialPaywallPage`: feature carousel (5 cards), dated timeline (today / +7 days free / charge on day 7; no reminder row, since nothing delivers one yet), the Unlimited feature list, month/year cards, "Start for $0.00", "Continue with the free plan". Light canvas on purpose: it sits between the light onboarding steps. Prices come from the catalog. - Checkout is the shared Stripe Checkout path (`PaywallCheckout.start`), now with `trialDays: 7`. - Backend: `POST /v1/payments/checkout-session` accepts `trial_days` (1–30) and passes `subscription_data.trial_period_days` to Stripe. A reader who already has a Stripe customer (a former subscriber back on the free plan) is refused with 400 `trial_unavailable` rather than charged at once. `GET /v1/users/me/subscription` reports `trial_eligible` (free plan and no Stripe customer) so the client never shows the trial copy to someone who cannot get it. Older clients send no `trial_days` and behave exactly as before. - Eligibility gate in the app: `PaywallRouter` only opens the trial page when `subscription.trialEligible` is true (otherwise the opener keeps the shipped sheet, exposure still recorded for the arm); the after-sign-up placement awaits the subscription first; the page refuses to start a checkout when not eligible. - Placement: `OnboardingWrapper._enterSteps` shows the page once for the `trial` arm with `onboarding_paywall: true`; the end-of-onboarding placement skips that arm. - Analytics: `Paywall Variant Shown.variant` gains `trial` (registry regenerated). - PostHog: variant `trial` added at 0% with payload `{"onboarding_paywall": true}`; the two existing Nik-only targeting groups now resolve to `trial`. Everyone else stays on control. - 31 l10n keys (`paywallTrial*`) with translations for every locale. The plan is named **Omi Pro** on this screen (backend tier id stays `unlimited`); renaming the plan everywhere else in the app is a follow-up. - Slide art is designed at 280pt and scaled down to the card (`FittedBox`), so 320/360pt phones and three-line captions never overflow; `trial_paywall_page_test.dart` pumps every slide at 320, 360 and 430pt and asserts no overflow, plus the plan cards and yearly saving. - Carries the one-line OnDeviceParakeet `MARKETING_VERSION` fix from #22239 so the branch build can reach TestFlight; it merges cleanly once #22239 lands. - The page runs one operation at a time (Restore/dismiss are no-ops during an in-flight checkout; completions after a dismissal or an external pop never navigate), and a trial checkout confirms "Your 7-day free trial of Omi Pro has started" instead of the paid-checkout "charged" toast. Navigation regressions in `trial_paywall_navigation_test.dart`. ## Testing - `flutter analyze`, `flutter test test/unit/paywall_experiment_test.dart test/widgets/paywall_router_test.dart`. - iOS simulator, dev flavor with `--dart-define=OMI_PAYWALL_VARIANT=trial --dart-define=OMI_ONBOARDING_RERUN=1`, signed in as [email protected] (plan basic): the page opens right after consent, swipe through the carousel, month/year toggle, "Continue with the free plan" returns to the Name step. Screenshots (iPhone 16 Pro simulator):     - Backend unit tests `test_payment_checkout_trial.py`: first-time subscriber gets `trial_period_days: 7`; former subscriber gets 400 `trial_unavailable`; no `trial_days` keeps the old checkout. - Router widget tests: eligible reader sees `TrialPaywallPage`; former subscriber keeps the sheet. Both also exercised at runtime on the simulator through the VM service (eligibility toggled on the provider, `PaywallRouter.openVariant` → page / no page). Line-Count-Exception: backend/routers/payment.py | 1784 -> 1793 | optional trial_days on the checkout request plus the first-time-subscriber refusal; splitting the router is out of scope here Line-Count-Exception: backend/database/users.py | 2494 -> 2497 | get_stripe_customer_id reads through the shared request-scoped user projection Line-Count-Exception: backend/routers/users.py | 2670 -> 2679 | trial_eligible computed next to the other subscription-response flags, failing closed on a lookup error Failure-Class: none ## Not in this PR - Superwall: not used. Its Stripe web checkout grants entitlements through Superwall's own deep link, not through our Stripe webhook keyed by `metadata.uid`, so a subscriber paid without the backend unlocking them. Our existing Stripe Checkout path already avoids the App Store fee. - The backend change must be on prod before the flag's `trial` split goes above 0%, otherwise the screen promises a trial the checkout does not give. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Since #21488 (merged today 19:53Z) every Codemagic
ios-internal-autoupload fails at Publishing with ITMS-90057:OnDeviceParakeet.frameworkis missingCFBundleShortVersionString. The new framework target hasGENERATE_INFOPLIST_FILE = YESandCURRENT_PROJECT_VERSION = 1but noMARKETING_VERSION, so the generated Info.plist has no short version. This setsMARKETING_VERSION = 1.0on the framework's configurations (the same value the watch targets use).Evidence: Codemagic builds 6ad5403b (branch) and the main build at 21:15Z (6d4ddac) both fail with that error; 1b94a9c at 15:17Z (before #21488) published fine.
Testing
plutil -linton the project file passes; the real test is the nextios-internal-autoupload on main.Failure-Class: none
UI-Evidence: none -- build configuration only, no UI change
🤖 Generated with Claude Code