Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit cdaa3b8

Browse files
committed
Add podspec and podfile for example project
1 parent f38ee14 commit cdaa3b8

File tree

6 files changed

+113
-1
lines changed

6 files changed

+113
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ playground.xcworkspace
4343
# you should judge for yourself, the pros and cons are mentioned at:
4444
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
4545
#
46-
# Pods/
46+
Podfile.lock
47+
Pods/
4748

4849
# Carthage
4950
#

Example/Example.xcodeproj/project.pbxproj

+78
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
0C1021A71C8608380003D376 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0C1021A51C8608380003D376 /* Main.storyboard */; };
1414
0C1021A91C8608380003D376 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0C1021A81C8608380003D376 /* Assets.xcassets */; };
1515
0C1021AC1C8608380003D376 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0C1021AA1C8608380003D376 /* LaunchScreen.storyboard */; };
16+
9322B6BEF5D03BD1A7EADFF8 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B48553BF4953ED7C0FB382BE /* Pods.framework */; };
1617
/* End PBXBuildFile section */
1718

1819
/* Begin PBXFileReference section */
@@ -24,13 +25,17 @@
2425
0C1021A81C8608380003D376 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2526
0C1021AB1C8608380003D376 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
2627
0C1021AD1C8608380003D376 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
28+
A2A3BC033E6FA3229639FF80 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
29+
B48553BF4953ED7C0FB382BE /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
30+
D7153399E873BE52DA6CE434 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
2731
/* End PBXFileReference section */
2832

2933
/* Begin PBXFrameworksBuildPhase section */
3034
0C1021991C8608380003D376 /* Frameworks */ = {
3135
isa = PBXFrameworksBuildPhase;
3236
buildActionMask = 2147483647;
3337
files = (
38+
9322B6BEF5D03BD1A7EADFF8 /* Pods.framework in Frameworks */,
3439
);
3540
runOnlyForDeploymentPostprocessing = 0;
3641
};
@@ -42,6 +47,8 @@
4247
children = (
4348
0C10219E1C8608380003D376 /* Example */,
4449
0C10219D1C8608380003D376 /* Products */,
50+
E2C0D0128030B43E7EDE5659 /* Pods */,
51+
0FA21B25CE7B3DA696E57065 /* Frameworks */,
4552
);
4653
sourceTree = "<group>";
4754
};
@@ -67,16 +74,36 @@
6774
path = Example;
6875
sourceTree = "<group>";
6976
};
77+
0FA21B25CE7B3DA696E57065 /* Frameworks */ = {
78+
isa = PBXGroup;
79+
children = (
80+
B48553BF4953ED7C0FB382BE /* Pods.framework */,
81+
);
82+
name = Frameworks;
83+
sourceTree = "<group>";
84+
};
85+
E2C0D0128030B43E7EDE5659 /* Pods */ = {
86+
isa = PBXGroup;
87+
children = (
88+
A2A3BC033E6FA3229639FF80 /* Pods.debug.xcconfig */,
89+
D7153399E873BE52DA6CE434 /* Pods.release.xcconfig */,
90+
);
91+
name = Pods;
92+
sourceTree = "<group>";
93+
};
7094
/* End PBXGroup section */
7195

7296
/* Begin PBXNativeTarget section */
7397
0C10219B1C8608380003D376 /* Example */ = {
7498
isa = PBXNativeTarget;
7599
buildConfigurationList = 0C1021B01C8608380003D376 /* Build configuration list for PBXNativeTarget "Example" */;
76100
buildPhases = (
101+
A8B13DC6D219475901104011 /* Check Pods Manifest.lock */,
77102
0C1021981C8608380003D376 /* Sources */,
78103
0C1021991C8608380003D376 /* Frameworks */,
79104
0C10219A1C8608380003D376 /* Resources */,
105+
DB5BA43D24C7157F253FBD69 /* Embed Pods Frameworks */,
106+
93902C7130A9BDD70FD35AC8 /* Copy Pods Resources */,
80107
);
81108
buildRules = (
82109
);
@@ -133,6 +160,54 @@
133160
};
134161
/* End PBXResourcesBuildPhase section */
135162

163+
/* Begin PBXShellScriptBuildPhase section */
164+
93902C7130A9BDD70FD35AC8 /* Copy Pods Resources */ = {
165+
isa = PBXShellScriptBuildPhase;
166+
buildActionMask = 2147483647;
167+
files = (
168+
);
169+
inputPaths = (
170+
);
171+
name = "Copy Pods Resources";
172+
outputPaths = (
173+
);
174+
runOnlyForDeploymentPostprocessing = 0;
175+
shellPath = /bin/sh;
176+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
177+
showEnvVarsInLog = 0;
178+
};
179+
A8B13DC6D219475901104011 /* Check Pods Manifest.lock */ = {
180+
isa = PBXShellScriptBuildPhase;
181+
buildActionMask = 2147483647;
182+
files = (
183+
);
184+
inputPaths = (
185+
);
186+
name = "Check Pods Manifest.lock";
187+
outputPaths = (
188+
);
189+
runOnlyForDeploymentPostprocessing = 0;
190+
shellPath = /bin/sh;
191+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
192+
showEnvVarsInLog = 0;
193+
};
194+
DB5BA43D24C7157F253FBD69 /* Embed Pods Frameworks */ = {
195+
isa = PBXShellScriptBuildPhase;
196+
buildActionMask = 2147483647;
197+
files = (
198+
);
199+
inputPaths = (
200+
);
201+
name = "Embed Pods Frameworks";
202+
outputPaths = (
203+
);
204+
runOnlyForDeploymentPostprocessing = 0;
205+
shellPath = /bin/sh;
206+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
207+
showEnvVarsInLog = 0;
208+
};
209+
/* End PBXShellScriptBuildPhase section */
210+
136211
/* Begin PBXSourcesBuildPhase section */
137212
0C1021981C8608380003D376 /* Sources */ = {
138213
isa = PBXSourcesBuildPhase;
@@ -251,6 +326,7 @@
251326
};
252327
0C1021B11C8608380003D376 /* Debug */ = {
253328
isa = XCBuildConfiguration;
329+
baseConfigurationReference = A2A3BC033E6FA3229639FF80 /* Pods.debug.xcconfig */;
254330
buildSettings = {
255331
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
256332
INFOPLIST_FILE = Example/Info.plist;
@@ -262,6 +338,7 @@
262338
};
263339
0C1021B21C8608380003D376 /* Release */ = {
264340
isa = XCBuildConfiguration;
341+
baseConfigurationReference = D7153399E873BE52DA6CE434 /* Pods.release.xcconfig */;
265342
buildSettings = {
266343
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
267344
INFOPLIST_FILE = Example/Info.plist;
@@ -290,6 +367,7 @@
290367
0C1021B21C8608380003D376 /* Release */,
291368
);
292369
defaultConfigurationIsVisible = 0;
370+
defaultConfigurationName = Release;
293371
};
294372
/* End XCConfigurationList section */
295373
};

Example/Example.xcworkspace/contents.xcworkspacedata

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

Example/Podfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://github.com/CocoaPods/Specs.git'
2+
use_frameworks!
3+
4+
pod "Stack", :path => "../"

Sources/StackView.swift

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
// Copyright (c) 2016 Alexander Grebenyuk (github.com/kean).
44

55
import Foundation
6+
import UIKit
7+
8+
public class StackView : UIView {
9+
10+
}

Stack.podspec

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Pod::Spec.new do |s|
2+
s.name = "Stack"
3+
s.version = "0.1"
4+
s.summary = "UIStackView port for iOS 8+"
5+
6+
s.homepage = "https://github.com/kean/Stack"
7+
s.license = "MIT"
8+
s.author = "Alexander Grebenyuk"
9+
s.social_media_url = "https://twitter.com/a_grebenyuk"
10+
s.source = { :git => "https://github.com/kean/Stack.git", :tag => s.version.to_s }
11+
12+
s.ios.deployment_target = "8.0"
13+
s.source_files = "Sources/**/*"
14+
end

0 commit comments

Comments
 (0)