Skip to content

Commit

Permalink
V3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
intsig171 committed May 15, 2024
1 parent d388bf5 commit e715fed
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 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 (3.4.2)
- SmartCodable (3.4.3)
- SnapKit (5.6.0)
- SQLiteRepairKit (1.3.0):
- WCDBOptimizedSQLCipher (~> 1.3.0)
Expand Down Expand Up @@ -49,7 +49,7 @@ SPEC CHECKSUMS:
CleanJSON: 910a36465ce4829e264a902ccf6d1455fdd9f980
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
HandyJSON: 582477127ab3ab65bd2e471815f1a7b846856978
SmartCodable: a99b61311a03dcbeab24d680ab684f61db1d76ea
SmartCodable: a8dce63d9471246ad18cb900cef7a4ede0f7f1fb
SnapKit: e01d52ebb8ddbc333eefe2132acf85c8227d9c25
SQLiteRepairKit: a66145aadae91886c800f75e16f5cc6476af1a93
WCDB.swift: 39e28fe29b5a3bf2927d9fb9218978f19bd49ff0
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.

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

7 changes: 6 additions & 1 deletion Example/Tests/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import HandyJSON
import CleanJSON


let count = 1000 // or 1, 10, 100, 1000, 10000
let count = 10000 // or 1, 10, 100, 1000, 10000
let data = airportsJSON(count: count)

class Tests: XCTestCase {
Expand Down Expand Up @@ -65,6 +65,9 @@ class Tests: XCTestCase {

func testSmartCodable() {
measure {

print("执行了")

guard let objects = [Smart].deserialize(from: data) else {
return
}
Expand Down Expand Up @@ -142,6 +145,8 @@ struct Smart: SmartCodable {
var icao: String?
var coordinates: [Double]?
var runways: [Runway]?
var abc: String = ""
var def: Int = 0

struct Runway: SmartCodable {
enum Surface: String, SmartCaseDefaultable {
Expand Down
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 = '3.4.2'
s.version = '3.4.3'
s.summary = '数据解析库'

s.homepage = 'https://github.com/intsig171'
Expand Down
4 changes: 3 additions & 1 deletion SmartCodable/Classes/Log/LogCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ struct LogCache {
extension LogCache {

mutating func processArray(_ array: [String]) -> [String] {
guard !array.isEmpty else { return [] }

var mutableArray = array
var indexToInsert: [(index: Int, element: String)] = []

Expand All @@ -61,7 +63,7 @@ extension LogCache {
}
}
}

// 处理数组的其余元素
for i in 1..<mutableArray.count {
let currentComponents = mutableArray[i].components(separatedBy: "-")
Expand Down

0 comments on commit e715fed

Please sign in to comment.