Skip to content

Commit

Permalink
Updating package config for test apis (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters authored Feb 20, 2025
1 parent 3e176bd commit 241c5e2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/AnimalKingdomAPI/AnimalKingdomAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
.library(name: "AnimalKingdomAPITestMocks", targets: ["AnimalKingdomAPITestMocks"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.16.1"),
.package(name: "apollo-ios", path: "../../../apollo-ios"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/GitHubAPI/GitHubAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "GitHubAPI", targets: ["GitHubAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.16.1"),
.package(name: "apollo-ios", path: "../../../apollo-ios"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/StarWarsAPI/StarWarsAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "StarWarsAPI", targets: ["StarWarsAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.16.1"),
.package(name: "apollo-ios", path: "../../../apollo-ios"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SubscriptionAPI/SubscriptionAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "SubscriptionAPI", targets: ["SubscriptionAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.16.1"),
.package(name: "apollo-ios", path: "../../../apollo-ios"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/UploadAPI/UploadAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "UploadAPI", targets: ["UploadAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios", exact: "1.16.1"),
.package(name: "apollo-ios", path: "../../../apollo-ios"),
],
targets: [
.target(
Expand Down
4 changes: 3 additions & 1 deletion SwiftScripts/Sources/TargetConfig/Module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ public struct Module {
public init?(module: String) {
switch module.lowercased() {
case "none": self.moduleType = .embeddedInTarget(name: "")
case "swiftpackagemanager", "spm": self.moduleType = .swiftPackageManager
case "swiftpackagemanager", "spm": self.moduleType = .swiftPackage(apolloSDKDependency: ApolloCodegenConfiguration.SchemaTypesFileOutput.ModuleType.ApolloSDKDependency(
sdkVersion: .local(path: "../../../apollo-ios")
))
case "other": self.moduleType = .other
default: return nil
}
Expand Down

0 comments on commit 241c5e2

Please sign in to comment.