Skip to content

feat(cli): add RevenueCat payments provider for native frontends - #1076

Open
danestves wants to merge 5 commits into
AmanVarshney01:mainfrom
danestves:feat/revenuecat-payments
Open

danestves wants to merge 5 commits into
AmanVarshney01:mainfrom
danestves:feat/revenuecat-payments

Conversation

@danestves

@danestves danestves commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds RevenueCat as a payments provider for in-app purchases on native (Expo / React Native) apps.

Polar covers web subscriptions through Better-Auth. There is currently no option for mobile in-app purchases, which is a different billing model: the stores own the transaction, and subscription state lives outside your backend. RevenueCat fills that gap.

Unlike Polar, RevenueCat is native-gated and auth-agnostic:

  • Offered only when a native frontend (native-bare / native-uniwind / native-unistyles) is selected, with any backend except none.
  • Convex backend wires the convex-revenuecat component: app.use(revenuecat) in convex.config.ts, a webhook via registerRoutes (POST /webhooks/revenuecat), and a revenuecat.ts client exposing hasEntitlement / isSubscriber / getActiveSubscriptions.
  • Other backends get the react-native-purchases SDK integration only, since RevenueCat hosts subscription state.

How it works

  • Schema / prompt / validation: revenuecat added to PaymentsSchema. The prompt offers it when a native frontend is present, and validatePaymentsCompatibility errors if it is selected without one. Matrix oracle and cases updated with payments-revenuecat-requires-native-frontend.
  • Template handler: restructured so the native branch and the Convex component are processed without changing Polar's behavior. The Convex webhook is appended to the Better-Auth http.ts when present, and a standalone http.ts is generated for Convex + Clerk/none so the Better-Auth routes are never clobbered.
  • Native scaffolding (all three variants): a shared auth-agnostic RevenueCatProvider plus a lib/revenuecat SDK layer, with subscription-status-card and paywall-example components written in each variant's own UI kit (StyleSheet / heroui-native / unistyles) and mounted on the drawer home screen. The provider is mounted via a conditional wrap in each app/_layout.tsx.
  • Env: native .env gets EXPO_PUBLIC_REVENUECAT_IOS_KEY / _ANDROID_KEY / _ENTITLEMENT_ID. Convex .env.local gets REVENUECAT_WEBHOOK_AUTH with setup comments.
  • Post-install + MCP: setup instructions print when the provider is selected, and the RevenueCat MCP server is added to the recommended set.
  • Web stack-builder: RevenueCat added to apps/web with a native-frontend constraint, mirroring how Polar gates on Better-Auth.

Native code is based on 0rtbo/convexpo-revenuecat, adapted to this project's conventions. The reference's user-context coupling and identity auto-sync were dropped to keep the provider auth-agnostic, and the example components are SDK/provider-based rather than tied to a specific Convex subscriptions module.

Main sync

Merged main at dfeba394 (3.45.0), preserving the contributor's feature commit. Resolved the deleted stack-builder utility and moved the RevenueCat frontend constraint into the current shared compatibility API, CLI prompt/validation, and web builder. Regenerated the embedded templates from the merged source.

RevenueCat's platform SDK keys are optional in the app-owned Varlock schema, matching the SDK wrapper's platform-specific key selection and missing-key state. This lets the generated app build before billing is configured and avoids requiring the other platform's key. The listener uses the SDK's exported CustomerInfoUpdateListener and calls removeCustomerInfoUpdateListener directly.

Verification

  • bun run check and bun run build:cli: passed.
  • CLI source/test, template-generator, and website TypeScript checks: passed.
  • CLI suite with BTS_MATRIX_MODE=smoke: 1135 passed, 65 skipped, 0 failed, including the compatibility matrix. Generated build samples are opt-in and run separately below.
  • Website/shared/backend tests: 93 passed, 0 failed. Added a regression for retaining RevenueCat on each native variant and clearing it when the native frontend is removed.
  • Five real generated-project cases: all three native variants with Hono and no auth, plus native-bare with Convex using no auth and Better Auth. Dependency installation, workspace typechecks, builds, and iOS/Android Metro exports passed. Convex function typechecks also passed using the scaffold's _generated files.
  • Added these generated cases to the existing install/build CI harness.

Metro exports produce JavaScript bundles; native compilation/signing, simulator purchase flows, real store purchases, and live Convex webhook delivery were not verified.

Remaining items

The existing RevenueCat icon URL (https://r2.better-t-stack.dev/icons/revenuecat.svg) still returns 404. Its review thread remains unresolved pending the asset upload or an agreed replacement.

Vercel reports "Authorization required to deploy." for the fork preview. GitHub test/build checks have restarted for the updated head.

Dependency ranges remain convex-revenuecat: ^0.3.2 and react-native-purchases: ^10.9.0; this sync does not change their release lines.

Official references checked: Varlock schema decorators, RevenueCat listener lifecycle, and the published SDK/component declarations and source.

Native code is based on 0rtbo/convexpo-revenuecat, adapted to this project's conventions, as described above.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@danestves is attempting to deploy a commit to the Better T Stack Team on Vercel.

A member of the Team first needs to authorize it.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2996c62c14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds RevenueCat as a new payments provider option restricted to native (Expo) frontends. Changes include PaymentsSchema enum and dependency versions, CLI prompts and compatibility validation, web UI option constants, test matrix cases and oracle rules, template processor routing and env var generation, Convex backend templates, native layout provider wrapping, RevenueCat SDK utility and context/provider layers, native UI components, UI template integration, post-install instructions, and regenerated template bundle with new RevenueCat templates.

Changes

RevenueCat Payments Integration

Layer / File(s) Summary
PaymentsSchema enum and dependency versions
packages/types/src/schemas.ts, packages/template-generator/src/utils/add-deps.ts
PaymentsSchema and McpServerSchema enums gain "revenuecat"; dependencyVersionMap adds convex-revenuecat@^0.3.2 and react-native-purchases@^9.10.5.
CLI prompt and web compatibility gating
apps/cli/src/prompts/payments.ts, apps/cli/src/utils/compatibility-rules.ts, apps/web/src/app/(home)/new/_components/utils.ts, apps/web/src/lib/constant.ts
getPaymentsChoice parameter renamed from _frontends to frontends and enables revenuecat when a native frontend is detected; validatePaymentsCompatibility enforces revenuecat requires a native frontend; web UI adds hasNativeFrontend helper, extends analyzeStackCompatibility to auto-disable revenuecat, and extends getDisabledReason to block revenuecat without native frontend; TECH_OPTIONS.payments adds the revenuecat entry.
Test matrix cases and oracle rules
apps/cli/test/matrix/cases.ts, apps/cli/test/matrix/oracle.ts
MATRIX_PAYMENTS includes "revenuecat"; createSmokeMatrixCases generates Convex+native-bare and per-native-frontend configs; oracle adds payments-revenuecat-requires-native-frontend MatrixRule, NATIVE_FRONTENDS list, hasNativeFrontend helper, extended validatePayments, and updated classifyMatrixError.
Template processor routing and dependency injection
packages/template-generator/src/template-handlers/payments.ts, packages/template-generator/src/processors/payments-deps.ts
processPaymentsTemplates derives nativeVariant, adds special-case Convex+no-better-auth path, generates native base+variant templates, and short-circuits for Convex backends. processPaymentsDeps adds react-native-purchases to apps/native/package.json and convex-revenuecat to packages/backend/package.json for revenuecat mode.
Environment variable generation
packages/template-generator/src/processors/env-vars.ts
buildNativeVars gains payments parameter and emits EXPO_PUBLIC_REVENUECAT_IOS_KEY, EXPO_PUBLIC_REVENUECAT_ANDROID_KEY, EXPO_PUBLIC_REVENUECAT_ENTITLEMENT_ID; buildConvexBackendVars appends REVENUECAT_WEBHOOK_AUTH; buildConvexCommentBlocks adds RevenueCat webhook setup instructions.
Convex backend templates for RevenueCat
packages/template-generator/templates/payments/revenuecat/convex/..., packages/template-generator/templates/auth/better-auth/convex/backend/convex/http.ts.hbs, packages/template-generator/templates/backend/convex/packages/backend/convex/convex.config.ts.hbs
New revenuecat.ts.hbs instantiates RevenueCat with Convex components and webhook auth, exporting hasEntitlement/isSubscriber/getActiveSubscriptions. New no-better-auth/convex/http.ts.hbs registers RevenueCat routes. Existing http.ts.hbs and convex.config.ts.hbs gain conditional revenuecat import and registration.
Native layout templates: RevenueCatProvider wrapping
packages/template-generator/templates/frontend/native/bare/app/_layout.tsx.hbs, packages/template-generator/templates/frontend/native/unistyles/app/_layout.tsx.hbs, packages/template-generator/templates/frontend/native/uniwind/app/_layout.tsx.hbs
All three native _layout.tsx.hbs variants add conditional RevenueCatProvider import and JSX wrapper around the existing provider tree when payments === "revenuecat".
RevenueCat native SDK utility layer (base)
packages/template-generator/templates/payments/revenuecat/native/base/lib/revenuecat.ts.hbs
New template exports RevenueCatInitResult types, hasProEntitlement, configureRevenueCat with platform/key guards, onCustomerInfoUpdated, refreshProEntitlement, identifyUser/logOutUser/setUserAttributes, offering resolution, getPackages, purchaseAndCheckPro/restoreAndCheckPro/syncAndCheckPro, and isPurchaseCancelledError.
RevenueCatProvider context and hooks (base)
packages/template-generator/templates/payments/revenuecat/native/base/contexts/revenuecat-context.tsx.hbs
New template exports RevenueCatContextValue, useRevenueCat, useIsPro, and RevenueCatProvider component. Provider manages isConfigured/isPro state, gates all operations, handles purchase cancellation, subscribes to customer-info updates, and refreshes entitlement on AppState foreground.
Native paywall and subscription UI components (bare/unistyles/uniwind)
packages/template-generator/templates/payments/revenuecat/native/bare/components/*, packages/template-generator/templates/payments/revenuecat/native/unistyles/components/*, packages/template-generator/templates/payments/revenuecat/native/uniwind/components/*
For each native styling variant, adds PaywallExample component managing package loading, purchase, restore flows with async state and alerts, and SubscriptionStatusCard rendering subscription status with theme-driven styling.
UI template integration: revenuecat components in screens
packages/template-generator/templates/auth/better-auth/native/*/app/(drawer)/index.tsx.hbs, packages/template-generator/templates/frontend/native/*/app/(drawer)/index.tsx.hbs
better-auth and frontend native drawer templates (bare, unistyles, uniwind variants) add conditional imports and rendering of SubscriptionStatusCard and PaywallExample when payments === "revenuecat".
Post-install instructions and MCP server registration
apps/cli/src/helpers/addons/mcp-setup.ts, apps/cli/src/helpers/core/post-installation.ts
mcp-setup adds revenuecat server definition and extends getRecommendedMcpServers to include revenuecat when payments === "revenuecat"; post-installation adds getRevenueCatInstructions helper and integrates RevenueCat setup text into output.
Generated template bundle update
packages/template-generator/src/templates.generated.ts
Adds conditional revenuecat import and registration blocks in payments router, server/app setup, and native layout templates; expands bundle with new payments/revenuecat/... entries; TEMPLATE_COUNT advances from 497 to 507.

Possibly Related PRs

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: adding RevenueCat payments support for native frontends.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2c80508a-7553-4c93-b637-93bdd1a566aa

📥 Commits

Reviewing files that changed from the base of the PR and between cdd244e and 2996c62.

📒 Files selected for processing (27)
  • apps/cli/src/prompts/payments.ts
  • apps/cli/src/utils/compatibility-rules.ts
  • apps/cli/test/matrix/cases.ts
  • apps/cli/test/matrix/oracle.ts
  • apps/web/src/app/(home)/new/_components/utils.ts
  • apps/web/src/lib/constant.ts
  • packages/template-generator/src/processors/env-vars.ts
  • packages/template-generator/src/processors/payments-deps.ts
  • packages/template-generator/src/template-handlers/payments.ts
  • packages/template-generator/src/templates.generated.ts
  • packages/template-generator/src/utils/add-deps.ts
  • packages/template-generator/templates/auth/better-auth/convex/backend/convex/http.ts.hbs
  • packages/template-generator/templates/backend/convex/packages/backend/convex/convex.config.ts.hbs
  • packages/template-generator/templates/frontend/native/bare/app/_layout.tsx.hbs
  • packages/template-generator/templates/frontend/native/unistyles/app/_layout.tsx.hbs
  • packages/template-generator/templates/frontend/native/uniwind/app/_layout.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/convex/backend/convex/revenuecat.ts.hbs
  • packages/template-generator/templates/payments/revenuecat/convex/no-better-auth/convex/http.ts.hbs
  • packages/template-generator/templates/payments/revenuecat/native/bare/components/paywall-example.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/bare/components/subscription-status-card.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/base/lib/revenue-cat/index.ts.hbs
  • packages/template-generator/templates/payments/revenuecat/native/base/providers/RevenueCatProvider.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/unistyles/components/paywall-example.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/unistyles/components/subscription-status-card.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/uniwind/components/paywall-example.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/uniwind/components/subscription-status-card.tsx.hbs
  • packages/types/src/schemas.ts

Comment on lines +479 to +486
{
id: "revenuecat",
name: "RevenueCat",
description: "In-app subscriptions and cross-platform monetization for mobile.",
icon: `${ICON_BASE_URL}/revenuecat.svg`,
color: "from-red-400 to-red-600",
default: false,
},

@coderabbitai coderabbitai Bot Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

URL="https://r2.better-t-stack.dev/icons/revenuecat.svg"
echo "Checking: $URL"
curl -sS -o /dev/null -w "HTTP %{http_code}\n" -I "$URL"

Repository: AmanVarshney01/create-better-t-stack

Length of output: 150


Upload RevenueCat icon asset to R2 before shipping.

The icon asset at https://r2.better-t-stack.dev/icons/revenuecat.svg is missing (HTTP 404). This will render a broken icon in the payments picker UI. Upload the asset to complete this feature.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged — revenuecat.svg needs uploading to the R2 icon bucket, which is a maintainer step (I can't push to that bucket). It's called out in the PR description, and the entry follows the existing polar.svg convention, so it resolves once the asset is added.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danestves, understood — thanks for the context. Since the R2 upload is a maintainer step and already documented in the PR description, the implementation-side work is complete. The concern stays open only until the asset is actually uploaded.

Would you like me to open a GitHub issue to track the R2 asset upload (revenuecat.svg → r2.better-t-stack.dev/icons/) so it doesn't get missed after this PR merges?

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9b6d331d-cc49-4b71-95ca-672ca632bf6b

📥 Commits

Reviewing files that changed from the base of the PR and between 12edc47 and b2b916c.

📒 Files selected for processing (14)
  • apps/cli/src/helpers/addons/mcp-setup.ts
  • apps/cli/src/helpers/core/post-installation.ts
  • packages/template-generator/src/templates.generated.ts
  • packages/template-generator/templates/auth/better-auth/native/bare/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/auth/better-auth/native/unistyles/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/auth/better-auth/native/uniwind/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/frontend/native/bare/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/frontend/native/unistyles/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/frontend/native/uniwind/app/(drawer)/index.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/bare/components/paywall-example.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/bare/components/subscription-status-card.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/uniwind/components/paywall-example.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/uniwind/components/subscription-status-card.tsx.hbs
  • packages/types/src/schemas.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/template-generator/templates/payments/revenuecat/native/uniwind/components/subscription-status-card.tsx.hbs
  • packages/template-generator/templates/payments/revenuecat/native/bare/components/paywall-example.tsx.hbs
  • packages/template-generator/src/templates.generated.ts

Adds `revenuecat` as a payments provider for in-app purchases on native
(Expo / React Native) apps. Unlike Polar, RevenueCat is native-gated and
auth-agnostic: it is offered only when a native frontend is selected, and
works with any backend except `none`.

- Schema/prompt/validation: `revenuecat` added to `PaymentsSchema`;
  `validatePaymentsCompatibility` rejects it without a native frontend.
  Matrix oracle and cases cover the new rule.
- Convex backend wires the `convex-revenuecat` component: `app.use(revenuecat)`
  in `convex.config.ts`, a `POST /webhooks/revenuecat` route via `registerRoutes`,
  and a `revenuecat.ts` client exposing `hasEntitlement` / `isSubscriber` /
  `getActiveSubscriptions`. Other backends get the SDK integration only.
- Native scaffolding for all three variants: an auth-agnostic
  `RevenueCatProvider` plus a `lib/revenuecat` SDK layer, with
  `subscription-status-card` and `paywall-example` components built in each
  variant's own UI kit and mounted on the drawer home screen.
- Env: native `.env` gets `EXPO_PUBLIC_REVENUECAT_IOS_KEY` / `_ANDROID_KEY` /
  `_ENTITLEMENT_ID`; Convex `.env.local` gets `REVENUECAT_WEBHOOK_AUTH`.
- Post-install instructions and the RevenueCat MCP server are surfaced when
  the provider is selected.
- Web stack-builder gains RevenueCat with a native-frontend constraint.

Native code is based on 0rtbo/convexpo-revenuecat, adapted to this project's
conventions; the reference's `user-context` coupling and identity auto-sync
were dropped to keep the provider auth-agnostic.
@danestves
danestves force-pushed the feat/revenuecat-payments branch from d36b138 to 4e33148 Compare September 8, 2026 18:48
@AmanVarshney01
AmanVarshney01 force-pushed the feat/revenuecat-payments branch from e53495c to c842ad8 Compare October 13, 2026 06:18
# Conflicts:
#	apps/cli/test/generated-builds.test.ts
#	apps/cli/test/matrix/cases.ts
#	apps/cli/test/matrix/oracle.ts
#	apps/web/test/stack-builder-compatibility.test.ts
#	packages/template-generator/src/processors/varlock.ts
#	packages/template-generator/src/utils/add-deps.ts
- identify the signed-in Better Auth or Clerk user with Purchases.logIn
  through a RevenueCatUserBridge, so Convex entitlement queries match;
  only export those queries when there is an auth provider
- read native env through ENV, use the documented cancellation error code,
  configure once at startup and show why setup failed (Expo Go, web)
- move the provider to components/, drop unused SDK helpers and the
  undeclared offering env var
- generic Convex payments http router, Axiom-style optional key comment,
  no hard-coded native list in deps, Polar-style web validation gate
- setup instructions generate the webhook secret and explain dev builds
- docs, skills, CLI label and live-test filters list RevenueCat
- replace the dropped matrix tests with generated-build samples and a
  compatibility contract test
@AmanVarshney01

Copy link
Copy Markdown
Owner

Thanks for this! I merged current main and pushed an update so the PR follows the existing template patterns:

  • User identity: the app now calls Purchases.logIn with the signed-in Better Auth or Clerk user ID through a small RevenueCatUserBridge, following the existing ClerkApiAuthBridge pattern, and logs out on sign-out.
    • Before this, purchases stayed on the anonymous RevenueCat ID, so hasEntitlement / isSubscriber on Convex never matched the user (they resolve identity.subject).
    • Those Convex queries are now only exported when there's an auth provider.
  • SDK helper and provider:
    • Native env is read through ENV, like the other native templates.
    • Cancellation uses Purchases.PURCHASES_ERROR_CODE.PURCHASE_CANCELLED_ERROR; userCancelled is deprecated.
    • The SDK is configured once at startup.
    • The status card explains why setup failed: no keys, Expo Go (store keys need a development build), or web.
    • The provider moved to components/revenuecat-provider.tsx.
    • Removed the unused syncAndCheckPro / setUserAttributes helpers and the undeclared EXPO_PUBLIC_REVENUECAT_OFFERING_ID.
  • Conventions:
    • The Convex http.ts path is generic (payments/<provider>/convex/http, used when auth isn't Better Auth).
    • The deps no longer hard-code the native frontend list.
    • The optional SDK keys get an Axiom-style varlock comment.
    • The web validation is gated like Polar's, with a distinct colour.
    • Added the CLI display label and RevenueCat-aware live-test filters and messages.
  • Setup instructions:
    • The webhook secret is generated with openssl rand -base64 32.
    • There's a convex env get step to copy it into the RevenueCat webhook.
    • Added a development-build note.
  • Docs: RevenueCat added to the CLI README, the web docs (options, compatibility, troubleshooting) and the skills option tables.
  • Tests: the matrix tests were removed on main, so I replaced them with generated-build samples and a compatibility contract test (revenuecat-web-only). The four samples:
    • native-bare-hono-better-auth-revenuecat
    • native-uniwind-convex-clerk-revenuecat
    • native-unistyles-convex-revenuecat
    • native-bare-convex-better-auth-revenuecat

Verified locally:

  • bun run check, and test:ci (113 pass)
  • the 4 new samples
  • the existing native Polar samples and native Convex samples, to check for regressions

Still open:

  • the revenuecat.svg icon upload to R2, which is a maintainer step
  • a real expo run:ios / run:android check, since the generated-build tests don't prebuild native code

This branch has not been deployed

No deployments
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.

2 participants