Skip to content

Commit 103c7c8

Browse files
committed
Added support for CocoaPods.
1 parent c54d9ab commit 103c7c8

File tree

2 files changed

+146
-0
lines changed

2 files changed

+146
-0
lines changed

AccelerateArray.podspec

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
#
2+
# Be sure to run `pod spec lint AccelerateArray.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 = "AccelerateArray"
19+
s.version = "0.0.1"
20+
s.summary = "Swift Array Extensions for the Apple Accelerate Framework"
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+
Swift Array Extensions for the Apple Accelerate Framework
29+
For details see: https://github.com/dastrobu/AccelerateArray.
30+
DESC
31+
32+
s.homepage = "https://github.com/dastrobu/AccelerateArray"
33+
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
34+
35+
36+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
37+
#
38+
# Licensing your code is important. See http://choosealicense.com for more info.
39+
# CocoaPods will detect a license file if there is a named LICENSE*
40+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
41+
#
42+
43+
# s.license = "MIT (example)"
44+
s.license = { :type => "MIT" }
45+
46+
47+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
48+
#
49+
# Specify the authors of the library, with email addresses. Email addresses
50+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
51+
# accepts just a name if you'd rather not provide an email address.
52+
#
53+
# Specify a social_media_url where others can refer to, for example a twitter
54+
# profile URL.
55+
#
56+
57+
s.author = "Daniel Strobusch"
58+
# Or just: s.author = "Daniel Strobusch"
59+
# s.authors = { "Daniel Strobusch" => "email@address.com" }
60+
# s.social_media_url = "http://twitter.com/Daniel Strobusch"
61+
62+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
63+
#
64+
# If this Pod runs only on iOS or OS X, then specify the platform and
65+
# the deployment target. You can optionally include the target after the platform.
66+
#
67+
68+
s.swift_version = "4.1"
69+
70+
# s.platform = :ios
71+
# s.platform = :ios, "5.0"
72+
73+
# When using multiple platforms
74+
s.ios.deployment_target = "11.0"
75+
s.osx.deployment_target = "10.13"
76+
# s.watchos.deployment_target = "2.0"
77+
# s.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+
s.source = { :git => "https://github.com/dastrobu/AccelerateArray.git", :tag => "#{s.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+
s.source_files = "Sources", "Sources/**/*.swift"
98+
s.exclude_files = ".travis.yml"
99+
100+
# s.public_header_files = "Classes/**/*.h"
101+
102+
103+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
104+
#
105+
# A list of resources included with the Pod. These are copied into the
106+
# target bundle with a build phase script. Anything else will be cleaned.
107+
# You can preserve files from being cleaned, please don't preserve
108+
# non-essential files like tests, examples and documentation.
109+
#
110+
111+
# s.resource = "icon.png"
112+
# s.resources = "Resources/*.png"
113+
114+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
115+
116+
117+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
118+
#
119+
# Link your library with frameworks, or libraries. Libraries do not include
120+
# the lib prefix of their name.
121+
#
122+
123+
# s.framework = "SomeFramework"
124+
# s.frameworks = "SomeFramework", "AnotherFramework"
125+
126+
# s.library = "iconv"
127+
# s.libraries = "iconv", "xml2"
128+
129+
130+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
131+
#
132+
# If your library depends on compiler flags you can set them in the xcconfig hash
133+
# where they will only apply to your library. If you depend on other Podspecs
134+
# you can include multiple dependencies to ensure it works.
135+
136+
# s.requires_arc = true
137+
138+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
139+
# s.dependency "JSONKit", "~> 1.4"
140+
141+
end

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@ additional types, which can be easily built on top of this package.
2626
.package(url: "https://github.com/dastrobu/AccelerateArray.git", from: "0.0.0"),
2727
],
2828
29+
### Cocoa Pods
30+
Make sure a valid deployment target is setup in the Podfile and add
31+
32+
pod 'AccelerateArray', '~> 0'
33+
2934
### Dependencies
3035
There are no dependencies on macOS apart from the Accelerate framework, which is installed by default.

0 commit comments

Comments
 (0)