Skip to content

Commit

Permalink
优化日志体系
Browse files Browse the repository at this point in the history
  • Loading branch information
Mccc committed Nov 21, 2024
1 parent d2fe5f5 commit 78440b7
Show file tree
Hide file tree
Showing 8 changed files with 352 additions and 340 deletions.
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PODS:
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- HandyJSON (5.0.0-beta.1)
- SmartCodable (4.2.6)
- SmartCodable (4.3.0-beta)
- SnapKit (5.6.0)

DEPENDENCIES:
Expand Down Expand Up @@ -39,7 +39,7 @@ SPEC CHECKSUMS:
CleanJSON: 910a36465ce4829e264a902ccf6d1455fdd9f980
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
HandyJSON: 582477127ab3ab65bd2e471815f1a7b846856978
SmartCodable: 09bc8e160ecb5fd0a7500cca792eb03e75a06477
SmartCodable: 8985750f1bb521bf7f94ab898260d77f4dc32f24
SnapKit: e01d52ebb8ddbc333eefe2132acf85c8227d9c25

PODFILE CHECKSUM: 7f3af03f81934df0c035518074a7abbec8fa9d3f
Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/SmartCodable.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

649 changes: 331 additions & 318 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions Example/SmartCodable/TestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class TestViewController: BaseViewController {
"sub": [
"a": "Mccc"
],
"subs": [[
"sub2s": [[
"d": []
],[
"sub_a": []
"sub2_a": []
]]
]

Expand All @@ -60,10 +60,10 @@ class TestViewController: BaseViewController {
"sub": [
"sub_a": "Mccc"
],
"subs": [[
"sub_a": "Mccc"
"sub2s": [[
"sub2_a": "Mccc"
],[
"sub_a": NSNull()
"sub2_a": NSNull()
]]
]

Expand All @@ -77,23 +77,23 @@ class TestViewController: BaseViewController {

struct Model: SmartCodable {
var sub: SubModel = SubModel()
var subs: [SubModel] = []
var sub2s: [SubTwoModel] = []

// var a: Int = 0
// var b: Int = 0
var a: Int = 0
var b: Int = 0
var c: Int = 0
}

struct SubModel: SmartCodable {
var sub_a: Int = 0
// var b: Int = 0
// var c: Int = 0
var sub_b: Int = 0
var sub_c: Int = 0
}

struct SubTwoModel: SmartCodable {
var a: Int = 0
var b: Int = 0
var c: Int = 0
var sub2_a: Int = 0
var sub2_b: Int = 0
var sub2_c: Int = 0
}
}

2 changes: 1 addition & 1 deletion SmartCodable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Pod::Spec.new do |s|
s.name = 'SmartCodable'
s.version = '4.2.6'
s.version = '4.3.0-beta'
s.summary = '数据解析库'

s.homepage = 'https://github.com/intsig171'
Expand Down
1 change: 0 additions & 1 deletion SmartCodable/Classes/Sentinel/LogContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ struct LogContainer {
codingPath.last?.intValue != nil
}
var formatTypeName: String {
// isUnKeyed ? "[\(typeName)]" : typeName
isUnKeyed ? "[\(typeName)]" : typeName

}
Expand Down

0 comments on commit 78440b7

Please sign in to comment.