diff --git a/CouchbaseLite.podspec b/CouchbaseLite.podspec
index eedf82a3c..ae6e5e522 100644
--- a/CouchbaseLite.podspec
+++ b/CouchbaseLite.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CouchbaseLite'
- s.version = '2.0DB2'
+ s.version = '2.0DB002'
s.license = 'Apache License, Version 2.0'
s.homepage = 'http://mobile.couchbase.com'
s.summary = 'An embedded syncable NoSQL database for iOS, tvOS, and MacOS apps.'
@@ -11,14 +11,14 @@ Pod::Spec.new do |s|
sh Scripts/prepare_cocoapods.sh "CBL ObjC"
CMD
- s.ios.preserve_paths = 'frameworks/CBL ObjC/ios/CouchbaseLite.framework'
- s.ios.vendored_frameworks = 'frameworks/CBL ObjC/ios/CouchbaseLite.framework'
+ s.ios.preserve_paths = 'frameworks/CBL ObjC/iOS/CouchbaseLite.framework'
+ s.ios.vendored_frameworks = 'frameworks/CBL ObjC/iOS/CouchbaseLite.framework'
- s.tvos.preserve_paths = 'frameworks/CBL ObjC/tvos/CouchbaseLite.framework'
- s.tvos.vendored_frameworks = 'frameworks/CBL ObjC/tvos/CouchbaseLite.framework'
+ s.tvos.preserve_paths = 'frameworks/CBL ObjC/tvOS/CouchbaseLite.framework'
+ s.tvos.vendored_frameworks = 'frameworks/CBL ObjC/tvOS/CouchbaseLite.framework'
- s.osx.preserve_paths = 'frameworks/CBL ObjC/macos/CouchbaseLite.framework'
- s.osx.vendored_frameworks = 'frameworks/CBL ObjC/macos/CouchbaseLite.framework'
+ s.osx.preserve_paths = 'frameworks/CBL ObjC/macOS/CouchbaseLite.framework'
+ s.osx.vendored_frameworks = 'frameworks/CBL ObjC/macOS/CouchbaseLite.framework'
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
diff --git a/CouchbaseLiteSwift.podspec b/CouchbaseLiteSwift.podspec
index 0c0d895cb..3a4e2d364 100644
--- a/CouchbaseLiteSwift.podspec
+++ b/CouchbaseLiteSwift.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CouchbaseLiteSwift'
- s.version = '2.0DB2'
+ s.version = '2.0DB002'
s.license = 'Apache License, Version 2.0'
s.homepage = 'http://mobile.couchbase.com'
s.summary = 'An embedded syncable NoSQL database for iOS, tvOS, and MacOS apps.'
@@ -11,14 +11,14 @@ Pod::Spec.new do |s|
sh Scripts/prepare_cocoapods.sh "CBL Swift"
CMD
- s.ios.preserve_paths = 'frameworks/CBL Swift/ios/CouchbaseLiteSwift.framework'
- s.ios.vendored_frameworks = 'frameworks/CBL Swift/ios/CouchbaseLiteSwift.framework'
+ s.ios.preserve_paths = 'frameworks/CBL Swift/iOS/CouchbaseLiteSwift.framework'
+ s.ios.vendored_frameworks = 'frameworks/CBL Swift/iOS/CouchbaseLiteSwift.framework'
- s.tvos.preserve_paths = 'frameworks/CBL Swift/tvos/CouchbaseLiteSwift.framework'
- s.tvos.vendored_frameworks = 'frameworks/CBL Swift/tvos/CouchbaseLiteSwift.framework'
+ s.tvos.preserve_paths = 'frameworks/CBL Swift/tvOS/CouchbaseLiteSwift.framework'
+ s.tvos.vendored_frameworks = 'frameworks/CBL Swift/tvOS/CouchbaseLiteSwift.framework'
- s.osx.preserve_paths = 'frameworks/CBL Swift/macos/CouchbaseLiteSwift.framework'
- s.osx.vendored_frameworks = 'frameworks/CBL Swift/macos/CouchbaseLiteSwift.framework'
+ s.osx.preserve_paths = 'frameworks/CBL Swift/macOS/CouchbaseLiteSwift.framework'
+ s.osx.vendored_frameworks = 'frameworks/CBL Swift/macOS/CouchbaseLiteSwift.framework'
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
diff --git a/Objective-C/Info.plist b/Objective-C/Info.plist
index 82f68085b..358cd5808 100644
--- a/Objective-C/Info.plist
+++ b/Objective-C/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 2.0DB2
+ $(CBL_VERSION_STRING)
CFBundleVersion
$(CURRENT_PROJECT_VERSION)
NSHumanReadableCopyright
diff --git a/Scripts/Support/License/LICENSE_community.txt b/Scripts/Support/License/LICENSE_community.txt
new file mode 100644
index 000000000..bdf0aa1cc
--- /dev/null
+++ b/Scripts/Support/License/LICENSE_community.txt
@@ -0,0 +1,17 @@
+Couchbase, Inc. Community Edition License Agreement
+
+IMPORTANT-READ CAREFULLY: BY CLICKING THE “I ACCEPT” BOX OR INSTALLING, DOWNLOADING OR OTHERWISE USING THIS SOFTWARE AND ANY ASSOCIATED DOCUMENTATION, YOU, ON BEHALF OF YOURSELF OR AS AN AUTHORIZED REPRESENTATIVE ON BEHALF OF AN ENTITY (“LICENSEE”) AGREE TO ALL THE TERMS OF THIS COMMUNITY EDITION LICENSE AGREEMENT (THE “AGREEMENT”) REGARDING YOUR USE OF THE SOFTWARE. YOU REPRESENT AND WARRANT THAT YOU HAVE FULL LEGAL AUTHORITY TO BIND THE LICENSEE TO THIS AGREEMENT. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS, DO NOT SELECT THE “I ACCEPT” BOX AND DO NOT INSTALL, DOWNLOAD OR OTHERWISE USE THE SOFTWARE. THE EFFECTIVE DATE OF THIS AGREEMENT IS THE DATE ON WHICH YOU CLICK “I ACCEPT” OR OTHERWISE INSTALL, DOWNLOAD OR USE THE SOFTWARE.
+
+1. License Grant. Couchbase Inc. hereby grants Licensee, free of charge, the non-exclusive right to use, copy, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to Licensee including the following copyright notice in all copies or substantial portions of the Software:
+
+Couchbase ®
+http://www.couchbase.com
+Copyright 2011 Couchbase, Inc.
+
+As used in this Agreement, “Software” means the object code version of the applicable elastic data management server software provided by Couchbase, Inc.
+
+2. Restrictions. Licensee will not: (a) reverse engineer, disassemble, or decompile the Software (except to the extent such restrictions are prohibited by law);
+
+3. Support. Couchbase, Inc. will provide Licensee with access to, and use of, the Couchbase, Inc. support forum available at the following URL: http://forums.Couchbase.org. Couchbase, Inc. may, at its discretion, modify, suspend or terminate support at any time.
+
+4. Warranty Disclaimer and Limitation of Liability. THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL COUCHBASE INC. OR THE AUTHORS OR COPYRIGHT HOLDERS IN THE SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES (INCLUDING, WITHOUT LIMITATION, DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES) OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Scripts/Support/License/LICENSE_enterprise.txt b/Scripts/Support/License/LICENSE_enterprise.txt
new file mode 100644
index 000000000..bd032d565
--- /dev/null
+++ b/Scripts/Support/License/LICENSE_enterprise.txt
@@ -0,0 +1,47 @@
+COUCHBASE INC. ENTERPRISE LICENSE AGREEMENT - FREE EDITION
+
+IMPORTANT-READ CAREFULLY: BY CLICKING THE "I ACCEPT" BOX OR INSTALLING,
+DOWNLOADING OR OTHERWISE USING THIS SOFTWARE AND ANY ASSOCIATED
+DOCUMENTATION, YOU, ON BEHALF OF YOURSELF OR AS AN AUTHORIZED
+REPRESENTATIVE ON BEHALF OF AN ENTITY ("LICENSEE") AGREE TO ALL THE
+TERMS OF THIS ENTERPRISE LICENSE AGREEMENT - FREE EDITION (THE
+"AGREEMENT") REGARDING YOUR USE OF THE SOFTWARE. YOU REPRESENT AND
+WARRANT THAT YOU HAVE FULL LEGAL AUTHORITY TO BIND THE LICENSEE TO THIS
+AGREEMENT. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS, DO NOT SELECT
+THE "I ACCEPT" BOX AND DO NOT INSTALL, DOWNLOAD OR OTHERWISE USE THE
+SOFTWARE. THE EFFECTIVE DATE OF THIS AGREEMENT IS THE DATE ON WHICH YOU
+CLICK "I ACCEPT" OR OTHERWISE INSTALL, DOWNLOAD OR USE THE SOFTWARE.
+
+1. License Grant. Subject to Licensee's compliance with the terms and
+conditions of this Agreement, Couchbase Inc. hereby grants to Licensee a
+perpetual, non-exclusive, non-transferable, non-sublicensable,
+royalty-free, limited license to install and use the Software only for
+Licensee's own internal non-production use for the purpose of
+evaluation and/or development.
+
+2. Restrictions. Licensee will not reverse engineer, disassemble, or
+decompile the Software (except to the extent such restrictions are
+prohibited by law).
+
+3. Support. Couchbase Inc. will provide Licensee with: (a) periodic
+Software updates to correct known bugs and errors to the extent
+Couchbase Inc. incorporates such corrections into the free edition
+version of the Software; and (b) access to, and use of, the Couchbase
+Inc. support forum available at the following URL:
+http://www.couchbase.org/forums/. Couchbase, Inc. may, at its
+discretion, modify, suspend or terminate support at any time upon notice
+to Licensee.
+
+4. Warranty Disclaimer and Limitation of Liability. THE SOFTWARE IS
+PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+COUCHBASE INC. OR THE AUTHORS OR COPYRIGHT HOLDERS IN THE SOFTWARE BE
+LIABLE FOR ANY INDIRECT OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE OR FOR AN AMOUNT IN THE AGGREGATE EXCEEDING ONE HUNDRED DOLLARS.
+
+5. General. This Agreement is the entire agreement and is governed by California law.
+
+
diff --git a/Scripts/build_framework.sh b/Scripts/build_framework.sh
old mode 100755
new mode 100644
index 6fcf79bd3..cc3167352
--- a/Scripts/build_framework.sh
+++ b/Scripts/build_framework.sh
@@ -4,7 +4,7 @@ set -e
function usage
{
- echo "\nUsage: ${0} -s -p -o