Skip to content

Commit

Permalink
% logic to local BFFGraph SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Primo committed Jan 14, 2025
1 parent f448260 commit 52b67d9
Show file tree
Hide file tree
Showing 79 changed files with 41 additions and 49 deletions.
14 changes: 14 additions & 0 deletions Alfie/Alfie.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
C54DA2BD2D368A40005142F4 /* Navigation in Frameworks */ = {isa = PBXBuildFile; productRef = C54DA2BC2D368A40005142F4 /* Navigation */; };
C54DA2BF2D368A40005142F4 /* StyleGuide in Frameworks */ = {isa = PBXBuildFile; productRef = C54DA2BE2D368A40005142F4 /* StyleGuide */; };
C54DA59D2D369927005142F4 /* TestUtils in Frameworks */ = {isa = PBXBuildFile; productRef = C54DA59C2D369927005142F4 /* TestUtils */; };
C5E0B4B52D36ABDF00D759F7 /* BFFGraphApi in Frameworks */ = {isa = PBXBuildFile; productRef = C5E0B4B42D36ABDF00D759F7 /* BFFGraphApi */; };
C5E0B4B72D36ABDF00D759F7 /* BFFGraphMocks in Frameworks */ = {isa = PBXBuildFile; productRef = C5E0B4B62D36ABDF00D759F7 /* BFFGraphMocks */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -79,9 +81,11 @@
files = (
C54DA2BD2D368A40005142F4 /* Navigation in Frameworks */,
C54DA2BF2D368A40005142F4 /* StyleGuide in Frameworks */,
C5E0B4B72D36ABDF00D759F7 /* BFFGraphMocks in Frameworks */,
C54DA2BB2D368A40005142F4 /* Models in Frameworks */,
49AFF8552B6D0AA600695C66 /* OrderedCollections in Frameworks */,
C54DA2B52D368A40005142F4 /* Common in Frameworks */,
C5E0B4B52D36ABDF00D759F7 /* BFFGraphApi in Frameworks */,
C54DA2B92D368A40005142F4 /* Mocks in Frameworks */,
C54DA2B72D368A40005142F4 /* Core in Frameworks */,
);
Expand Down Expand Up @@ -165,6 +169,8 @@
C54DA2BA2D368A40005142F4 /* Models */,
C54DA2BC2D368A40005142F4 /* Navigation */,
C54DA2BE2D368A40005142F4 /* StyleGuide */,
C5E0B4B42D36ABDF00D759F7 /* BFFGraphApi */,
C5E0B4B62D36ABDF00D759F7 /* BFFGraphMocks */,
);
productName = Alfie;
productReference = BE8B02242B616976007AE489 /* Alfie.app */;
Expand Down Expand Up @@ -758,6 +764,14 @@
isa = XCSwiftPackageProductDependency;
productName = TestUtils;
};
C5E0B4B42D36ABDF00D759F7 /* BFFGraphApi */ = {
isa = XCSwiftPackageProductDependency;
productName = BFFGraphApi;
};
C5E0B4B62D36ABDF00D759F7 /* BFFGraphMocks */ = {
isa = XCSwiftPackageProductDependency;
productName = BFFGraphMocks;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = BE8B021C2B616976007AE489 /* Project object */;
Expand Down
32 changes: 27 additions & 5 deletions Alfie/AlfieKit/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ let package = Package(
name: "Common",
targets: ["Common"]
),
.library(
name: "BFFGraphApi",
targets: ["BFFGraphApi"]
),
.library(
name: "BFFGraphMocks",
targets: ["BFFGraphMocks"]
),
.library(
name: "Core",
targets: ["Core"]
Expand Down Expand Up @@ -41,7 +49,6 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(path: "Sources/Core/BFFGraphApi"),
.package(
url: "https://github.com/firebase/firebase-ios-sdk.git",
exact: "10.20.0"
Expand Down Expand Up @@ -78,6 +85,24 @@ let package = Package(
path: "Sources/Common"
),

// - BFFGraph -

.target(
name: "BFFGraphApi",
dependencies: [
.product(name: "ApolloAPI", package: "apollo-ios"),
],
path: "Sources/BFFGraph/Api"
),
.target(
name: "BFFGraphMocks",
dependencies: [
"BFFGraphApi",
.product(name: "ApolloTestSupport", package: "apollo-ios"),
],
path: "Sources/BFFGraph/Mocks"
),

// - Core -

.target(
Expand Down Expand Up @@ -183,10 +208,7 @@ let package = Package(
"Mocks",
"Common",
"TestUtils",
.product(
name: "BFFGraphMocks",
package: "BFFGraphApi"
),
"BFFGraphMocks",
.product(
name: "Apollo",
package: "apollo-ios"
Expand Down

This file was deleted.

37 changes: 0 additions & 37 deletions Alfie/AlfieKit/Sources/Core/BFFGraphApi/Package.swift

This file was deleted.

0 comments on commit 52b67d9

Please sign in to comment.