Skip to content

Commit 0599a6e

Browse files
committed
Splited to subspec
1 parent b0a33c5 commit 0599a6e

File tree

181 files changed

+15884
-979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+15884
-979
lines changed

.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

APIKitExt.podspec

+18-25
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,36 @@
1-
#
2-
# Be sure to run `pod lib lint APIKitExt.podspec' to ensure this is a
3-
# valid spec before submitting.
4-
#
5-
# Any lines starting with a # are optional, but their use is encouraged
6-
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7-
#
8-
91
Pod::Spec.new do |s|
102
s.name = 'APIKitExt'
113
s.version = '0.0.1'
124
s.summary = 'Useful extensions for APIKit'
13-
s.dependency 'ObjectMapper', '2.2.2'
14-
15-
# This description is used to generate tags and improve search results.
16-
# * Think: What does it do? Why did you write it? What is the focus?
17-
# * Try to keep it short, snappy and to the point.
18-
# * Write the description between the DESC delimiters below.
19-
# * Finally, don't worry about the indent, CocoaPods strips it!
20-
215
s.description = <<-DESC
226
APIKitExt is a set of useful extension to work with APIKit and libraries such as ObjectMapper etc
237
DESC
248

259
s.homepage = 'https://github.com/DTVD/APIKitExt'
26-
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
2710
s.license = { :type => 'MIT', :file => 'LICENSE' }
2811
s.author = { 'Orakaro' => '[email protected]' }
2912
s.source = { :git => 'https://github.com/DTVD/APIKitExt.git', :tag => s.version.to_s }
30-
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
3113

3214
s.ios.deployment_target = '8.0'
3315

34-
s.source_files = 'APIKitExt/Classes/**/*'
16+
s.default_subspec = "Core"
17+
18+
s.subspec "Core" do |ss|
19+
ss.source_files = "Sources/Classes/Core/*.swift"
20+
ss.framework = "Foundation"
21+
ss.dependency "APIKit", '3.1.1'
22+
end
23+
24+
s.subspec "ObjectMapper" do |ss|
25+
ss.source_files = "Sources/Classes/ObjectMapper/*.swift"
26+
ss.dependency "APIKitExt/Core"
27+
ss.dependency "ObjectMapper", '2.2.2'
28+
end
3529

36-
# s.resource_bundles = {
37-
# 'APIKitExt' => ['APIKitExt/Assets/*.png']
38-
# }
30+
s.subspec "RxSwift" do |ss|
31+
ss.source_files = "Sources/Classes/RxSwift/*.swift"
32+
ss.dependency "APIKitExt/Core"
33+
ss.dependency "RxSwift", '3.0.1'
34+
end
3935

40-
# s.public_header_files = 'Pod/Classes/**/*.h'
41-
# s.frameworks = 'UIKit', 'MapKit'
42-
# s.dependency 'AFNetworking', '~> 2.3'
4336
end

Example/APIKitExt.xcodeproj/project.pbxproj

-26
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
19-
04A0643B4B1FD2845CC52587 /* Pods-APIKitExt_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIKitExt_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-APIKitExt_Tests/Pods-APIKitExt_Tests.debug.xcconfig"; sourceTree = "<group>"; };
2019
06F2A2D5B02D2A6357233AEA /* Pods-APIKitExt_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIKitExt_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-APIKitExt_Example/Pods-APIKitExt_Example.debug.xcconfig"; sourceTree = "<group>"; };
2120
4ED79E5282E370AE85C92245 /* Pods-APIKitExt_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIKitExt_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-APIKitExt_Example/Pods-APIKitExt_Example.release.xcconfig"; sourceTree = "<group>"; };
2221
607FACD01AFB9204008FA782 /* APIKitExt_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = APIKitExt_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -26,12 +25,8 @@
2625
607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2726
607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
2827
607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
29-
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
30-
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
31-
71290121E9D27C33A61E770F /* Pods-APIKitExt_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-APIKitExt_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-APIKitExt_Tests/Pods-APIKitExt_Tests.release.xcconfig"; sourceTree = "<group>"; };
3228
81D83B10964604D9E4BAB7C4 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
3329
A5EF206D927F04BE6F7BDB0D /* APIKitExt.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = APIKitExt.podspec; path = ../APIKitExt.podspec; sourceTree = "<group>"; };
34-
A8A26930F936FFE51EF59D7B /* Pods_APIKitExt_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_APIKitExt_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3530
C2A75DCD734D3B06DAC6668A /* Pods_APIKitExt_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_APIKitExt_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3631
E8CD31ACDF6C49A1F5EF399C /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
3732
/* End PBXFileReference section */
@@ -53,7 +48,6 @@
5348
children = (
5449
607FACF51AFB993E008FA782 /* Podspec Metadata */,
5550
607FACD21AFB9204008FA782 /* Example for APIKitExt */,
56-
607FACE81AFB9204008FA782 /* Tests */,
5751
607FACD11AFB9204008FA782 /* Products */,
5852
E00343CF68F09F5E0B254AEC /* Pods */,
5953
F27AB2C6056EA53D0C9CA9CC /* Frameworks */,
@@ -90,23 +84,6 @@
9084
name = "Supporting Files";
9185
sourceTree = "<group>";
9286
};
93-
607FACE81AFB9204008FA782 /* Tests */ = {
94-
isa = PBXGroup;
95-
children = (
96-
607FACEB1AFB9204008FA782 /* Tests.swift */,
97-
607FACE91AFB9204008FA782 /* Supporting Files */,
98-
);
99-
path = Tests;
100-
sourceTree = "<group>";
101-
};
102-
607FACE91AFB9204008FA782 /* Supporting Files */ = {
103-
isa = PBXGroup;
104-
children = (
105-
607FACEA1AFB9204008FA782 /* Info.plist */,
106-
);
107-
name = "Supporting Files";
108-
sourceTree = "<group>";
109-
};
11087
607FACF51AFB993E008FA782 /* Podspec Metadata */ = {
11188
isa = PBXGroup;
11289
children = (
@@ -122,8 +99,6 @@
12299
children = (
123100
06F2A2D5B02D2A6357233AEA /* Pods-APIKitExt_Example.debug.xcconfig */,
124101
4ED79E5282E370AE85C92245 /* Pods-APIKitExt_Example.release.xcconfig */,
125-
04A0643B4B1FD2845CC52587 /* Pods-APIKitExt_Tests.debug.xcconfig */,
126-
71290121E9D27C33A61E770F /* Pods-APIKitExt_Tests.release.xcconfig */,
127102
);
128103
name = Pods;
129104
sourceTree = "<group>";
@@ -132,7 +107,6 @@
132107
isa = PBXGroup;
133108
children = (
134109
C2A75DCD734D3B06DAC6668A /* Pods_APIKitExt_Example.framework */,
135-
A8A26930F936FFE51EF59D7B /* Pods_APIKitExt_Tests.framework */,
136110
);
137111
name = Frameworks;
138112
sourceTree = "<group>";

Example/Podfile

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
use_frameworks!
22

33
target 'APIKitExt_Example' do
4-
pod 'APIKitExt', :path => '../'
5-
pod 'APIKit', '3.1.1'
6-
7-
target 'APIKitExt_Tests' do
8-
inherit! :search_paths
9-
10-
11-
end
4+
pod 'APIKitExt/ObjectMapper', :path => '../'
5+
pod 'APIKitExt/RxSwift', :path => '../'
126
end

Example/Podfile.lock

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
PODS:
22
- APIKit (3.1.1):
33
- Result (~> 3.0)
4-
- APIKitExt (0.0.1):
4+
- APIKitExt/Core (0.0.1):
5+
- APIKit (= 3.1.1)
6+
- APIKitExt/ObjectMapper (0.0.1):
7+
- APIKitExt/Core
58
- ObjectMapper (= 2.2.2)
9+
- APIKitExt/RxSwift (0.0.1):
10+
- APIKitExt/Core
11+
- RxSwift (= 3.0.1)
612
- ObjectMapper (2.2.2)
713
- Result (3.1.0)
14+
- RxSwift (3.0.1)
815

916
DEPENDENCIES:
10-
- APIKit (= 3.1.1)
11-
- APIKitExt (from `../`)
17+
- APIKitExt/ObjectMapper (from `../`)
18+
- APIKitExt/RxSwift (from `../`)
1219

1320
EXTERNAL SOURCES:
1421
APIKitExt:
1522
:path: "../"
1623

1724
SPEC CHECKSUMS:
1825
APIKit: 7460983f490d3bde6aaaaa4164d18c9865a6f91d
19-
APIKitExt: 3cdce4b6945bf3f4c023023ab6ebf4317d39f23d
26+
APIKitExt: 207e56123b4928441d0b02d37df235c059133f9b
2027
ObjectMapper: 9e385c2295bcc4e16eabbcfc85db801442bba545
2128
Result: 4e3ed5995ed94d0cd6a09be9a431fce3f3624bbf
29+
RxSwift: af5680055c4ad04480189c52d28385b1029493a6
2230

23-
PODFILE CHECKSUM: bc19b9d142517d0ed22e7159fa7334134c0edc96
31+
PODFILE CHECKSUM: 2c27ac90e37233073f27ee8cfcf4ecad048ea2f3
2432

2533
COCOAPODS: 1.1.1

Example/Pods/Local Podspecs/APIKitExt.podspec.json

+37-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

+13-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)