Files
purchases-ios/Projects/RevenueCatUI/Project.swift
T
Antonio Pallares f74872d551 Tuist: unify project settings (#5393)
* tuist: use already-defined `xcconfigFileConfigurations` `Configuration` array

* tuist: rename `project` to `app` (tuist's `Settings` object). Use `.app` or `.framework` throughout the projects in the repo

* rename settings constants
2025-07-17 20:36:59 +02:00

66 lines
1.9 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import ProjectDescription
import ProjectDescriptionHelpers
let allDeploymentTargets: DeploymentTargets = .multiplatform(
iOS: "13.0",
macOS: "10.15",
watchOS: "6.2",
tvOS: "13.0",
visionOS: "1.0"
)
let project = Project(
name: "RevenueCatUI",
organizationName: .revenueCatOrgName,
settings: .framework,
targets: [
.target(
name: "RevenueCatUI",
destinations: .allRevenueCat,
product: .framework,
bundleId: "com.revenuecat.RevenueCatUI",
deploymentTargets: .allRevenueCat,
infoPlist: .default,
sources: [
"../../RevenueCatUI/**/*.swift"
],
dependencies: [
.revenueCat
]
),
// MARK: – RevenueCat Tests
.target(
name: "RevenueCatUITests",
destinations: .allRevenueCat,
product: .unitTests,
bundleId: "com.revenuecat.sampleapp.tests",
deploymentTargets: .allRevenueCat,
infoPlist: .default,
sources: [
"../../Tests/RevenueCatUITests/**/*.swift"
],
dependencies: [
.target(name: "RevenueCatUI"),
.nimble,
.snapshotTesting,
.ohHTTPStubsSwift
]
)
],
schemes: [
.scheme(
name: "RevenueCatUI",
shared: true,
buildAction: .buildAction(targets: ["RevenueCatUI"]),
testAction: .targets([
.testableTarget(target: .init(stringLiteral: "RevenueCatUITests"))
]),
runAction: .runAction(configuration: "Debug"),
archiveAction: .archiveAction(configuration: "Release"),
profileAction: .profileAction(configuration: "Release"),
analyzeAction: .analyzeAction(configuration: "Debug")
)
]
)