-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Prep for public release to CocoaPods #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ac0fa8f
a35ae29
1ae2063
aedd054
eabf217
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# OS X | ||
.DS_Store | ||
|
||
# Xcode | ||
build/ | ||
timeline.xctimeline | ||
xcuserdata/ | ||
|
||
# System | ||
.DS_Store | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
|
||
# Carthage | ||
Carthage/ | ||
Carthage |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "sqlcipher"] | ||
path = Vendor/sqlcipher | ||
url = https://github.com/sqlcipher/sqlcipher.git | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,6 @@ repl: | |
swift -F '$(TMPDIR)/SQLite.swift/Build/Products/Debug' | ||
|
||
sloc: | ||
@zsh -c "grep -vE '^ *//|^$$' SQLite/*.{swift,h,c} | wc -l" | ||
@zsh -c "grep -vE '^ *//|^$$' SQLite/*/*.{swift,h,m} | wc -l" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! I don't think the depth is deeper than one directory here at the moment, but maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried "make sloc" and only got errors, and this made it work. (I almost deleted everything from the Makefile to "start fresh", but didn't want to deal with the potential repercussions as I'd already changed so much! (i.e. I was trying to resist (further?) bike shedding! ) |
||
|
||
.PHONY: test coverage clean repl sloc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
$LOAD_PATH << '.' | ||
require 'Supporting Files/podspec.rb' | ||
# | ||
# `pod lib lint SQLite.swift.podspec' fails - see | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, I'm getting this:
I can eliminate the middle one by adding this line to the pod spec: s.ios.deployment_target = "8.0" The other two, when running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you doing I agree that the deployment target is a good idea regardless though. (Though to be honest, I'm not sure it's possible to have Swift on < 8.0 anyway, so I think this comes out in the wash). |
||
# https://github.com/CocoaPods/CocoaPods/issues/4607 | ||
# | ||
|
||
Pod::Spec.new do |spec| | ||
spec.name = 'SQLite.swift' | ||
spec.summary = 'A type-safe, Swift-language layer over SQLite3.' | ||
Pod::Spec.new do |s| | ||
s.name = "SQLite.swift" | ||
s.version = "0.9.0" | ||
s.summary = "A type-safe, Swift-language layer over SQLite3 for iOS and OS X." | ||
|
||
spec.description = <<-DESC | ||
s.description = <<-DESC | ||
SQLite.swift provides compile-time confidence in SQL statement syntax and | ||
intent. | ||
DESC | ||
DESC | ||
|
||
apply_shared_config spec, 'SQLite' | ||
s.homepage = "https://github.com/stephencelis/SQLite.swift" | ||
s.license = 'MIT' | ||
s.author = { "Stephen Celis" => "stephen@stephencelis.com" } | ||
s.source = { :git => "https://github.com/stephencelis/SQLite.swift.git", :tag => s.version.to_s } | ||
s.social_media_url = 'https://twitter.com/stephencelis' | ||
|
||
s.module_name = 'SQLite' | ||
s.module_map = 'module.modulemap' | ||
s.ios.deployment_target = "8.0" | ||
|
||
s.source_files = 'SQLite/**/*' | ||
|
||
# make the sqlite3 C library behave like a module | ||
s.libraries = 'sqlite3' | ||
s.xcconfig = { 'SWIFT_INCLUDE_PATHS' => '${PODS_ROOT}/SQLite.swift/SQLite3' } | ||
s.preserve_path = 'SQLite3/*' | ||
|
||
spec.exclude_files = 'Source/Cipher/Cipher.swift' | ||
spec.library = 'sqlite3' | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change. Prepares us for swiftpm compatibility 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx :) I can't take full credit. This just seemed to be the norm in similar projects I viewed for comparison when I did "new project", so I copy pasted. Plus I've removed more than a few
.DS_Store
files over time.