Files
purchases-ios/Projects/RevenueCatUI/Project.swift
T
Facundo MenzellaandClaude Sonnet 4.6 c9670102d9 Add TUIST_SWIFT_CONDITIONS for injecting compiler flags at project generation time (#6661)
* Add TUIST_SWIFT_CONDITIONS env var for injecting compiler flags at generation time

Introduces a generic mechanism to pass arbitrary Swift active compilation
conditions when generating Xcode projects via Tuist. Any target generated
through the Tuist Xcode project mode (TUIST_RC_XCODE_PROJECT=true) will
pick up the flags automatically.

Usage:
  TUIST_RC_XCODE_PROJECT=true TUIST_SWIFT_CONDITIONS="MY_FLAG" tuist generate PaywallsTester
  TUIST_RC_XCODE_PROJECT=true TUIST_SWIFT_CONDITIONS="FLAG_A FLAG_B" tuist generate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Rename appendingExtraSwiftConditions to appendingTuistSwiftConditions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 14:46:26 +00:00

40 lines
1.2 KiB
Swift

import ProjectDescription
import ProjectDescriptionHelpers
let project = Project(
name: "RevenueCatUI",
organizationName: .revenueCatOrgName,
packages: .projectPackages,
settings: .framework,
targets: [
.target(
name: "RevenueCatUI",
destinations: .allRevenueCat,
product: .framework,
bundleId: "com.revenuecat.RevenueCatUI",
deploymentTargets: .allRevenueCat,
infoPlist: .default,
sources: [
"../../RevenueCatUI/**/*.swift"
],
dependencies: [
.revenueCat
],
settings: .settings(
base: ([:] as SettingsDictionary).appendingTuistSwiftConditions()
)
)
],
schemes: [
.scheme(
name: "RevenueCatUI",
shared: true,
buildAction: .buildAction(targets: ["RevenueCatUI"]),
runAction: .runAction(configuration: "Debug"),
archiveAction: .archiveAction(configuration: "Release"),
profileAction: .profileAction(configuration: "Release"),
analyzeAction: .analyzeAction(configuration: "Debug")
)
]
)