Skip to content

Commit 2420376

Browse files
committed
升级依赖swift-syntax
1 parent 2b01d14 commit 2420376

4 files changed

Lines changed: 13 additions & 39 deletions

File tree

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ PODS:
88
- FBSnapshotTestCase/SwiftSupport (2.1.4):
99
- FBSnapshotTestCase/Core
1010
- HandyJSON (5.0.0-beta.1)
11-
- SmartCodable/Core (5.1.3)
12-
- SmartCodable/Inherit (5.1.3):
11+
- SmartCodable/Core (5.1.4)
12+
- SmartCodable/Inherit (5.1.4):
1313
- SmartCodable/Core
1414
- SnapKit (5.6.0)
1515

@@ -41,7 +41,7 @@ SPEC CHECKSUMS:
4141
CleanJSON: 910a36465ce4829e264a902ccf6d1455fdd9f980
4242
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
4343
HandyJSON: 582477127ab3ab65bd2e471815f1a7b846856978
44-
SmartCodable: ff4c6dd2fe27f724321279b5c04ec8558405a2b9
44+
SmartCodable: 7f200c1bd8d618bd404e4ef64ea6bd7d07fd05e7
4545
SnapKit: e01d52ebb8ddbc333eefe2132acf85c8227d9c25
4646

4747
PODFILE CHECKSUM: fbd909bd1bf3747400cd705163fad38954f6a18f

Example/SmartCodable.xcodeproj/xcshareddata/xcschemes/SmartCodable-Example.xcscheme

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,16 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<MacroExpansion>
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
48+
BuildableName = "SmartCodable_Example.app"
49+
BlueprintName = "SmartCodable_Example"
50+
ReferencedContainer = "container:SmartCodable.xcodeproj">
51+
</BuildableReference>
52+
</MacroExpansion>
4553
<Testables>
4654
<TestableReference
4755
skipped = "NO">
@@ -54,23 +62,11 @@
5462
</BuildableReference>
5563
</TestableReference>
5664
</Testables>
57-
<MacroExpansion>
58-
<BuildableReference
59-
BuildableIdentifier = "primary"
60-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61-
BuildableName = "SmartCodable_Example.app"
62-
BlueprintName = "SmartCodable_Example"
63-
ReferencedContainer = "container:SmartCodable.xcodeproj">
64-
</BuildableReference>
65-
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
6865
</TestAction>
6966
<LaunchAction
7067
buildConfiguration = "Debug"
7168
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7269
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7470
launchStyle = "0"
7571
useCustomWorkingDirectory = "NO"
7672
ignoresPersistentStateOnLaunch = "NO"
@@ -87,8 +83,6 @@
8783
ReferencedContainer = "container:SmartCodable.xcodeproj">
8884
</BuildableReference>
8985
</BuildableProductRunnable>
90-
<AdditionalOptions>
91-
</AdditionalOptions>
9286
</LaunchAction>
9387
<ProfileAction
9488
buildConfiguration = "Release"

Example/SmartCodable/TestViewController.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,6 @@ class TestViewController: BaseViewController {
3131

3232
}
3333

34-
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
35-
36-
37-
38-
let dict: [String: Any] = [
39-
"data": NSNull(),
40-
"name": "操作成功",
4134

42-
]
43-
44-
guard let model = Model.deserialize(from: dict) else { return }
45-
print(model)
46-
}
47-
48-
struct Model: SmartCodable {
49-
var name: String = ""
50-
51-
@SmartAny
52-
var data: Any?
53-
54-
}
5535
}
5636

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let package = Package(
1818
],
1919
dependencies: [
2020
// Depend on the latest Swift 5.9 SwiftSyntax
21-
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease")
21+
.package(url: "https://github.com/swiftlang/swift-syntax", "600.0.0"..<"700.0.0")
2222
],
2323
targets: [
2424
// Targets are the basic building blocks of a package, defining a module or a test suite.

0 commit comments

Comments
 (0)