Skip to content

Commit ac0fa8f

Browse files
committed
Prep for public release to CocoaPods
* Remove `SQLiteCipher` (for now) * rebuild clean from "New Project" with Xcode 7.2 * fix build glitches with Carthage * fix build glitches with CocoaPods * separate build targets from test targets with @testable import * make sqlite3 a Swift system module so `import SQLite3` works in `.swift` files (for this framework) * use an Xcode project file instead of Workspace * folder structure rearranged * CocoaPod hassles: doesn't generate its own module.modulemap file, has spurious warning about missing include
1 parent 5638f1f commit ac0fa8f

Some content is hidden

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

64 files changed

+516
-1479
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

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

SQLite.swift.podspec

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
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" => "[email protected]" }
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+
25+
s.source_files = 'SQLite/**/*'
26+
27+
# make the sqlite3 C library behave like a module
28+
s.libraries = 'sqlite3'
29+
s.xcconfig = { 'SWIFT_INCLUDE_PATHS' => '${PODS_ROOT}/SQLite.swift/SQLite3' }
30+
s.preserve_path = 'SQLite3/*'
1431

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

SQLite.xcodeproj/project.pbxproj

Lines changed: 402 additions & 948 deletions
Large diffs are not rendered by default.

SQLite.xcodeproj/project.xcworkspace/xcshareddata/SQLite.xcscmblueprint

Lines changed: 0 additions & 30 deletions
This file was deleted.

SQLite.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

Lines changed: 0 additions & 8 deletions
This file was deleted.

SQLite.xcodeproj/xcshareddata/xcschemes/SQLite Mac.xcscheme

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0700"
3+
LastUpgradeVersion = "0720"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,7 +14,7 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "DC7253AB1B52ADEB009B38B1"
17+
BlueprintIdentifier = "EE247B3B1C3F3ED000AE3E12"
1818
BuildableName = "SQLite.framework"
1919
BlueprintName = "SQLite Mac"
2020
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -33,17 +33,17 @@
3333
skipped = "NO">
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
36-
BlueprintIdentifier = "DC7253B41B52ADEC009B38B1"
37-
BuildableName = "SQLite Mac Tests.xctest"
38-
BlueprintName = "SQLite Mac Tests"
36+
BlueprintIdentifier = "EE247B441C3F3ED000AE3E12"
37+
BuildableName = "SQLiteTests Mac.xctest"
38+
BlueprintName = "SQLiteTests Mac"
3939
ReferencedContainer = "container:SQLite.xcodeproj">
4040
</BuildableReference>
4141
</TestableReference>
4242
</Testables>
4343
<MacroExpansion>
4444
<BuildableReference
4545
BuildableIdentifier = "primary"
46-
BlueprintIdentifier = "DC7253AB1B52ADEB009B38B1"
46+
BlueprintIdentifier = "EE247B3B1C3F3ED000AE3E12"
4747
BuildableName = "SQLite.framework"
4848
BlueprintName = "SQLite Mac"
4949
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -65,7 +65,7 @@
6565
<MacroExpansion>
6666
<BuildableReference
6767
BuildableIdentifier = "primary"
68-
BlueprintIdentifier = "DC7253AB1B52ADEB009B38B1"
68+
BlueprintIdentifier = "EE247B3B1C3F3ED000AE3E12"
6969
BuildableName = "SQLite.framework"
7070
BlueprintName = "SQLite Mac"
7171
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -83,7 +83,7 @@
8383
<MacroExpansion>
8484
<BuildableReference
8585
BuildableIdentifier = "primary"
86-
BlueprintIdentifier = "DC7253AB1B52ADEB009B38B1"
86+
BlueprintIdentifier = "EE247B3B1C3F3ED000AE3E12"
8787
BuildableName = "SQLite.framework"
8888
BlueprintName = "SQLite Mac"
8989
ReferencedContainer = "container:SQLite.xcodeproj">

SQLite.xcodeproj/xcshareddata/xcschemes/SQLite iOS.xcscheme

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0700"
3+
LastUpgradeVersion = "0720"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,7 +14,7 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "DC2B29E11B26F718001C60EA"
17+
BlueprintIdentifier = "EE247AD21C3F04ED00AE3E12"
1818
BuildableName = "SQLite.framework"
1919
BlueprintName = "SQLite iOS"
2020
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -23,27 +23,27 @@
2323
</BuildActionEntries>
2424
</BuildAction>
2525
<TestAction
26+
buildConfiguration = "Debug"
2627
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2728
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2829
shouldUseLaunchSchemeArgsEnv = "YES"
29-
codeCoverageEnabled = "YES"
30-
buildConfiguration = "Debug">
30+
codeCoverageEnabled = "YES">
3131
<Testables>
3232
<TestableReference
3333
skipped = "NO">
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
36-
BlueprintIdentifier = "DC2B29EB1B26F718001C60EA"
37-
BuildableName = "SQLite iOS Tests.xctest"
38-
BlueprintName = "SQLite iOS Tests"
36+
BlueprintIdentifier = "EE247ADC1C3F04ED00AE3E12"
37+
BuildableName = "SQLiteTests iOS.xctest"
38+
BlueprintName = "SQLiteTests iOS"
3939
ReferencedContainer = "container:SQLite.xcodeproj">
4040
</BuildableReference>
4141
</TestableReference>
4242
</Testables>
4343
<MacroExpansion>
4444
<BuildableReference
4545
BuildableIdentifier = "primary"
46-
BlueprintIdentifier = "DC2B29E11B26F718001C60EA"
46+
BlueprintIdentifier = "EE247AD21C3F04ED00AE3E12"
4747
BuildableName = "SQLite.framework"
4848
BlueprintName = "SQLite iOS"
4949
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -53,19 +53,19 @@
5353
</AdditionalOptions>
5454
</TestAction>
5555
<LaunchAction
56+
buildConfiguration = "Debug"
5657
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5758
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5859
launchStyle = "0"
5960
useCustomWorkingDirectory = "NO"
60-
buildConfiguration = "Debug"
6161
ignoresPersistentStateOnLaunch = "NO"
6262
debugDocumentVersioning = "YES"
6363
debugServiceExtension = "internal"
6464
allowLocationSimulation = "YES">
6565
<MacroExpansion>
6666
<BuildableReference
6767
BuildableIdentifier = "primary"
68-
BlueprintIdentifier = "DC2B29E11B26F718001C60EA"
68+
BlueprintIdentifier = "EE247AD21C3F04ED00AE3E12"
6969
BuildableName = "SQLite.framework"
7070
BlueprintName = "SQLite iOS"
7171
ReferencedContainer = "container:SQLite.xcodeproj">
@@ -75,15 +75,15 @@
7575
</AdditionalOptions>
7676
</LaunchAction>
7777
<ProfileAction
78+
buildConfiguration = "Release"
7879
shouldUseLaunchSchemeArgsEnv = "YES"
7980
savedToolIdentifier = ""
8081
useCustomWorkingDirectory = "NO"
81-
buildConfiguration = "Release"
8282
debugDocumentVersioning = "YES">
8383
<MacroExpansion>
8484
<BuildableReference
8585
BuildableIdentifier = "primary"
86-
BlueprintIdentifier = "DC2B29E11B26F718001C60EA"
86+
BlueprintIdentifier = "EE247AD21C3F04ED00AE3E12"
8787
BuildableName = "SQLite.framework"
8888
BlueprintName = "SQLite iOS"
8989
ReferencedContainer = "container:SQLite.xcodeproj">

SQLite.xcodeproj/xcshareddata/xcschemes/SQLiteCipher Mac.xcscheme

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)