Skip to content

Commit dea967d

Browse files
author
Calvin Collins
committed
added spm
1 parent 0a76f36 commit dea967d

16 files changed

Lines changed: 124 additions & 3 deletions

Example/FlexDataSource.xcodeproj/project.pbxproj

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
1515
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
1616
60F5B00A42193B3AF34EFF1F /* Pods_FlexDataSource_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70B1472C8F94AAAB3D29C47C /* Pods_FlexDataSource_Tests.framework */; };
17+
6431743A265C542400BB682B /* FlexSimpleDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6431742F265C542400BB682B /* FlexSimpleDataSource.swift */; };
18+
6431743B265C542400BB682B /* Array+Flex.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317430265C542400BB682B /* Array+Flex.swift */; };
19+
6431743C265C542400BB682B /* FlexDataSourceSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317431265C542400BB682B /* FlexDataSourceSection.swift */; };
20+
6431743D265C542400BB682B /* Swipeable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317432265C542400BB682B /* Swipeable.swift */; };
21+
6431743E265C542400BB682B /* FlexTitledDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317433265C542400BB682B /* FlexTitledDataSource.swift */; };
22+
6431743F265C542400BB682B /* Tappable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317434265C542400BB682B /* Tappable.swift */; };
23+
64317440265C542400BB682B /* FlexCollectionDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317435265C542400BB682B /* FlexCollectionDataSource.swift */; };
24+
64317441265C542400BB682B /* FlexDataSourceItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317436265C542400BB682B /* FlexDataSourceItem.swift */; };
25+
64317442265C542400BB682B /* FlexDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317437265C542400BB682B /* FlexDataSource.swift */; };
26+
64317443265C542400BB682B /* FlexCollectionSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317438265C542400BB682B /* FlexCollectionSection.swift */; };
27+
64317444265C542400BB682B /* FlexCollectionItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64317439265C542400BB682B /* FlexCollectionItem.swift */; };
1728
89D097AA605F356244FA4433 /* Pods_FlexDataSource_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B58498B2EB53A67483D9A3E4 /* Pods_FlexDataSource_Example.framework */; };
1829
/* End PBXBuildFile section */
1930

@@ -41,6 +52,19 @@
4152
607FACE51AFB9204008FA782 /* FlexDataSource_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlexDataSource_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
4253
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4354
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
55+
6431742A265C53D800BB682B /* flex_data_sourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = flex_data_sourceTests.swift; sourceTree = "<group>"; };
56+
6431742E265C53D800BB682B /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Package.swift; path = ../Package.swift; sourceTree = "<group>"; };
57+
6431742F265C542400BB682B /* FlexSimpleDataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexSimpleDataSource.swift; sourceTree = "<group>"; };
58+
64317430265C542400BB682B /* Array+Flex.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Array+Flex.swift"; sourceTree = "<group>"; };
59+
64317431265C542400BB682B /* FlexDataSourceSection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexDataSourceSection.swift; sourceTree = "<group>"; };
60+
64317432265C542400BB682B /* Swipeable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Swipeable.swift; sourceTree = "<group>"; };
61+
64317433265C542400BB682B /* FlexTitledDataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexTitledDataSource.swift; sourceTree = "<group>"; };
62+
64317434265C542400BB682B /* Tappable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tappable.swift; sourceTree = "<group>"; };
63+
64317435265C542400BB682B /* FlexCollectionDataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexCollectionDataSource.swift; sourceTree = "<group>"; };
64+
64317436265C542400BB682B /* FlexDataSourceItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexDataSourceItem.swift; sourceTree = "<group>"; };
65+
64317437265C542400BB682B /* FlexDataSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexDataSource.swift; sourceTree = "<group>"; };
66+
64317438265C542400BB682B /* FlexCollectionSection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexCollectionSection.swift; sourceTree = "<group>"; };
67+
64317439265C542400BB682B /* FlexCollectionItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlexCollectionItem.swift; sourceTree = "<group>"; };
4468
70B1472C8F94AAAB3D29C47C /* Pods_FlexDataSource_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FlexDataSource_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4569
879D79256B72CCA876FDF46B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
4670
88E8F3051D2D88F16AFB7F97 /* FlexDataSource.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = FlexDataSource.podspec; path = ../FlexDataSource.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
@@ -73,6 +97,9 @@
7397
607FACC71AFB9204008FA782 = {
7498
isa = PBXGroup;
7599
children = (
100+
6431742E265C53D800BB682B /* Package.swift */,
101+
6431742B265C53D800BB682B /* Sources */,
102+
64317428265C53D800BB682B /* Tests */,
76103
494C77C1242E6DD200B8C018 /* Example.playground */,
77104
607FACF51AFB993E008FA782 /* Podspec Metadata */,
78105
607FACD21AFB9204008FA782 /* Example for FlexDataSource */,
@@ -141,6 +168,50 @@
141168
name = "Podspec Metadata";
142169
sourceTree = "<group>";
143170
};
171+
64317428265C53D800BB682B /* Tests */ = {
172+
isa = PBXGroup;
173+
children = (
174+
64317429265C53D800BB682B /* flex-data-sourceTests */,
175+
);
176+
name = Tests;
177+
path = ../Tests;
178+
sourceTree = "<group>";
179+
};
180+
64317429265C53D800BB682B /* flex-data-sourceTests */ = {
181+
isa = PBXGroup;
182+
children = (
183+
6431742A265C53D800BB682B /* flex_data_sourceTests.swift */,
184+
);
185+
path = "flex-data-sourceTests";
186+
sourceTree = "<group>";
187+
};
188+
6431742B265C53D800BB682B /* Sources */ = {
189+
isa = PBXGroup;
190+
children = (
191+
6431742C265C53D800BB682B /* flex-data-source */,
192+
);
193+
name = Sources;
194+
path = ../Sources;
195+
sourceTree = "<group>";
196+
};
197+
6431742C265C53D800BB682B /* flex-data-source */ = {
198+
isa = PBXGroup;
199+
children = (
200+
64317430265C542400BB682B /* Array+Flex.swift */,
201+
64317435265C542400BB682B /* FlexCollectionDataSource.swift */,
202+
64317439265C542400BB682B /* FlexCollectionItem.swift */,
203+
64317438265C542400BB682B /* FlexCollectionSection.swift */,
204+
64317437265C542400BB682B /* FlexDataSource.swift */,
205+
64317436265C542400BB682B /* FlexDataSourceItem.swift */,
206+
64317431265C542400BB682B /* FlexDataSourceSection.swift */,
207+
6431742F265C542400BB682B /* FlexSimpleDataSource.swift */,
208+
64317433265C542400BB682B /* FlexTitledDataSource.swift */,
209+
64317432265C542400BB682B /* Swipeable.swift */,
210+
64317434265C542400BB682B /* Tappable.swift */,
211+
);
212+
path = "flex-data-source";
213+
sourceTree = "<group>";
214+
};
144215
CBB51F0C6B4320961CD22F51 /* Pods */ = {
145216
isa = PBXGroup;
146217
children = (
@@ -337,8 +408,19 @@
337408
isa = PBXSourcesBuildPhase;
338409
buildActionMask = 2147483647;
339410
files = (
411+
6431743B265C542400BB682B /* Array+Flex.swift in Sources */,
412+
6431743A265C542400BB682B /* FlexSimpleDataSource.swift in Sources */,
413+
6431743F265C542400BB682B /* Tappable.swift in Sources */,
414+
64317440265C542400BB682B /* FlexCollectionDataSource.swift in Sources */,
415+
6431743C265C542400BB682B /* FlexDataSourceSection.swift in Sources */,
340416
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
417+
64317443265C542400BB682B /* FlexCollectionSection.swift in Sources */,
418+
64317441265C542400BB682B /* FlexDataSourceItem.swift in Sources */,
419+
6431743E265C542400BB682B /* FlexTitledDataSource.swift in Sources */,
420+
6431743D265C542400BB682B /* Swipeable.swift in Sources */,
421+
64317442265C542400BB682B /* FlexDataSource.swift in Sources */,
341422
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
423+
64317444265C542400BB682B /* FlexCollectionItem.swift in Sources */,
342424
);
343425
runOnlyForDeploymentPostprocessing = 0;
344426
};

Example/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EXTERNAL SOURCES:
2020
:path: "../"
2121

2222
SPEC CHECKSUMS:
23-
FlexDataSource: 1fcd8981b6b49f9c4445af8af644d9711d946930
23+
FlexDataSource: 3b1ce4602902bd7f70821a9e88d3753fd424ae4e
2424
fuikit: 18bccda525bba2f46943bdb8ce5def666a560704
2525

2626
PODFILE CHECKSUM: f79c4a84dd3f8990aed5927bf1f64d89d1c2891a

FlexDataSource.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ This pod moves configuration from the data source to individual cell model class
2525

2626
s.ios.deployment_target = '11.0'
2727

28-
s.source_files = 'FlexDataSource/Classes/**/*'
28+
s.source_files = 'Sources/flex-data-source/**/*.swift'
2929
s.dependency 'fuikit'
3030
end

Package.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "flex-data-source",
8+
products: [
9+
// Products define the executables and libraries a package produces, and make them visible to other packages.
10+
.library(
11+
name: "flex-data-source",
12+
targets: ["flex-data-source"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
21+
.target(
22+
name: "flex-data-source",
23+
dependencies: []),
24+
.testTarget(
25+
name: "flex-data-sourceTests",
26+
dependencies: ["flex-data-source"]),
27+
]
28+
)

FlexDataSource/Classes/FlexCollectionDataSource.swift renamed to Sources/flex-data-source/FlexCollectionDataSource.swift

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)