Skip to content

Commit ea95847

Browse files
committed
Setup CocoaPods
1 parent c5d499e commit ea95847

File tree

6 files changed

+174
-23
lines changed

6 files changed

+174
-23
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ xcuserdata
3131

3232
# Carthage
3333
Carthage/Build
34+
35+
# AppCode
36+
.idea/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Vincent Garrigues
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SQLiteMigrationManager.swift.podspec

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
#
2+
# Be sure to run `pod spec lint SQLiteMigrationManager.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 = "SQLiteMigrationManager.swift"
19+
s.version = "0.0.1"
20+
s.summary = "Migration manager for SQLite.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+
s.description = <<-DESC
28+
Migration manager for SQLite.swift, based on FMDBMigrationManager.
29+
DESC
30+
s.homepage = "https://github.com/garriguv/SQLiteMigrationManager.swift"
31+
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
32+
33+
34+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
35+
#
36+
# Licensing your code is important. See http://choosealicense.com for more info.
37+
# CocoaPods will detect a license file if there is a named LICENSE*
38+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
39+
#
40+
41+
s.license = { :type => "MIT", :file => "LICENSE" }
42+
43+
44+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
45+
#
46+
# Specify the authors of the library, with email addresses. Email addresses
47+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
48+
# accepts just a name if you'd rather not provide an email address.
49+
#
50+
# Specify a social_media_url where others can refer to, for example a twitter
51+
# profile URL.
52+
#
53+
54+
s.author = { "Vincent Garrigues" => "[email protected]" }
55+
# Or just: s.author = "Vincent Garrigues"
56+
# s.authors = { "Vincent Garrigues" => "[email protected]" }
57+
s.social_media_url = "http://twitter.com/garriguv"
58+
59+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
60+
#
61+
# If this Pod runs only on iOS or OS X, then specify the platform and
62+
# the deployment target. You can optionally include the target after the platform.
63+
#
64+
65+
s.platform = :ios, "8.0"
66+
# s.platform = :ios, "5.0"
67+
68+
# When using multiple platforms
69+
# s.ios.deployment_target = "5.0"
70+
# s.osx.deployment_target = "10.7"
71+
# s.watchos.deployment_target = "2.0"
72+
# s.tvos.deployment_target = "9.0"
73+
74+
75+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
76+
#
77+
# Specify the location from where the source should be retrieved.
78+
# Supports git, hg, bzr, svn and HTTP.
79+
#
80+
81+
s.source = { :git => "https://github.com/garriguv/SQLiteMigrationManager.swift.git", tag: s.version.to_s, submodules: true }
82+
83+
84+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
85+
#
86+
# CocoaPods is smart about how it includes source code. For source files
87+
# giving a folder will include any swift, h, m, mm, c & cpp files.
88+
# For header files it will include any header in the folder.
89+
# Not including the public_header_files will make all headers public.
90+
#
91+
92+
s.source_files = "SQLiteMigrationManager", "SQLiteMigrationManager/**/*.{h,m}"
93+
# s.exclude_files = "Classes/Exclude"
94+
95+
# s.public_header_files = "Classes/**/*.h"
96+
97+
98+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
99+
#
100+
# A list of resources included with the Pod. These are copied into the
101+
# target bundle with a build phase script. Anything else will be cleaned.
102+
# You can preserve files from being cleaned, please don't preserve
103+
# non-essential files like tests, examples and documentation.
104+
#
105+
106+
# s.resource = "icon.png"
107+
# s.resources = "Resources/*.png"
108+
109+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
110+
111+
112+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
113+
#
114+
# Link your library with frameworks, or libraries. Libraries do not include
115+
# the lib prefix of their name.
116+
#
117+
118+
# s.framework = "SomeFramework"
119+
# s.frameworks = "SomeFramework", "AnotherFramework"
120+
121+
# s.library = "iconv"
122+
# s.libraries = "iconv", "xml2"
123+
124+
125+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
126+
#
127+
# If your library depends on compiler flags you can set them in the xcconfig hash
128+
# where they will only apply to your library. If you depend on other Podspecs
129+
# you can include multiple dependencies to ensure it works.
130+
131+
# s.requires_arc = true
132+
133+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
134+
135+
s.dependency "SQLite.swift", "~> 0.9.2"
136+
137+
end

SQLiteMigrationManager.xcodeproj/project.pbxproj

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
9FD5BFCFC94877B8D96F1073 /* SQLiteMigrationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FD5B054E651DC4BD08A8C8E /* SQLiteMigrationManager.swift */; };
1011
EBD762D21C4BA3E800951FE6 /* SQLite.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EBD762D11C4BA3E800951FE6 /* SQLite.framework */; };
1112
EBD762D51C4BA3FA00951FE6 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EBD762D31C4BA3FA00951FE6 /* Nimble.framework */; };
1213
EBD762D61C4BA3FA00951FE6 /* Quick.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EBD762D41C4BA3FA00951FE6 /* Quick.framework */; };
13-
EBE813E81C4BA00200EE04E8 /* SQLiteMigrationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = EBE813E71C4BA00200EE04E8 /* SQLiteMigrationManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
1414
EBE813EF1C4BA00200EE04E8 /* SQLiteMigrationManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EBE813E41C4BA00200EE04E8 /* SQLiteMigrationManager.framework */; };
1515
EBE813F41C4BA00200EE04E8 /* SQLiteMigrationManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EBE813F31C4BA00200EE04E8 /* SQLiteMigrationManagerTests.swift */; };
1616
/* End PBXBuildFile section */
@@ -26,11 +26,11 @@
2626
/* End PBXContainerItemProxy section */
2727

2828
/* Begin PBXFileReference section */
29+
9FD5B054E651DC4BD08A8C8E /* SQLiteMigrationManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLiteMigrationManager.swift; sourceTree = "<group>"; };
2930
EBD762D11C4BA3E800951FE6 /* SQLite.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SQLite.framework; path = "Carthage/Checkouts/SQLite.swift/build/Debug-iphoneos/SQLite.framework"; sourceTree = "<group>"; };
3031
EBD762D31C4BA3FA00951FE6 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = "Carthage/Checkouts/Nimble/build/Debug-iphoneos/Nimble.framework"; sourceTree = "<group>"; };
3132
EBD762D41C4BA3FA00951FE6 /* Quick.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quick.framework; path = "Carthage/Checkouts/Quick/build/Debug-iphoneos/Quick.framework"; sourceTree = "<group>"; };
3233
EBE813E41C4BA00200EE04E8 /* SQLiteMigrationManager.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLiteMigrationManager.framework; sourceTree = BUILT_PRODUCTS_DIR; };
33-
EBE813E71C4BA00200EE04E8 /* SQLiteMigrationManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQLiteMigrationManager.h; sourceTree = "<group>"; };
3434
EBE813E91C4BA00200EE04E8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3535
EBE813EE1C4BA00200EE04E8 /* SQLiteMigrationManagerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SQLiteMigrationManagerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3636
EBE813F31C4BA00200EE04E8 /* SQLiteMigrationManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SQLiteMigrationManagerTests.swift; sourceTree = "<group>"; };
@@ -83,8 +83,8 @@
8383
EBE813E61C4BA00200EE04E8 /* SQLiteMigrationManager */ = {
8484
isa = PBXGroup;
8585
children = (
86-
EBE813E71C4BA00200EE04E8 /* SQLiteMigrationManager.h */,
8786
EBE813E91C4BA00200EE04E8 /* Info.plist */,
87+
9FD5B054E651DC4BD08A8C8E /* SQLiteMigrationManager.swift */,
8888
);
8989
path = SQLiteMigrationManager;
9090
sourceTree = "<group>";
@@ -105,7 +105,6 @@
105105
isa = PBXHeadersBuildPhase;
106106
buildActionMask = 2147483647;
107107
files = (
108-
EBE813E81C4BA00200EE04E8 /* SQLiteMigrationManager.h in Headers */,
109108
);
110109
runOnlyForDeploymentPostprocessing = 0;
111110
};
@@ -206,6 +205,7 @@
206205
isa = PBXSourcesBuildPhase;
207206
buildActionMask = 2147483647;
208207
files = (
208+
9FD5BFCFC94877B8D96F1073 /* SQLiteMigrationManager.swift in Sources */,
209209
);
210210
runOnlyForDeploymentPostprocessing = 0;
211211
};
@@ -327,6 +327,7 @@
327327
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
328328
INFOPLIST_FILE = SQLiteMigrationManager/Info.plist;
329329
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
330+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
330331
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
331332
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteMigrationManager;
332333
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -344,6 +345,7 @@
344345
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
345346
INFOPLIST_FILE = SQLiteMigrationManager/Info.plist;
346347
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
348+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
347349
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
348350
PRODUCT_BUNDLE_IDENTIFIER = io.garriguv.SQLiteMigrationManager;
349351
PRODUCT_NAME = "$(TARGET_NAME)";

SQLiteMigrationManager/SQLiteMigrationManager.h

-19
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Foundation
2+
3+
public struct SQLiteMigrationManager {
4+
public func helloWorld() -> String {
5+
return "Hello World!"
6+
}
7+
}

0 commit comments

Comments
 (0)