Skip to content

Commit 58f68a7

Browse files
author
test
committed
Add podspec
1 parent d0f51cb commit 58f68a7

2 files changed

Lines changed: 142 additions & 1 deletion

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ jobs:
1313
script: xcodebuild -scheme UserAgency SWIFT_VERSION=5.3 clean build
1414
osx_image: xcode12
1515
name: "Swift 5.3"
16-
after_success: bash <(curl -s https://codecov.io/bash)

UserAgency.podspec

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#
2+
# Be sure to run `pod spec lint UserAgency.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 https://guides.cocoapods.org/syntax/podspec.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |spec|
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+
spec.name = "UserAgency"
19+
spec.version = "0.0.1"
20+
spec.summary = "User-Agent generator library written in swift"
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+
spec.description = <<-DESC
28+
UserAgency is an iOS/macOS User-Agent generator library written in swift. Provides story-oriented usage, and comprehensive way to mock real life data.
29+
DESC
30+
31+
spec.homepage = "https://github.com/TerryHuangHD/UserAgency-iOS"
32+
# spec.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 https://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+
spec.license = { :type => "MIT", :file => "LICENSE" }
43+
# spec.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+
spec.author = { "Terry Huang" => "TerryHuangHD@gmail.com" }
57+
# Or just: spec.author = "test"
58+
# spec.authors = { "test" => "test@test.test" }
59+
# spec.social_media_url = "https://twitter.com/test"
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+
# spec.platform = :ios
68+
# spec.platform = :ios, "5.0"
69+
70+
spec.ios.deployment_target = "14.3"
71+
spec.swift_version = "5.3"
72+
73+
# When using multiple platforms
74+
# spec.ios.deployment_target = "5.0"
75+
# spec.osx.deployment_target = "10.7"
76+
# spec.watchos.deployment_target = "2.0"
77+
# spec.tvos.deployment_target = "9.0"
78+
79+
80+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
81+
#
82+
# Specify the location from where the source should be retrieved.
83+
# Supports git, hg, bzr, svn and HTTP.
84+
#
85+
86+
spec.source = { :git => "https://github.com/TerryHuangHD/UserAgency-iOS.git", :tag => "#{spec.version}" }
87+
88+
89+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
90+
#
91+
# CocoaPods is smart about how it includes source code. For source files
92+
# giving a folder will include any swift, h, m, mm, c & cpp files.
93+
# For header files it will include any header in the folder.
94+
# Not including the public_header_files will make all headers public.
95+
#
96+
97+
spec.source_files = "UserAgency/**/*.{h,m,swift}"
98+
# spec.source_files = "Classes", "Classes/**/*.{h,m}"
99+
# spec.exclude_files = "Classes/Exclude"
100+
101+
# spec.public_header_files = "Classes/**/*.h"
102+
103+
104+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
105+
#
106+
# A list of resources included with the Pod. These are copied into the
107+
# target bundle with a build phase script. Anything else will be cleaned.
108+
# You can preserve files from being cleaned, please don't preserve
109+
# non-essential files like tests, examples and documentation.
110+
#
111+
112+
# spec.resource = "icon.png"
113+
# spec.resources = "Resources/*.png"
114+
115+
# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
116+
117+
118+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
119+
#
120+
# Link your library with frameworks, or libraries. Libraries do not include
121+
# the lib prefix of their name.
122+
#
123+
124+
# spec.framework = "SomeFramework"
125+
# spec.frameworks = "SomeFramework", "AnotherFramework"
126+
127+
# spec.library = "iconv"
128+
# spec.libraries = "iconv", "xml2"
129+
130+
131+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
132+
#
133+
# If your library depends on compiler flags you can set them in the xcconfig hash
134+
# where they will only apply to your library. If you depend on other Podspecs
135+
# you can include multiple dependencies to ensure it works.
136+
137+
# spec.requires_arc = true
138+
139+
# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
140+
# spec.dependency "JSONKit", "~> 1.4"
141+
142+
end

0 commit comments

Comments
 (0)