Skip to content

Allow overriding PaywallsTester bundle ID via Tuist env var#6869

Merged
facumenzella merged 1 commit into
mainfrom
worktree-binary-tumbling-locket
May 29, 2026
Merged

Allow overriding PaywallsTester bundle ID via Tuist env var#6869
facumenzella merged 1 commit into
mainfrom
worktree-binary-tumbling-locket

Conversation

@facumenzella

@facumenzella facumenzella commented May 29, 2026

Copy link
Copy Markdown
Member

Motivation

RevenueCat folks often want to run PaywallsTester against a different RevenueCat project / App Store Connect app, which may require its own bundle identifier (e.g. when running on a real device with that project's products). Today the bundle ID is hardcoded to com.revenuecat.PaywallsTester in the Tuist manifest, so testing with another project means hand-editing Project.swift.

Change

Adds a TUIST_PAYWALLS_TESTER_BUNDLE_ID environment variable, following the same pattern as the existing TUIST_RC_API_KEY / TUIST_SK_CONFIG_PATH / TUIST_LAUNCH_ARGUMENTS knobs:

TUIST_PAYWALLS_TESTER_BUNDLE_ID=com.mycompany.PaywallsTester tuist generate PaywallsTester

When unset, it defaults to com.revenuecat.PaywallsTester (no behavior change).

  • Tuist/ProjectDescriptionHelpers/Environment.swift — new paywallsTesterBundleId accessor (reads the env var via ProcessInfo, defaults to the current value)
  • Projects/PaywallsTester/Project.swiftbundleId: now reads Environment.paywallsTesterBundleId
  • AGENTS.md — documented the new variable in the Tuist env-var table

🤖 Generated with Claude Code


Note

Low Risk
Tuist-only PaywallsTester generation change; default bundle ID is unchanged and the public SDK is unaffected.

Overview
Adds TUIST_PAYWALLS_TESTER_BUNDLE_ID so PaywallsTester’s app bundle ID can be set at tuist generate time instead of editing the Tuist manifest. Environment.paywallsTesterBundleId reads the env var (default com.revenuecat.PaywallsTester), Projects/PaywallsTester/Project.swift uses it for the target’s bundleId, and AGENTS.md documents the knob alongside the other Tuist variables.

Reviewed by Cursor Bugbot for commit 105b654. Bugbot is set up for automated code reviews on this repo. Configure here.

…UNDLE_ID

Lets RevenueCat folks run PaywallsTester against another RevenueCat
project / App Store Connect app that needs its own bundle ID, without
editing the manifest. Defaults to com.revenuecat.PaywallsTester when unset.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@facumenzella facumenzella requested a review from a team as a code owner May 29, 2026 14:22
@facumenzella facumenzella enabled auto-merge (squash) May 29, 2026 14:24
@facumenzella facumenzella merged commit 60db69a into main May 29, 2026
19 of 21 checks passed
@facumenzella facumenzella deleted the worktree-binary-tumbling-locket branch May 29, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants