Implement Couchbase Lite 4.1 for iOS and macOS - #69
Open
jeffdgr8 wants to merge 1 commit into
Open
Conversation
Updates the CouchbaseLite ObjC pod to 4.1.0. Vector Search 2.0 is not published to the CocoaPods spec repo, so a build task now downloads the xcframework from packages.couchbase.com and generates a local podspec for it. Apple actuals updated to 4.1: - CollectionConfiguration bound to its Collection (initWithCollection); fromCollections - ReplicatorConfiguration built via initWithCollections:target:, with kotbase-side validation of same-database-instance collections (the ObjC SDK throws an uncatchable NSInvalidArgumentException) - Document.timestamp, Replicator.correlationId - LogDomain adds PEER_DISCOVERY and MULTIPEER (ObjC MDNS domain is not exposed, matching the Java SDK) - KeyUsage maps to the CBLKeyUsages bitmask; TLSIdentity.createIdentityForKeyUsages - Listener configurations are collections-only - ListenerToken uses CBLListenerToken.remove (the 4.0 SDK removed removeChangeListenerWithToken and fixed the bug the old workaround covered) - FileLogSink maxFileSize is unsigned in 4.0 - FullTextFunction.rank(String) emulated via fullTextIndex expression - Database.delete/inBatch on a closed database now throw CouchbaseLiteException(NOT_OPEN), matching Java 4.1 semantics - Removed DatabaseChange/DatabaseChangeListener: the backing CBLDatabaseChange class was removed in ObjC 4.0 and kotbase removed the deprecated database-level listeners that produced them - Removed the private CBLDocument.generation interop declaration (symbol removed in 4.x; replaced by the public timestamp API) Tests updated for platform behavior differences: getInt of an out-of-range long is 0 on Java but truncates on ObjC/C (new intWhenLongOutOfRange test helper), and Fleece integers surface as Long on native (predictive model tests no longer unsafely cast). macosX64 tests: CE 798, EE 978, all extension modules green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the Couchbase Lite 4.1 common API for iOS and macOS: CouchbaseLite ObjC pod 4.1.0. Vector Search 2.0 is not published to CocoaPods, so a build task downloads the xcframework from packages.couchbase.com and generates a local podspec.
initWithCollections:target:),Document.timestamp,Replicator.correlationId, new log domains,CBLKeyUsages-basedTLSIdentityNSInvalidArgumentException)ListenerTokenusesCBLListenerToken.remove(the 4.0 SDK removedremoveChangeListenerWithTokenand fixed the bug the old workaround covered)Database.delete/inBatchon a closed database throwCouchbaseLiteException(NOT_OPEN), matching Java 4.1DatabaseChange/DatabaseChangeListener(backing class removed in ObjC 4.0; nothing can produce them since database-level listeners were removed)getIntout-of-range coercion differs between Java and ObjC/C; Fleece integers surface asLongon native)macosX64 tests: CE 798 / EE 978, zero failures.
🤖 Generated with Claude Code