-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added podspec for iOS and Mac.
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |