Skip to content

Commit

Permalink
CBL-5990 : Fix _kCBLDefaultLogFileUsePlaintext symbol (#3305)
Browse files Browse the repository at this point in the history
* Fixed _kCBLDefaultLogFileUsePlaintext symbol.
* Added missing deprecated kCBLDefaultLogFileUsePlainText.
  • Loading branch information
pasin authored Jul 11, 2024
1 parent 670ba90 commit 000d542
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Objective-C/CBLDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
/** [NO] Plaintext is not used, and instead binary encoding is used in log files */
extern const BOOL kCBLDefaultLogFileUsePlaintext;

/** [NO] Plaintext is not used, and instead binary encoding is used in log files */
extern const BOOL kCBLDefaultLogFileUsePlainText __deprecated_msg("Use kCBLDefaultLogFileUsePlaintext instead.");

/** [524288] 512 KiB for the size of a log file */
extern const uint64_t kCBLDefaultLogFileMaxSize;

Expand Down
2 changes: 2 additions & 0 deletions Objective-C/CBLDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

const BOOL kCBLDefaultLogFileUsePlaintext = NO;

const BOOL kCBLDefaultLogFileUsePlainText = NO;

const uint64_t kCBLDefaultLogFileMaxSize = 524288;

const NSInteger kCBLDefaultLogFileMaxRotateCount = 1;
Expand Down
1 change: 1 addition & 0 deletions Objective-C/Exports/CBL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ _kCBLDefaultCollectionName
_kCBLDefaultFullTextIndexIgnoreAccents
_kCBLDefaultLogFileMaxRotateCount
_kCBLDefaultLogFileMaxSize
_kCBLDefaultLogFileUsePlaintext
_kCBLDefaultLogFileUsePlainText
_kCBLDefaultReplicatorAcceptParentCookies
_kCBLDefaultReplicatorAllowReplicatingInBackground
Expand Down
1 change: 1 addition & 0 deletions Objective-C/Exports/Generated/CBL.exp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ _kCBLDefaultFullTextIndexIgnoreAccents
_kCBLDefaultLogFileMaxRotateCount
_kCBLDefaultLogFileMaxSize
_kCBLDefaultLogFileUsePlainText
_kCBLDefaultLogFileUsePlaintext
_kCBLDefaultReplicatorAcceptParentCookies
_kCBLDefaultReplicatorAllowReplicatingInBackground
_kCBLDefaultReplicatorContinuous
Expand Down
1 change: 1 addition & 0 deletions Objective-C/Exports/Generated/CBL_EE.exp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ _kCBLDefaultListenerReadOnly
_kCBLDefaultLogFileMaxRotateCount
_kCBLDefaultLogFileMaxSize
_kCBLDefaultLogFileUsePlainText
_kCBLDefaultLogFileUsePlaintext
_kCBLDefaultReplicatorAcceptParentCookies
_kCBLDefaultReplicatorAllowReplicatingInBackground
_kCBLDefaultReplicatorContinuous
Expand Down
4 changes: 4 additions & 0 deletions Swift/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public extension LogFileConfiguration {

/// [false] Plaintext is not used, and instead binary encoding is used in log files
static let defaultUsePlaintext: Bool = false

/// [false] Plaintext is not used, and instead binary encoding is used in log files
/// @available(*, deprecated, message: "Use LogFileConfiguration.defaultUsePlaintext instead.")
static let defaultUsePlainText: Bool = false

/// [524288] 512 KiB for the size of a log file
static let defaultMaxSize: UInt64 = 524288
Expand Down

0 comments on commit 000d542

Please sign in to comment.