From 9e635d3a82ff6d398512d0c653a45bab051c9129 Mon Sep 17 00:00:00 2001 From: Pasin Suriyentrakorn Date: Mon, 11 Apr 2016 12:23:13 -0700 Subject: [PATCH] Add podspec for 1.2.1 release Added podspec for iOS and Mac. --- Podspec/README.md | 22 +++++++++++++++ Podspec/couchbase-lite-ios.podspec | 43 ++++++++++++++++++++++++++++++ Podspec/couchbase-lite-osx.podspec | 30 +++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 Podspec/README.md create mode 100644 Podspec/couchbase-lite-ios.podspec create mode 100644 Podspec/couchbase-lite-osx.podspec diff --git a/Podspec/README.md b/Podspec/README.md new file mode 100644 index 000000000..7e812038a --- /dev/null +++ b/Podspec/README.md @@ -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 + ``` diff --git a/Podspec/couchbase-lite-ios.podspec b/Podspec/couchbase-lite-ios.podspec new file mode 100644 index 000000000..178ffc6e2 --- /dev/null +++ b/Podspec/couchbase-lite-ios.podspec @@ -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 => '' } + 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 diff --git a/Podspec/couchbase-lite-osx.podspec b/Podspec/couchbase-lite-osx.podspec new file mode 100644 index 000000000..600200b31 --- /dev/null +++ b/Podspec/couchbase-lite-osx.podspec @@ -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 => '' } + 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