Skip to content

Commit

Permalink
Add TOMLKit
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Sep 7, 2023
1 parent 0444d0a commit 76f4e41
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
29 changes: 29 additions & 0 deletions AeroSpace.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
4005ECE237BD9230F74CA917 /* TreeNodeEx.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8C39B0C4E4888832129C4C7 /* TreeNodeEx.swift */; };
518B9E5AC031C24C7C84CD70 /* MacWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 243F29F496F7463F3482DD10 /* MacWindow.swift */; };
6317AB471F4C4F5D66A25784 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EEDBFFCA7A77D96B18FB0732 /* Assets.xcassets */; };
64A058E536F1EEF7F01043AF /* TOMLKit in Frameworks */ = {isa = PBXBuildFile; productRef = EC8E4F2CA4FF8884F9F59975 /* TOMLKit */; };
66E6CDA75DDD5E4B9647EDE2 /* AeroSpaceApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E81623E8954701269A22322 /* AeroSpaceApp.swift */; };
6820E6846AE51B6988B6F673 /* utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD02433B4415EEB163074CE5 /* utils.swift */; };
7035674CE8D4D0D5D43FAD95 /* Toml.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDB0A5C2842534F121A0C430 /* Toml.swift */; };
783B0B965BA45D7A2943F7BF /* TilingContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E05FB0C7158C8B6DECBD603 /* TilingContainer.swift */; };
78EE0CEF814ABDBA67941B84 /* Rect.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28B788A95DD3C267878E05B5 /* Rect.swift */; };
7FE92DDAC2F094C83A177914 /* MacApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6296D5F9AFE5F266EE4B1D0 /* MacApp.swift */; };
Expand Down Expand Up @@ -60,6 +62,7 @@
F6507EBAA795220FD0C05384 /* Monitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Monitor.swift; sourceTree = "<group>"; };
F8C39B0C4E4888832129C4C7 /* TreeNodeEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TreeNodeEx.swift; sourceTree = "<group>"; };
F9CAC977020A08D0227FAFB2 /* Bundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bundle.swift; sourceTree = "<group>"; };
FDB0A5C2842534F121A0C430 /* Toml.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Toml.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -68,6 +71,7 @@
buildActionMask = 2147483647;
files = (
852F88894A3B9FC385563665 /* HotKey in Frameworks */,
64A058E536F1EEF7F01043AF /* TOMLKit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -101,6 +105,14 @@
name = Products;
sourceTree = "<group>";
};
80F16ED76205CA1AC4E0BF3E /* settings */ = {
isa = PBXGroup;
children = (
FDB0A5C2842534F121A0C430 /* Toml.swift */,
);
path = settings;
sourceTree = "<group>";
};
8338180CE208CBDCD6D8E911 /* src */ = {
isa = PBXGroup;
children = (
Expand All @@ -115,6 +127,7 @@
24F99E8C4FD17A1D939C41F1 /* ViewModel.swift */,
89B36C927EF9F6CB9CE830C7 /* axWrappers */,
38E5F06C862662755065FF1D /* model */,
80F16ED76205CA1AC4E0BF3E /* settings */,
C136937AA077E63558E9707C /* util */,
);
path = src;
Expand Down Expand Up @@ -164,6 +177,7 @@
name = AeroSpace;
packageProductDependencies = (
42BC1E757EF69233C2262FF4 /* HotKey */,
EC8E4F2CA4FF8884F9F59975 /* TOMLKit */,
);
productName = AeroSpace;
productReference = 09685297933511208058F7CF /* AeroSpace.app */;
Expand Down Expand Up @@ -194,6 +208,7 @@
mainGroup = 393942C56466FDBBE35F9EC0;
packageReferences = (
E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */,
D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */,
);
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -233,6 +248,7 @@
78EE0CEF814ABDBA67941B84 /* Rect.swift in Sources */,
AE76A183D0454E4C8ADCE380 /* SequenceEx.swift in Sources */,
783B0B965BA45D7A2943F7BF /* TilingContainer.swift in Sources */,
7035674CE8D4D0D5D43FAD95 /* Toml.swift in Sources */,
B1E2002BB8F70F2555AAA82D /* TreeNode.swift in Sources */,
4005ECE237BD9230F74CA917 /* TreeNodeEx.swift in Sources */,
07FF7938628995F68DFEB524 /* ViewModel.swift in Sources */,
Expand Down Expand Up @@ -439,6 +455,14 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/LebJe/TOMLKit";
requirement = {
kind = exactVersion;
version = 0.5.5;
};
};
E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/soffes/HotKey";
Expand All @@ -455,6 +479,11 @@
package = E28C4FCC0A02BC0BF9E71D67 /* XCRemoteSwiftPackageReference "HotKey" */;
productName = HotKey;
};
EC8E4F2CA4FF8884F9F59975 /* TOMLKit */ = {
isa = XCSwiftPackageProductDependency;
package = D95CBB0F220F4BED0648272B /* XCRemoteSwiftPackageReference "TOMLKit" */;
productName = TOMLKit;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 0B585B3093DA0FC12E7983E2 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"revision" : "c13662730cb5bc28de4a799854bbb018a90649bf",
"version" : "0.1.3"
}
},
{
"identity" : "tomlkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/LebJe/TOMLKit",
"state" : {
"revision" : "404c4dd011743461bff12d00a5118d0ed59d630c",
"version" : "0.5.5"
}
}
],
"version" : 2
Expand Down
4 changes: 4 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ packages:
HotKey:
url: https://github.com/soffes/HotKey
exactVersion: 0.1.3
TOMLKit:
url: https://github.com/LebJe/TOMLKit
exactVersion: 0.5.5
targets:
AeroSpace:
type: application
Expand All @@ -13,6 +16,7 @@ targets:
sources: [src]
dependencies:
- package: HotKey
- package: TOMLKit
settings:
base:
SWIFT_VERSION: 5.8
Expand Down
8 changes: 8 additions & 0 deletions src/settings/Toml.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Foundation
import TOMLKit

func foo(table: TOMLTable) {
table["foo"]?.type
//TOMLTable()
//TOMLDecoder().dec
}

0 comments on commit 76f4e41

Please sign in to comment.