Skip to content

Commit

Permalink
Bumping podspec version to 2.6.2
Browse files Browse the repository at this point in the history
Also struggled to push the podspec to trunk. (It wouldn't lint either.) Had to make some compromises here just to get it pushed. Perhaps someone more knowledgable with podspec's can find a cleaner alternative.
  • Loading branch information
robbiehanson committed May 6, 2015
1 parent c12c600 commit 5e6d7b2
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions YapDatabase.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "YapDatabase"
s.version = "2.6.1"
s.version = "2.6.2"
s.summary = "A key/value store built atop sqlite for iOS & Mac."
s.homepage = "https://github.com/yapstudios/YapDatabase"
s.license = 'MIT'
Expand All @@ -11,29 +11,45 @@ Pod::Spec.new do |s|

s.default_subspec = 'standard'

s.subspec 'common' do |ss|
ss.source_files = 'YapDatabase/**/*.{h,m,mm}'
ss.xcconfig = { 'OTHER_LDFLAGS' => '-weak_library /usr/lib/libc++.dylib' }

ss.private_header_files = 'YapDatabase/**/Internal/*.h'
ss.dependency 'CocoaLumberjack', '~> 1'
ss.requires_arc = true
end
# This is failing when I 'pod spec lint' or 'pod trunk push' ...
# Is there a way to get around this ?
# The failure is because there is no 'ss.library' or 'ss.dependency' that pulls in sqlite.
#
# s.subspec 'common' do |ss|
# ss.dependency 'CocoaLumberjack', '~> 1'
#
# ss.source_files = 'YapDatabase/**/*.{h,m,mm}'
# ss.private_header_files = 'YapDatabase/**/Internal/*.h'
#
# ss.xcconfig = { 'OTHER_LDFLAGS' => '-weak_library /usr/lib/libc++.dylib' }
# ss.requires_arc = true
# end

# use a builtin version of sqlite3
s.subspec 'standard' do |ss|

ss.library = 'sqlite3'
ss.dependency 'YapDatabase/common'
# ss.dependency 'YapDatabase/common'

ss.dependency 'CocoaLumberjack', '~> 1'
ss.source_files = 'YapDatabase/**/*.{h,m,mm}'
ss.private_header_files = 'YapDatabase/**/Internal/*.h'
ss.xcconfig = { 'OTHER_LDFLAGS' => '-weak_library /usr/lib/libc++.dylib' }
ss.requires_arc = true
end

# use SQLCipher and enable -DSQLITE_HAS_CODEC flag
s.subspec 'SQLCipher' do |ss|
ss.dependency 'SQLCipher/fts'
ss.dependency 'YapDatabase/common'
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
# ss.dependency 'YapDatabase/common'

ss.dependency 'CocoaLumberjack', '~> 1'
ss.source_files = 'YapDatabase/**/*.{h,m,mm}'
ss.private_header_files = 'YapDatabase/**/Internal/*.h'
ss.xcconfig = { 'OTHER_LDFLAGS' => '-weak_library /usr/lib/libc++.dylib', 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
ss.requires_arc = true

ss.xcconfig = { }
end

s.requires_arc = true
end

0 comments on commit 5e6d7b2

Please sign in to comment.