Skip to content

Commit

Permalink
Tuist updates (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters authored and gh-action-runner committed Dec 15, 2023
1 parent bad5bbb commit 707e93d
Show file tree
Hide file tree
Showing 19 changed files with 68 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .tuist-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.19.0
3.35.5
3 changes: 2 additions & 1 deletion Configuration/Shared/Workspace-Target-Framework.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ FRAMEWORK_VERSION[sdk=macosx*] = A

APPLICATION_EXTENSION_API_ONLY = YES

DEFINES_MODULE = YES
DEFINES_MODULE = NO

40 changes: 30 additions & 10 deletions Tuist/ProjectDescriptionHelpers/Enums/ApolloTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,28 +87,48 @@ public enum ApolloTarget {
return "Apollo-Target-UploadAPI"
}
}

public var destinations: Destinations {
switch self {
case .animalKingdomAPI,
.apolloCodegenLibWrapper,
.apolloCodegenInternalTestHelpers,
.apolloCodegenTests,
.apolloInternalTestHelpers,
.apolloPaginationTests,
.apolloPerformanceTests,
.apolloServerIntegrationTests,
.apolloTests,
.apolloWrapper,
.codegenCLITests,
.gitHubAPI,
.starWarsAPI,
.subscriptionAPI,
.uploadAPI:
return Destinations([.mac])
}
}

public var deploymentTarget: DeploymentTarget {
var version = "10.15"
public var deploymentTargets: DeploymentTargets {
switch self {
case .animalKingdomAPI,
.apolloCodegenLibWrapper,
.apolloWrapper,
.gitHubAPI,
.starWarsAPI,
.subscriptionAPI,
.uploadAPI:
version = "10.15"
case .apolloCodegenInternalTestHelpers,
.apolloCodegenTests,
.apolloInternalTestHelpers,
return DeploymentTargets(macOS: "10.15")
case .apolloInternalTestHelpers,
.apolloPerformanceTests,
.apolloServerIntegrationTests,
.apolloTests,
.apolloPaginationTests,
.apolloPaginationTests:
return DeploymentTargets(macOS: "12.0")
case .apolloCodegenInternalTestHelpers,
.apolloCodegenLibWrapper,
.apolloCodegenTests,
.codegenCLITests:
version = "12.5"
return DeploymentTargets(macOS: "12.0")
}
return .macOS(targetVersion: version)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ extension Settings {
let debugConfig = Configuration.debug(name: .debug, xcconfig: configPath)
let releaseConfig = Configuration.release(name: .release, xcconfig: configPath)
let performanceTestingConfig = Configuration.release(name: .performanceTesting, xcconfig: configPath)
let settings = Settings.settings(configurations: [
let settings = Settings.settings(
configurations: [
debugConfig,
releaseConfig,
performanceTestingConfig
])
],
defaultSettings: .none
)
return settings
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Sources/\(target.name)/Info.plist"),
sources: [
"Sources/\(target.name)/\(target.name)/Sources/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
dependencies: [
.package(product: "ApolloCodegenLib")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
sources: [
"Tests/\(target.name)/**",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
dependencies: [
.package(product: "Apollo")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .unitTests,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Tests/\(target.name)/Info.plist"),
sources: [
"Tests/\(target.name)/*.swift",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Sources/\(target.name)/Info.plist"),
sources: [
"Sources/\(target.name)/\(target.name)/Sources/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Sources/\(target.name)/Info.plist"),
sources: [
"Sources/\(target.name)/\(target.name)/Sources/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Sources/\(target.name)/Info.plist"),
sources: [
"Sources/\(target.name)/\(target.name)/Sources/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ extension Target {

return Target(
name: target.name,
platform: .macOS,
destinations: target.destinations,
product: .framework,
bundleId: "com.apollographql.\(target.name.lowercased())",
deploymentTarget: target.deploymentTarget,
deploymentTargets: target.deploymentTargets,
infoPlist: .file(path: "Sources/\(target.name)/Info.plist"),
sources: [
"Sources/\(target.name)/\(target.name)/Sources/**"
Expand Down

0 comments on commit 707e93d

Please sign in to comment.