Skip to content

Commit c2c3d52

Browse files
committed
Merge pull request stephencelis#314 from stephencelis/publicpod
Prep for public release to CocoaPods
2 parents 5790441 + eabf217 commit c2c3d52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+508
-1552
lines changed

.gitignore

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1+
# OS X
2+
.DS_Store
3+
14
# Xcode
25
build/
3-
timeline.xctimeline
4-
xcuserdata/
5-
6-
# System
7-
.DS_Store
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata
15+
*.xccheckout
16+
*.moved-aside
17+
DerivedData
18+
*.hmap
19+
*.ipa
20+
*.xcuserstate
821

922
# Carthage
10-
Carthage/
23+
Carthage

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "sqlcipher"]
2-
path = Vendor/sqlcipher
3-
url = https://github.com/sqlcipher/sqlcipher.git

Documentation/Index.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
- [Carthage](#carthage)
55
- [CocoaPods](#cocoapods)
66
- [Manual](#manual)
7-
- [SQLCipher](#sqlcipher)
87
- [Frameworkless Targets](#frameworkless-targets)
98
- [Getting Started](#getting-started)
109
- [Connecting to a Database](#connecting-to-a-database)
@@ -103,10 +102,6 @@ install SQLite.swift with Carthage:
103102
104103
pod 'SQLite.swift',
105104
git: 'https://github.com/stephencelis/SQLite.swift.git'
106-
107-
# instead, for SQLCipher support
108-
pod 'SQLiteCipher.swift',
109-
git: 'https://github.com/stephencelis/SQLite.swift.git'
110105
```
111106
112107
3. Run `pod install`.
@@ -132,22 +127,6 @@ To install SQLite.swift as an Xcode sub-project:
132127
You should now be able to `import SQLite` from any of your target’s source files and begin using SQLite.swift.
133128
134129
135-
#### SQLCipher
136-
137-
> _Note_: To install with CocoaPods, [see above](#cocoapods).
138-
139-
To install SQLite.swift with [SQLCipher](http://sqlcipher.net) support:
140-
141-
1. Make sure the **sqlcipher** working copy is checked out in Xcode. If **sqlcipher.xcodeproj** is unavailable (_i.e._, it appears red), go to the **Source Control** menu and select **Check Out sqlcipher…** from the **sqlcipher** menu item.
142-
143-
2. Follow [the instructions above](#manual) with the **SQLiteCipher** target, instead.
144-
145-
> _Note:_ By default, SQLCipher compiles [without support for full-text search](https://github.com/sqlcipher/sqlcipher/issues/102). If you intend to use [FTS4](#full-text-search), make sure you add the following to **Other C Flags** in the **Build Settings** of the **sqlcipher** target (in the **sqlcipher.xcodeproj** project):
146-
>
147-
> - `-DSQLITE_ENABLE_FTS4`
148-
> - `-DSQLITE_ENABLE_FTS3_PARENTHESIS`
149-
150-
151130
### Frameworkless Targets
152131
153132
It’s possible to use SQLite.swift in a target that doesn’t support frameworks, including iOS 7 apps and OS X command line tools, though it takes a little extra work.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ repl:
4848
swift -F '$(TMPDIR)/SQLite.swift/Build/Products/Debug'
4949

5050
sloc:
51-
@zsh -c "grep -vE '^ *//|^$$' SQLite/*.{swift,h,c} | wc -l"
51+
@zsh -c "grep -vE '^ *//|^$$' SQLite/*/*.{swift,h,m} | wc -l"
5252

5353
.PHONY: test coverage clean repl sloc

README.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ syntax _and_ intent.
2121
- A lightweight, uncomplicated query and parameter binding interface
2222
- Developer-friendly error handling and debugging
2323
- [Full-text search][] support
24-
- [SQLCipher](#sqlcipher) support
2524
- [Well-documented][See Documentation]
2625
- Extensively tested
26+
- SQLCipher support will be available again soon (see #311)
2727

2828
[Full-text search]: Documentation/Index.md#full-text-search
2929
[See Documentation]: Documentation/Index.md#sqliteswift-documentation
@@ -150,10 +150,6 @@ SQLite.swift with CocoaPods:
150150
151151
pod 'SQLite.swift',
152152
git: 'https://github.com/stephencelis/SQLite.swift.git'
153-
154-
# instead, for SQLCipher support
155-
pod 'SQLiteCipher.swift',
156-
git: 'https://github.com/stephencelis/SQLite.swift.git'
157153
```
158154
159155
3. Run `pod install`.
@@ -184,33 +180,6 @@ To install SQLite.swift as an Xcode sub-project:
184180
[download]: https://github.com/stephencelis/SQLite.swift/archive/master.zip
185181
186182
187-
#### SQLCipher
188-
189-
> _Note_: To install with CocoaPods, [see above](#cocoapods).
190-
191-
To install SQLite.swift with [SQLCipher][] support:
192-
193-
1. Make sure the **sqlcipher** working copy is checked out in Xcode. If
194-
**sqlcipher.xcodeproj** is unavailable (_i.e._, it appears red), go to the
195-
**Source Control** menu and select **Check Out sqlcipher…** from the
196-
**sqlcipher** menu item.
197-
198-
2. Follow [the instructions above](#manual) with the **SQLiteCipher** target,
199-
instead.
200-
201-
> _Note:_ By default, SQLCipher compiles [without support for full-text
202-
> search][]. If you intend to use [FTS4][], make sure you add the
203-
> following to **Other C Flags** in the **Build Settings** of the
204-
> **sqlcipher** target (in the **sqlcipher.xcodeproj** project):
205-
>
206-
> - `-DSQLITE_ENABLE_FTS4`
207-
> - `-DSQLITE_ENABLE_FTS3_PARENTHESIS`
208-
209-
[SQLCipher]: http://sqlcipher.net
210-
[without support for full-text search]: https://github.com/sqlcipher/sqlcipher/issues/102
211-
[FTS4]: http://www.sqlite.org/fts3.html
212-
213-
214183
## Communication
215184
216185
[See the planning document] for a roadmap and existing feature requests.

SQLite.swift.podspec

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1-
$LOAD_PATH << '.'
2-
require 'Supporting Files/podspec.rb'
1+
#
2+
# `pod lib lint SQLite.swift.podspec' fails - see
3+
# https://github.com/CocoaPods/CocoaPods/issues/4607
4+
#
35

4-
Pod::Spec.new do |spec|
5-
spec.name = 'SQLite.swift'
6-
spec.summary = 'A type-safe, Swift-language layer over SQLite3.'
6+
Pod::Spec.new do |s|
7+
s.name = "SQLite.swift"
8+
s.version = "0.9.0"
9+
s.summary = "A type-safe, Swift-language layer over SQLite3 for iOS and OS X."
710

8-
spec.description = <<-DESC
11+
s.description = <<-DESC
912
SQLite.swift provides compile-time confidence in SQL statement syntax and
1013
intent.
11-
DESC
14+
DESC
1215

13-
apply_shared_config spec, 'SQLite'
16+
s.homepage = "https://github.com/stephencelis/SQLite.swift"
17+
s.license = 'MIT'
18+
s.author = { "Stephen Celis" => "stephen@stephencelis.com" }
19+
s.source = { :git => "https://github.com/stephencelis/SQLite.swift.git", :tag => s.version.to_s }
20+
s.social_media_url = 'https://twitter.com/stephencelis'
21+
22+
s.module_name = 'SQLite'
23+
s.module_map = 'module.modulemap'
24+
s.ios.deployment_target = "8.0"
25+
26+
s.source_files = 'SQLite/**/*'
27+
28+
# make the sqlite3 C library behave like a module
29+
s.libraries = 'sqlite3'
30+
s.xcconfig = { 'SWIFT_INCLUDE_PATHS' => '${PODS_ROOT}/SQLite.swift/SQLite3' }
31+
s.preserve_path = 'SQLite3/*'
1432

15-
spec.exclude_files = 'Source/Cipher/Cipher.swift'
16-
spec.library = 'sqlite3'
1733
end

0 commit comments

Comments
 (0)