mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* 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>
40 lines
1.2 KiB
Swift
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")
|
|
)
|
|
]
|
|
)
|