Skip to content

Commit 0d77b80

Browse files
authored
Update LiteCore (#3443)
* LiteCore 3.3.0-132 * Update collectionConfigs API description * Deprecate old logging API
1 parent 853c343 commit 0d77b80

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Objective-C/CBLReplicatorConfiguration.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ __deprecated_msg("Use collectionConfigs instead");
4848

4949
/**
5050
The collection configurations used for the replication. Each configuration specifies a collection and its configuration.
51+
@note Will be renamed to `collections` in the next major release.
5152
*/
5253
@property (nonatomic, readonly) NSArray<CBLCollectionConfiguration*>* collectionConfigs;
5354

@@ -199,6 +200,7 @@ __deprecated_msg("Use -initWithCollections:target: instead.");
199200

200201
/**
201202
The collections used for the replication.
203+
@note Will be reintroduced, as array of CBLCollectionConfiguration, in the next major release.
202204
*/
203205
@property (nonatomic, readonly) NSArray<CBLCollection*>* collections
204206
__deprecated_msg("Use collectionConfigs instead.");

Swift/Log.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ import CouchbaseLiteSwift_Private
2424
public class Log {
2525

2626
/// Console logger writing log messages to the system console.
27+
@available(*, deprecated, message: "Use LogSinks.console instead.")
2728
public let console = ConsoleLogger()
2829

2930
/// File logger writing log messages to files.
31+
@available(*, deprecated, message: "Use LogSinks.file instead.")
3032
public let file = FileLogger()
3133

3234
/// For setting a custom logger. Changing the log level of the assigned custom logger will
3335
/// require the custom logger to be reassigned so that the change can be affected.
36+
@available(*, deprecated, message: "Use LogSinks.custom instead.")
3437
public var custom: Logger? {
3538
didSet {
3639
if let logger = custom {

Swift/ReplicatorConfiguration.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public struct ReplicatorConfiguration {
6969
/// The replication target to replicate with.
7070
public let target: Endpoint
7171

72-
/**
73-
The collection configurations used for the replication. Each configuration specifies a collection and its configuration.
74-
*/
72+
/// The collection configurations used for the replication. Each configuration specifies a collection and its configuration.
73+
/// - Note: Will be renamed to `collections` in the next major release.
74+
7575
public var collectionConfigs: [CollectionConfiguration] {
7676
return Array(self.collectionConfigMap.values)
7777
}
@@ -262,9 +262,12 @@ public struct ReplicatorConfiguration {
262262
/// they will not receive the events.
263263
///
264264
/// - Note: Auto purge will not be performed when documentIDs filter is specified.
265+
265266
public var enableAutoPurge: Bool = ReplicatorConfiguration.defaultEnableAutoPurge
266267

267268
/// The collections used for the replication.
269+
/// - Note: Will be reintroduced, as [CollectionConfiguration], in the next major release.
270+
268271
@available(*, deprecated, message: "Use collectionConfigs instead.")
269272
public var collections: [Collection] {
270273
return Array(self.collectionConfigMap.keys)

0 commit comments

Comments
 (0)