Skip to content

fix(ios): give the OnDeviceParakeet framework a MARKETING_VERSION so TestFlight uploads succeed again - #22239

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/parakeet-framework-version
Oct 18, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/parakeet-framework-version

Conversation

@kodjima33

@kodjima33 kodjima33 commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Since #21488 (merged today 19:53Z) every Codemagic ios-internal-auto upload fails at Publishing with ITMS-90057: OnDeviceParakeet.framework is missing CFBundleShortVersionString. The new framework target has GENERATE_INFOPLIST_FILE = YES and CURRENT_PROJECT_VERSION = 1 but no MARKETING_VERSION, so the generated Info.plist has no short version. This sets MARKETING_VERSION = 1.0 on 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 -lint on the project file passes; the real test is the next ios-internal-auto upload on main.

Failure-Class: none

UI-Evidence: none -- build configuration only, no UI change

🤖 Generated with Claude Code

…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
kodjima33 merged commit 0828c46 into main Oct 18, 2026
54 of 57 checks passed
@kodjima33
kodjima33 deleted the kodjima33/parakeet-framework-version branch October 18, 2026 22:41
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):

![After sign-up
placement](https://raw.githubusercontent.com/BasedHardware/omi/78289c66c390e3ead662d110b64c05c64dd2f24d/.agent-artifacts/ui-evidence/trial-paywall/001-mobile-ios-trial-paywall-after-signup.png)
![Carousel card
2](https://raw.githubusercontent.com/BasedHardware/omi/78289c66c390e3ead662d110b64c05c64dd2f24d/.agent-artifacts/ui-evidence/trial-paywall/002-mobile-ios-trial-paywall-carousel.png)

![Plans](https://raw.githubusercontent.com/BasedHardware/omi/78289c66c390e3ead662d110b64c05c64dd2f24d/.agent-artifacts/ui-evidence/trial-paywall/003-mobile-ios-trial-paywall-plans.png)
![Dismiss returns to the Name
step](https://raw.githubusercontent.com/BasedHardware/omi/78289c66c390e3ead662d110b64c05c64dd2f24d/.agent-artifacts/ui-evidence/trial-paywall/004-mobile-ios-trial-paywall-dismiss-to-name.png)
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant