Skip to content

Commit a900f94

Browse files
committed
refactor: Make the spm package part of the xcode project as opposed to a dependency for a better folder structure and editing
1 parent 43cd441 commit a900f94

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

Example/Example.xcodeproj/project.pbxproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 60;
6+
objectVersion = 56;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -38,6 +38,7 @@
3838
198CFC1E2ADD44BD00745216 /* ExampleWithCode.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ExampleWithCode.app; sourceTree = BUILT_PRODUCTS_DIR; };
3939
198CFC212ADD454B00745216 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
4040
19CC78E62ACD73E500172137 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
41+
ABD00C7C2CA0C2C8007B1EF6 /* OpenFoodFactsSDK */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "OpenFoodFactsSDK"; path = ".."; sourceTree = SOURCE_ROOT; };
4142
/* End PBXFileReference section */
4243

4344
/* Begin PBXFrameworksBuildPhase section */
@@ -63,6 +64,7 @@
6364
1926CA042AC8553D004EAD53 = {
6465
isa = PBXGroup;
6566
children = (
67+
ABD00C7C2CA0C2C8007B1EF6 /* OpenFoodFactsSDK */,
6668
198CFC202ADD450100745216 /* Sources */,
6769
198CFC1F2ADD44F100745216 /* ExampleWithCode */,
6870
1926CA0F2AC8553D004EAD53 /* ExampleCodeFromScanner */,
@@ -202,7 +204,6 @@
202204
);
203205
mainGroup = 1926CA042AC8553D004EAD53;
204206
packageReferences = (
205-
19E1268B2AF7D86A00C0CD4A /* XCLocalSwiftPackageReference ".." */,
206207
);
207208
productRefGroup = 1926CA0E2AC8553D004EAD53 /* Products */;
208209
projectDirPath = "";
@@ -546,13 +547,6 @@
546547
};
547548
/* End XCConfigurationList section */
548549

549-
/* Begin XCLocalSwiftPackageReference section */
550-
19E1268B2AF7D86A00C0CD4A /* XCLocalSwiftPackageReference ".." */ = {
551-
isa = XCLocalSwiftPackageReference;
552-
relativePath = ..;
553-
};
554-
/* End XCLocalSwiftPackageReference section */
555-
556550
/* Begin XCSwiftPackageProductDependency section */
557551
198CFC0D2ADD44BD00745216 /* OpenFoodFactsSDK */ = {
558552
isa = XCSwiftPackageProductDependency;

Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Sources/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
1515

1616
OFFConfig.shared.apiEnv = .production
1717
OFFConfig.shared.country = OpenFoodFactsCountry.POLAND
18-
OFFConfig.shared.productsLanguage = OpenFoodFactsLanguage.DUTCH
18+
OFFConfig.shared.productsLanguage = .FRENCH
1919
return true
2020
}
2121
}

0 commit comments

Comments
 (0)