Skip to content

Commit 76f4e41

Browse files
committed
Add TOMLKit
1 parent 0444d0a commit 76f4e41

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

AeroSpace.xcodeproj/project.pbxproj

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
4005ECE237BD9230F74CA917 /* TreeNodeEx.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8C39B0C4E4888832129C4C7 /* TreeNodeEx.swift */; };
1616
518B9E5AC031C24C7C84CD70 /* MacWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 243F29F496F7463F3482DD10 /* MacWindow.swift */; };
1717
6317AB471F4C4F5D66A25784 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EEDBFFCA7A77D96B18FB0732 /* Assets.xcassets */; };
18+
64A058E536F1EEF7F01043AF /* TOMLKit in Frameworks */ = {isa = PBXBuildFile; productRef = EC8E4F2CA4FF8884F9F59975 /* TOMLKit */; };
1819
66E6CDA75DDD5E4B9647EDE2 /* AeroSpaceApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E81623E8954701269A22322 /* AeroSpaceApp.swift */; };
1920
6820E6846AE51B6988B6F673 /* utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02433B4415EEB163074CE5 /* utils.swift */; };
21+
7035674CE8D4D0D5D43FAD95 /* Toml.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDB0A5C2842534F121A0C430 /* Toml.swift */; };
2022
783B0B965BA45D7A2943F7BF /* TilingContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E05FB0C7158C8B6DECBD603 /* TilingContainer.swift */; };
2123
78EE0CEF814ABDBA67941B84 /* Rect.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B788A95DD3C267878E05B5 /* Rect.swift */; };
2224
7FE92DDAC2F094C83A177914 /* MacApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6296D5F9AFE5F266EE4B1D0 /* MacApp.swift */; };
@@ -60,6 +62,7 @@
6062
F6507EBAA795220FD0C05384 /* Monitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Monitor.swift; sourceTree = "<group>"; };
6163
F8C39B0C4E4888832129C4C7 /* TreeNodeEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TreeNodeEx.swift; sourceTree = "<group>"; };
6264
F9CAC977020A08D0227FAFB2 /* Bundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bundle.swift; sourceTree = "<group>"; };
65+
FDB0A5C2842534F121A0C430 /* Toml.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Toml.swift; sourceTree = "<group>"; };
6366
/* End PBXFileReference section */
6467

6568
/* Begin PBXFrameworksBuildPhase section */
@@ -68,6 +71,7 @@
6871
buildActionMask = 2147483647;
6972
files = (
7073
852F88894A3B9FC385563665 /* HotKey in Frameworks */,
74+
64A058E536F1EEF7F01043AF /* TOMLKit in Frameworks */,
7175
);
7276
runOnlyForDeploymentPostprocessing = 0;
7377
};
@@ -101,6 +105,14 @@
101105
name = Products;
102106
sourceTree = "<group>";
103107
};
108+
80F16ED76205CA1AC4E0BF3E /* settings */ = {
109+
isa = PBXGroup;
110+
children = (
111+
FDB0A5C2842534F121A0C430 /* Toml.swift */,
112+
);
113+
path = settings;
114+
sourceTree = "<group>";
115+
};
104116
8338180CE208CBDCD6D8E911 /* src */ = {
105117
isa = PBXGroup;
106118
children = (
@@ -115,6 +127,7 @@
115127
24F99E8C4FD17A1D939C41F1 /* ViewModel.swift */,
116128
89B36C927EF9F6CB9CE830C7 /* axWrappers */,
117129
38E5F06C862662755065FF1D /* model */,
130+
80F16ED76205CA1AC4E0BF3E /* settings */,
118131
C136937AA077E63558E9707C /* util */,
119132
);
120133
path = src;
@@ -164,6 +177,7 @@
164177
name = AeroSpace;
165178
packageProductDependencies = (
166179
42BC1E757EF69233C2262FF4 /* HotKey */,
180+
EC8E4F2CA4FF8884F9F59975 /* TOMLKit */,
167181
);
168182
productName = AeroSpace;
169183
productReference = 09685297933511208058F7CF /* AeroSpace.app */;
@@ -194,6 +208,7 @@
194208
mainGroup = 393942C56466FDBBE35F9EC0;
195209
packageReferences = (
196210
E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */,
211+
D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */,
197212
);
198213
projectDirPath = "";
199214
projectRoot = "";
@@ -233,6 +248,7 @@
233248
78EE0CEF814ABDBA67941B84 /* Rect.swift in Sources */,
234249
AE76A183D0454E4C8ADCE380 /* SequenceEx.swift in Sources */,
235250
783B0B965BA45D7A2943F7BF /* TilingContainer.swift in Sources */,
251+
7035674CE8D4D0D5D43FAD95 /* Toml.swift in Sources */,
236252
B1E2002BB8F70F2555AAA82D /* TreeNode.swift in Sources */,
237253
4005ECE237BD9230F74CA917 /* TreeNodeEx.swift in Sources */,
238254
07FF7938628995F68DFEB524 /* ViewModel.swift in Sources */,
@@ -439,6 +455,14 @@
439455
/* End XCConfigurationList section */
440456

441457
/* Begin XCRemoteSwiftPackageReference section */
458+
D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */ = {
459+
isa = XCRemoteSwiftPackageReference;
460+
repositoryURL = "https://github.com/LebJe/TOMLKit";
461+
requirement = {
462+
kind = exactVersion;
463+
version = 0.5.5;
464+
};
465+
};
442466
E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */ = {
443467
isa = XCRemoteSwiftPackageReference;
444468
repositoryURL = "https://github.com/soffes/HotKey";
@@ -455,6 +479,11 @@
455479
package = E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */;
456480
productName = HotKey;
457481
};
482+
EC8E4F2CA4FF8884F9F59975 /* TOMLKit */ = {
483+
isa = XCSwiftPackageProductDependency;
484+
package = D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */;
485+
productName = TOMLKit;
486+
};
458487
/* End XCSwiftPackageProductDependency section */
459488
};
460489
rootObject = 0B585B3093DA0FC12E7983E2 /* Project object */;

AeroSpace.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ packages:
55
HotKey:
66
url: https://github.com/soffes/HotKey
77
exactVersion: 0.1.3
8+
TOMLKit:
9+
url: https://github.com/LebJe/TOMLKit
10+
exactVersion: 0.5.5
811
targets:
912
AeroSpace:
1013
type: application
@@ -13,6 +16,7 @@ targets:
1316
sources: [src]
1417
dependencies:
1518
- package: HotKey
19+
- package: TOMLKit
1620
settings:
1721
base:
1822
SWIFT_VERSION: 5.8

src/settings/Toml.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Foundation
2+
import TOMLKit
3+
4+
func foo(table: TOMLTable) {
5+
table["foo"]?.type
6+
//TOMLTable()
7+
//TOMLDecoder().dec
8+
}

0 commit comments

Comments
 (0)