mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +05:45
66 lines
2.0 KiB
Swift
66 lines
2.0 KiB
Swift
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: .settings(base: [:].automaticCodeSigning(devTeam: .revenueCatTeamID)),
|
||
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")
|
||
)
|
||
]
|
||
)
|