Skip to content

Commit 2507274

Browse files
Merge pull request #32 from folio-sec/fix-spm
Fix archive failure when using SPM
2 parents c5b8361 + c136880 commit 2507274

File tree

9 files changed

+23
-30
lines changed

9 files changed

+23
-30
lines changed

.swiftpm/xcode/package.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.

Configurations/ImagePipeline.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ INFOPLIST_FILE = Sources/$(PROJECT_NAME)/Info.plist
1010
INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks
1111
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
1212
LIBRARY_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Vendor/webp/lib
13-
MODULEMAP_FILE = $(SRCROOT)/Sources/WebPDecoder/include/module.modulemap
13+
MODULEMAP_FILE = $(SRCROOT)/Vendor/webp/include/module.modulemap
1414
PRODUCT_BUNDLE_IDENTIFIER = com.folio-sec.$(PROJECT_NAME)
1515
PRODUCT_NAME = $(TARGET_NAME:c99extidentifier)
1616
SKIP_INSTALL = YES

ImagePipeline.xcodeproj/project.pbxproj

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@
902902
1436530D21DC919500616F6C /* 13.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 13.jpg; sourceTree = "<group>"; };
903903
1436530E21DC919500616F6C /* 8.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = 8.webp; sourceTree = "<group>"; };
904904
1436530F21DC919600616F6C /* 26.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = 26.gif; sourceTree = "<group>"; };
905-
1441E952241A96DB001B08E0 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = "<group>"; };
905+
149310E4241C22EB00CF87D3 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = "<group>"; };
906906
1496D481241A900200900064 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
907907
14C3A6C421E06FAC00317536 /* FetcherTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetcherTests.swift; sourceTree = "<group>"; };
908908
14C3A6C621E0701300317536 /* DecoderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DecoderTests.swift; sourceTree = "<group>"; };
@@ -1020,6 +1020,7 @@
10201020
children = (
10211021
140C336321D93F06007BDE61 /* types.h */,
10221022
140C336421D93F06007BDE61 /* decode.h */,
1023+
149310E4241C22EB00CF87D3 /* module.modulemap */,
10231024
);
10241025
path = include;
10251026
sourceTree = "<group>";
@@ -1463,27 +1464,10 @@
14631464
path = Fixtures;
14641465
sourceTree = "<group>";
14651466
};
1466-
1441E950241A96DB001B08E0 /* WebPDecoder */ = {
1467-
isa = PBXGroup;
1468-
children = (
1469-
1441E951241A96DB001B08E0 /* include */,
1470-
);
1471-
path = WebPDecoder;
1472-
sourceTree = "<group>";
1473-
};
1474-
1441E951241A96DB001B08E0 /* include */ = {
1475-
isa = PBXGroup;
1476-
children = (
1477-
1441E952241A96DB001B08E0 /* module.modulemap */,
1478-
);
1479-
path = include;
1480-
sourceTree = "<group>";
1481-
};
14821467
14D04704241A781100EDCA50 /* Sources */ = {
14831468
isa = PBXGroup;
14841469
children = (
14851470
140C334021D93BD3007BDE61 /* ImagePipeline */,
1486-
1441E950241A96DB001B08E0 /* WebPDecoder */,
14871471
);
14881472
path = Sources;
14891473
sourceTree = "<group>";

Package.resolved

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

Package.swift

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ let package = Package(
1212
targets: ["ImagePipeline"]),
1313
],
1414
dependencies: [
15+
.package(url: "https://github.com/kishikawakatsumi/webpdecoder.git", .branch("master")),
1516
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.7.2"),
1617
],
1718
targets: [
18-
.target(name: "ImagePipeline", dependencies: ["WebPDecoder"]),
19-
.target(
20-
name: "WebPDecoder", dependencies: [],
21-
linkerSettings: [.linkedLibrary("webpdecoder"), .unsafeFlags(["-L$BUILD_DIR/../../SourcePackages/checkouts/ImagePipeline/Vendor/webp/lib"])]),
22-
.testTarget(
23-
name: "ImagePipelineTests",
24-
dependencies: ["ImagePipeline", "SnapshotTesting"]
25-
),
19+
.target(name: "ImagePipeline", dependencies: ["webpdecoder"]),
20+
.testTarget(name: "ImagePipelineTests", dependencies: ["ImagePipeline", "SnapshotTesting"]),
2621
]
2722
)

Sources/WebPDecoder/_stub.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

Sources/WebPDecoder/include/decode.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

Sources/WebPDecoder/include/types.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

Sources/WebPDecoder/include/module.modulemap renamed to Vendor/webp/include/module.modulemap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ module WebPDecoder {
99
header "decode.h"
1010
header "types.h"
1111
}
12+

0 commit comments

Comments
 (0)