Skip to content

Commit

Permalink
Add podspec for 1.2.1 release
Browse files Browse the repository at this point in the history
Added podspec for iOS and Mac.
  • Loading branch information
pasin committed Apr 11, 2016
1 parent 020f7a3 commit 9e635d3
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Podspec/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
How to publish the Cocoapod Specs:

1. Install Cocoapod

```
sudo gem install cocoapods
```

2. Register a new session (Optional if the previous session hasn't been expired)

```
pod trunk register YOURNAME@couchbase.com "Full Name"
```

3. Open the podspec files and modify version number and the release zip file url.

4. Publish the spec files

```
pod trunk push --verbose couchbase-lite-ios.podspec
pod trunk push --verbose couchbase-lite-osx.podspec
```
43 changes: 43 additions & 0 deletions Podspec/couchbase-lite-ios.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Pod::Spec.new do |s|
s.name = 'couchbase-lite-ios'
s.version = '1.2.1'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE.txt' }
s.homepage = 'http://mobile.couchbase.com'
s.summary = 'An embedded syncable NoSQL database for iOS apps.'
s.author = 'Couchbase'
s.source = { :http => '<RELEASE ZIP FILE URL>' }
s.preserve_paths = 'LICENSE.txt'
s.ios.deployment_target = '7.0'
s.frameworks = 'CFNetwork', 'Security', 'SystemConfiguration'
s.libraries = 'z'
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
s.default_subspec = 'SQLite'

s.subspec 'SQLite' do |ss|
ss.libraries = 'sqlite3'
ss.source_files = 'CouchbaseLite.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLite.framework'
ss.vendored_frameworks = 'CouchbaseLite.framework'
end

s.subspec 'SQLCipher' do |ss|
ss.vendored_library = 'Extras/libsqlcipher.a'
ss.source_files = 'CouchbaseLite.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLite.framework'
ss.vendored_frameworks = 'CouchbaseLite.framework'
end

s.subspec 'ForestDB' do |ss|
ss.libraries = 'sqlite3', 'c++'
ss.vendored_library = 'Extras/libCBLForestDBStorage.a'
ss.source_files = 'CouchbaseLite.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLite.framework'
ss.vendored_frameworks = 'CouchbaseLite.framework'
end

s.subspec 'Listener' do |ss|
ss.source_files = 'CouchbaseLiteListener.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLiteListener.framework'
ss.vendored_frameworks = 'CouchbaseLiteListener.framework'
end
end
30 changes: 30 additions & 0 deletions Podspec/couchbase-lite-osx.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Pod::Spec.new do |s|
s.name = 'couchbase-lite-osx'
s.version = '1.2.1'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE.txt' }
s.homepage = 'http://mobile.couchbase.com'
s.summary = 'An embedded syncable NoSQL database for OSX apps.'
s.author = 'Couchbase'
s.source = { :http => '<RELEASE ZIP FILE URL>' }
s.preserve_paths = 'LICENSE.txt'
s.osx.deployment_target = '10.8'
s.frameworks = 'CFNetwork', 'Security', 'SystemConfiguration'
s.libraries = 'z', 'c++'
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }

s.default_subspec = 'Core'

s.subspec 'Core' do |ss|
ss.source_files = 'CouchbaseLite.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLite.framework'
ss.vendored_frameworks = 'CouchbaseLite.framework'
ss.osx.resource = 'CouchbaseLite.framework'
end

s.subspec 'Listener' do |ss|
ss.source_files = 'CouchbaseLiteListener.framework/Headers/*.h'
ss.preserve_paths = 'CouchbaseLiteListener.framework'
ss.vendored_frameworks = 'CouchbaseLiteListener.framework'
ss.osx.resource = 'CouchbaseLiteListener.framework'
end
end

0 comments on commit 9e635d3

Please sign in to comment.