Skip to content

Commit 970202e

Browse files
committed
Adding HTTPLite to CocoaPods
1 parent 725ce54 commit 970202e

2 files changed

Lines changed: 144 additions & 4 deletions

File tree

HTTPLite.podspec

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
#
2+
# Be sure to run `pod spec lint HTTPLite.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |s|
10+
11+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12+
#
13+
# These will help people to find your library, and whilst it
14+
# can feel like a chore to fill in it's definitely to your advantage. The
15+
# summary should be tweet-length, and the description more in depth.
16+
#
17+
18+
s.name = "HTTPLite"
19+
s.version = "1.0"
20+
s.summary = "A simple Swift 3.x wrapper for URLSession"
21+
22+
# This description is used to generate tags and improve search results.
23+
# * Think: What does it do? Why did you write it? What is the focus?
24+
# * Try to keep it short, snappy and to the point.
25+
# * Write the description between the DESC delimiters below.
26+
# * Finally, don't worry about the indent, CocoaPods strips it!
27+
s.description = <<-DESC
28+
This library provides an easy entry to using HTTP with Swift 3. It is based on the philosophy of providing a simple API that avoids the overhead of using fully-fledged libraries.
29+
DESC
30+
31+
s.homepage = "https://github.com/nawar/HTTPLite"
32+
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
33+
34+
35+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
36+
#
37+
# Licensing your code is important. See http://choosealicense.com for more info.
38+
# CocoaPods will detect a license file if there is a named LICENSE*
39+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
40+
#
41+
42+
s.license = "MIT"
43+
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
44+
45+
46+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
47+
#
48+
# Specify the authors of the library, with email addresses. Email addresses
49+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
50+
# accepts just a name if you'd rather not provide an email address.
51+
#
52+
# Specify a social_media_url where others can refer to, for example a twitter
53+
# profile URL.
54+
#
55+
56+
s.author = { "Nawar Nory" => "nawar.a.nouri@gmail.com" }
57+
# Or just: s.author = "Nawar Nory"
58+
# s.authors = { "Nawar Nory" => "nawar.a.nouri@gmail.com" }
59+
s.social_media_url = "http://linkedin.com/profile/in/nnory"
60+
61+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
62+
#
63+
# If this Pod runs only on iOS or OS X, then specify the platform and
64+
# the deployment target. You can optionally include the target after the platform.
65+
#
66+
67+
# s.platform = :ios
68+
# s.platform = :ios, "5.0"
69+
70+
# When using multiple platforms
71+
# s.ios.deployment_target = "5.0"
72+
# s.osx.deployment_target = "10.7"
73+
# s.watchos.deployment_target = "2.0"
74+
# s.tvos.deployment_target = "9.0"
75+
76+
s.platform = :ios, "9.0"
77+
78+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
79+
#
80+
# Specify the location from where the source should be retrieved.
81+
# Supports git, hg, bzr, svn and HTTP.
82+
#
83+
84+
#s.source = { :git => "https://github.com/nawar/HTTPLite.git", :tag => "v#{s.version}" }
85+
s.source = { :git => "https://github.com/nawar/HTTPLite.git", :tag => "v#{s.version}", :commit => "725ce543a01029ad66e92b44bb6dee64ea0a97e8" }
86+
87+
88+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
89+
#
90+
# CocoaPods is smart about how it includes source code. For source files
91+
# giving a folder will include any swift, h, m, mm, c & cpp files.
92+
# For header files it will include any header in the folder.
93+
# Not including the public_header_files will make all headers public.
94+
#
95+
96+
s.source_files = "Classes"
97+
# s.exclude_files = "Classes/Exclude"
98+
99+
# s.public_header_files = "Classes/**/*.h"
100+
101+
102+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
103+
#
104+
# A list of resources included with the Pod. These are copied into the
105+
# target bundle with a build phase script. Anything else will be cleaned.
106+
# You can preserve files from being cleaned, please don't preserve
107+
# non-essential files like tests, examples and documentation.
108+
#
109+
110+
# s.resource = "icon.png"
111+
# s.resources = "Resources/*.png"
112+
113+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
114+
115+
116+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
117+
#
118+
# Link your library with frameworks, or libraries. Libraries do not include
119+
# the lib prefix of their name.
120+
#
121+
122+
# s.framework = "SomeFramework"
123+
# s.frameworks = "SomeFramework", "AnotherFramework"
124+
125+
# s.library = "iconv"
126+
# s.libraries = "iconv", "xml2"
127+
128+
129+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
130+
#
131+
# If your library depends on compiler flags you can set them in the xcconfig hash
132+
# where they will only apply to your library. If you depend on other Podspecs
133+
# you can include multiple dependencies to ensure it works.
134+
135+
# s.requires_arc = true
136+
137+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
138+
# s.dependency "JSONKit", "~> 1.4"
139+
140+
end

HTTPLite.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/* Begin PBXFileReference section */
2828
441B57D81DF4A24900EBAC7B /* HTTPLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = HTTPLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2929
441B57DB1DF4A24900EBAC7B /* HTTPLite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HTTPLite.h; sourceTree = "<group>"; };
30-
441B57DC1DF4A24900EBAC7B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = HTTPLite/Info.plist; sourceTree = "<group>"; };
30+
441B57DC1DF4A24900EBAC7B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3131
441B57E11DF4A24A00EBAC7B /* HTTPLiteTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HTTPLiteTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3232
441B57E61DF4A24A00EBAC7B /* HTTPLiteTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPLiteTests.swift; sourceTree = "<group>"; };
3333
441B57E81DF4A24A00EBAC7B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -60,7 +60,6 @@
6060
441B57DA1DF4A24900EBAC7B /* Classes */,
6161
441B57E51DF4A24A00EBAC7B /* HTTPLiteTests */,
6262
441B57D91DF4A24900EBAC7B /* Products */,
63-
441B57DC1DF4A24900EBAC7B /* Info.plist */,
6463
);
6564
sourceTree = "<group>";
6665
};
@@ -79,6 +78,7 @@
7978
441B57DB1DF4A24900EBAC7B /* HTTPLite.h */,
8079
441B57F01DF4A91D00EBAC7B /* Session.swift */,
8180
441B57F41DF4CBFE00EBAC7B /* Request.swift */,
81+
441B57DC1DF4A24900EBAC7B /* Info.plist */,
8282
);
8383
path = Classes;
8484
sourceTree = "<group>";
@@ -323,7 +323,7 @@
323323
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
324324
GCC_WARN_UNUSED_FUNCTION = YES;
325325
GCC_WARN_UNUSED_VARIABLE = YES;
326-
INFOPLIST_FILE = HTTPLite/Info.plist;
326+
INFOPLIST_FILE = "$(SRCROOT)/Classes/Info.plist";
327327
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
328328
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
329329
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -383,7 +383,7 @@
383383
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
384384
GCC_WARN_UNUSED_FUNCTION = YES;
385385
GCC_WARN_UNUSED_VARIABLE = YES;
386-
INFOPLIST_FILE = HTTPLite/Info.plist;
386+
INFOPLIST_FILE = "$(SRCROOT)/Classes/Info.plist";
387387
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
388388
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
389389
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";

0 commit comments

Comments
 (0)