Skip to content

Commit

Permalink
Merge branch 'release/1.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Sep 22, 2021
2 parents 5b2a9be + 8753ea9 commit cd5a926
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion RaLog.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Pod::Spec.new do |s|

s.name = 'RaLog'

s.version = '1.5.2'
s.version = '1.5.3'

s.summary = 'A logging framework.'

Expand Down
8 changes: 4 additions & 4 deletions RaLog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202109091127;
CURRENT_PROJECT_VERSION = 202109220919;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 5C9JW4S9DE;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand All @@ -402,7 +402,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
PRODUCT_BUNDLE_IDENTIFIER = com.rakuyo.RaLog;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand All @@ -415,7 +415,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202109091127;
CURRENT_PROJECT_VERSION = 202109220919;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 5C9JW4S9DE;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand All @@ -429,7 +429,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
PRODUCT_BUNDLE_IDENTIFIER = com.rakuyo.RaLog;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
12 changes: 6 additions & 6 deletions Sources/RaLog/Built-in.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import UIKit

/// Built-in log identifier.
public extension Log.Flag {
static let debug : Log.Flag = "👾 Debug"
static let warning : Log.Flag = "⚠️ Warning"
static let success : Log.Flag = "✅ Success"
static let error : Log.Flag = "❌ Error"
static let `deinit` : Log.Flag = "⁉️ Deinit"
static let jump : Log.Flag = "👋 Jump"
static let debug: Log.Flag = "👾 Debug"
static let warning: Log.Flag = "⚠️ Warning"
static let success: Log.Flag = "✅ Success"
static let error: Log.Flag = "❌ Error"
static let `deinit`: Log.Flag = "⁉️ Deinit"
static let jump: Log.Flag = "👋 Jump"
}

/// Built-in prefix log.
Expand Down
8 changes: 4 additions & 4 deletions Sources/RaLog/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ extension Log: Equatable {
public static func == (lhs: Log, rhs: Log) -> Bool {
// The `timestamp` & `line` is enough to filter out most cases, and finally judge the `logedStr`.
return lhs.timestamp == rhs.timestamp
&& lhs.line == rhs.line
&& lhs.file == rhs.file
&& lhs.safeLog == rhs.safeLog
&& lhs.logedStr == rhs.logedStr
&& lhs.line == rhs.line
&& lhs.file == rhs.file
&& lhs.safeLog == rhs.safeLog
&& lhs.logedStr == rhs.logedStr
}
}

Expand Down
4 changes: 1 addition & 3 deletions Sources/RaLog/Printable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public extension Printable {
@inline(__always) @discardableResult
static func print<T: LogModelProtocol>(_ log: T) -> T {
#if DEBUG

// 1. store format log
log.logedStr = self.format(log)

Expand All @@ -62,12 +61,11 @@ public extension Printable {
Swift.print(log.logedStr)
}

#endif

// 3. store
if let storable = self as? Storable.Type {
storable.store(log)
}
#endif

// 4. return
return log
Expand Down
3 changes: 0 additions & 3 deletions Sources/RaLog/Storable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,8 @@ public extension Storable {
}

case .continuous(let count):

switch result {
case .success:

// reset to 0
failureCount = 0

Expand All @@ -225,7 +223,6 @@ public extension Storable {
}

case .grandTotal(let count):

switch result {
case .success: break
case .failure(let error):
Expand Down
1 change: 0 additions & 1 deletion Sources/RaLog/WebView+RaLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public extension RaLogCompatible {
extension WKWebView: RaLogCompatible {}

public extension RaLogWrapper where Base: WKWebView {

/// Add script to WKWebView for intercepting `console.log`.
///
/// When the post closure is `nil` (default), the following method will be used to pass data to the native:
Expand Down

0 comments on commit cd5a926

Please sign in to comment.