Skip to content

Commit 734b967

Browse files
Add support for Swift 5.3
1 parent 44f25e9 commit 734b967

File tree

9 files changed

+379
-54
lines changed

9 files changed

+379
-54
lines changed

.gitignore

+123-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,124 @@
1+
### https://raw.github.com/github/gitignore/218a941be92679ce67d0484547e3e142b2f5f6f0/Global/macOS.gitignore
2+
3+
# General
14
.DS_Store
2-
/.build
3-
/Packages
4-
/*.xcodeproj
5+
.AppleDouble
6+
.LSOverride
7+
8+
# Icon must end with two \r
9+
Icon
10+
11+
# Thumbnails
12+
._*
13+
14+
# Files that might appear in the root of a volume
15+
.DocumentRevisions-V100
16+
.fseventsd
17+
.Spotlight-V100
18+
.TemporaryItems
19+
.Trashes
20+
.VolumeIcon.icns
21+
.com.apple.timemachine.donotpresent
22+
23+
# Directories potentially created on remote AFP share
24+
.AppleDB
25+
.AppleDesktop
26+
Network Trash Folder
27+
Temporary Items
28+
.apdisk
29+
30+
31+
### https://raw.github.com/github/gitignore/218a941be92679ce67d0484547e3e142b2f5f6f0/Swift.gitignore
32+
33+
# Xcode
34+
#
35+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
36+
37+
## User settings
38+
xcuserdata/
39+
40+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
41+
*.xcscmblueprint
42+
*.xccheckout
43+
44+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
45+
build/
46+
DerivedData/
47+
*.moved-aside
48+
*.pbxuser
49+
!default.pbxuser
50+
*.mode1v3
51+
!default.mode1v3
52+
*.mode2v3
53+
!default.mode2v3
54+
*.perspectivev3
55+
!default.perspectivev3
56+
57+
## Obj-C/Swift specific
58+
*.hmap
59+
60+
## App packaging
61+
*.ipa
62+
*.dSYM.zip
63+
*.dSYM
64+
65+
## Playgrounds
66+
timeline.xctimeline
67+
playground.xcworkspace
68+
69+
# Swift Package Manager
70+
#
71+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
72+
# Packages/
73+
# Package.pins
74+
# Package.resolved
75+
# *.xcodeproj
76+
#
77+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
78+
# hence it is not needed unless you have added a package configuration file to your project
79+
# .swiftpm
80+
81+
.build/
82+
83+
# CocoaPods
84+
#
85+
# We recommend against adding the Pods directory to your .gitignore. However
86+
# you should judge for yourself, the pros and cons are mentioned at:
87+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
88+
#
89+
# Pods/
90+
#
91+
# Add this line if you want to avoid checking in source code from the Xcode workspace
92+
# *.xcworkspace
93+
94+
# Carthage
95+
#
96+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
97+
# Carthage/Checkouts
98+
99+
Carthage/Build/
100+
101+
# Accio dependency management
102+
Dependencies/
103+
.accio/
104+
105+
# fastlane
106+
#
107+
# It is recommended to not store the screenshots in the git repo.
108+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
109+
# For more information about the recommended setup visit:
110+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
111+
112+
fastlane/report.xml
113+
fastlane/Preview.html
114+
fastlane/screenshots/**/*.png
115+
fastlane/test_output
116+
117+
# Code Injection
118+
#
119+
# After new code Injection tools there's a generated folder /iOSInjectionProject
120+
# https://github.com/johnno1962/injectionforxcode
121+
122+
iOSInjectionProject/
123+
124+

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1200"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "swift-ast-explorer"
18+
BuildableName = "swift-ast-explorer"
19+
BlueprintName = "swift-ast-explorer"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "swift-ast-explorerTests"
32+
BuildableName = "swift-ast-explorerTests"
33+
BlueprintName = "swift-ast-explorerTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "swift-ast-explorerTests"
50+
BuildableName = "swift-ast-explorerTests"
51+
BlueprintName = "swift-ast-explorerTests"
52+
ReferencedContainer = "container:">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
<BuildableProductRunnable
68+
runnableDebuggingMode = "0">
69+
<BuildableReference
70+
BuildableIdentifier = "primary"
71+
BlueprintIdentifier = "swift-ast-explorer"
72+
BuildableName = "swift-ast-explorer"
73+
BlueprintName = "swift-ast-explorer"
74+
ReferencedContainer = "container:">
75+
</BuildableReference>
76+
</BuildableProductRunnable>
77+
<CommandLineArguments>
78+
<CommandLineArgument
79+
argument = "/Users/katsumi.kishikawa/Desktop/test.swift"
80+
isEnabled = "YES">
81+
</CommandLineArgument>
82+
</CommandLineArguments>
83+
</LaunchAction>
84+
<ProfileAction
85+
buildConfiguration = "Release"
86+
shouldUseLaunchSchemeArgsEnv = "YES"
87+
savedToolIdentifier = ""
88+
useCustomWorkingDirectory = "NO"
89+
debugDocumentVersioning = "YES">
90+
<BuildableProductRunnable
91+
runnableDebuggingMode = "0">
92+
<BuildableReference
93+
BuildableIdentifier = "primary"
94+
BlueprintIdentifier = "swift-ast-explorer"
95+
BuildableName = "swift-ast-explorer"
96+
BlueprintName = "swift-ast-explorer"
97+
ReferencedContainer = "container:">
98+
</BuildableReference>
99+
</BuildableProductRunnable>
100+
</ProfileAction>
101+
<AnalyzeAction
102+
buildConfiguration = "Debug">
103+
</AnalyzeAction>
104+
<ArchiveAction
105+
buildConfiguration = "Release"
106+
revealArchiveInOrganizer = "YES">
107+
</ArchiveAction>
108+
</Scheme>

Package.resolved

+15-6
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,30 @@
22
"object": {
33
"pins": [
44
{
5-
"package": "SwiftPM",
6-
"repositoryURL": "https://github.com/apple/swift-package-manager.git",
5+
"package": "swift-argument-parser",
6+
"repositoryURL": "https://github.com/apple/swift-argument-parser",
77
"state": {
88
"branch": null,
9-
"revision": "235aacc514cb81a6881364b0fedcb3dd083228f3",
10-
"version": "0.3.0"
9+
"revision": "92646c0cdbaca076c8d3d0207891785b3379cbff",
10+
"version": "0.3.1"
1111
}
1212
},
1313
{
1414
"package": "SwiftSyntax",
1515
"repositoryURL": "https://github.com/apple/swift-syntax.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "3e3eb191fcdbecc6031522660c4ed6ce25282c25",
19-
"version": "0.50100.0"
18+
"revision": "844574d683f53d0737a9c6d706c3ef31ed2955eb",
19+
"version": "0.50300.0"
20+
}
21+
},
22+
{
23+
"package": "swift-tools-support-core",
24+
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
25+
"state": {
26+
"branch": null,
27+
"revision": "f39fc6c12266697b1585589090f0004903974685",
28+
"version": "0.1.10"
2029
}
2130
}
2231
]

Package.swift

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
// swift-tools-version:4.2
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
3-
1+
// swift-tools-version:5.3
42
import PackageDescription
53

64
let package = Package(
75
name: "swift-ast-explorer",
86
dependencies: [
9-
.package(url: "https://github.com/apple/swift-package-manager.git", from: "0.3.0"),
10-
.package(url: "https://github.com/apple/swift-syntax.git", .exact("0.50100.0")),
7+
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", .exact("0.50300.0")),
8+
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.1.10"),
9+
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.3.0"),
1110
],
1211
targets: [
13-
.target(name: "swift-ast-explorer", dependencies: ["Utility", "SwiftSyntax"]),
12+
.target(
13+
name: "swift-ast-explorer",
14+
dependencies: [
15+
"SwiftSyntax",
16+
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
17+
.product(name: "ArgumentParser", package: "swift-argument-parser"),
18+
]
19+
),
20+
.testTarget(
21+
name: "swift-ast-explorerTests",
22+
dependencies: ["swift-ast-explorer"]
23+
),
1424
]
1525
)

0 commit comments

Comments
 (0)