refactor(swift): rename ClawdisNodeKit to ClawdisKit
This commit is contained in:
@@ -15,4 +15,4 @@ open ClawdisNode.xcodeproj
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Shared packages
|
## Shared packages
|
||||||
- `../shared/ClawdisNodeKit` — shared types/constants used by iOS (and later macOS bridge + gateway routing).
|
- `../shared/ClawdisKit` — shared types/constants used by iOS (and later macOS bridge + gateway routing).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Network
|
import Network
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import WebKit
|
import WebKit
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct ScreenTab: View {
|
struct ScreenTab: View {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import WebKit
|
import WebKit
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ options:
|
|||||||
xcodeVersion: "16.0"
|
xcodeVersion: "16.0"
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
ClawdisNodeKit:
|
ClawdisKit:
|
||||||
path: ../shared/ClawdisNodeKit
|
path: ../shared/ClawdisKit
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
ClawdisNode:
|
ClawdisNode:
|
||||||
@@ -16,7 +16,7 @@ targets:
|
|||||||
sources:
|
sources:
|
||||||
- path: Sources
|
- path: Sources
|
||||||
dependencies:
|
dependencies:
|
||||||
- package: ClawdisNodeKit
|
- package: ClawdisKit
|
||||||
preBuildScripts:
|
preBuildScripts:
|
||||||
- name: SwiftFormat (lint)
|
- name: SwiftFormat (lint)
|
||||||
script: |
|
script: |
|
||||||
@@ -27,7 +27,7 @@ targets:
|
|||||||
fi
|
fi
|
||||||
swiftformat --lint --config "$SRCROOT/../../.swiftformat" \
|
swiftformat --lint --config "$SRCROOT/../../.swiftformat" \
|
||||||
"$SRCROOT/Sources" \
|
"$SRCROOT/Sources" \
|
||||||
"$SRCROOT/../shared/ClawdisNodeKit/Sources"
|
"$SRCROOT/../shared/ClawdisKit/Sources"
|
||||||
- name: SwiftLint
|
- name: SwiftLint
|
||||||
script: |
|
script: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ let package = Package(
|
|||||||
.package(url: "https://github.com/orchetect/MenuBarExtraAccess", exact: "1.2.2"),
|
.package(url: "https://github.com/orchetect/MenuBarExtraAccess", exact: "1.2.2"),
|
||||||
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.1.0"),
|
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.1.0"),
|
||||||
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.8.1"),
|
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.8.1"),
|
||||||
.package(path: "../shared/ClawdisNodeKit"),
|
.package(path: "../shared/ClawdisKit"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
@@ -38,7 +38,7 @@ let package = Package(
|
|||||||
dependencies: [
|
dependencies: [
|
||||||
"ClawdisIPC",
|
"ClawdisIPC",
|
||||||
"ClawdisProtocol",
|
"ClawdisProtocol",
|
||||||
.product(name: "ClawdisNodeKit", package: "ClawdisNodeKit"),
|
.product(name: "ClawdisKit", package: "ClawdisKit"),
|
||||||
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
|
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
|
||||||
.product(name: "Subprocess", package: "swift-subprocess"),
|
.product(name: "Subprocess", package: "swift-subprocess"),
|
||||||
.product(name: "Sparkle", package: "Sparkle"),
|
.product(name: "Sparkle", package: "Sparkle"),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
import OSLog
|
import OSLog
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import AppKit
|
import AppKit
|
||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import Network
|
import Network
|
||||||
import OSLog
|
import OSLog
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import AppKit
|
import AppKit
|
||||||
import ClawdisNodeKit
|
import ClawdisKit
|
||||||
import Foundation
|
import Foundation
|
||||||
import OSLog
|
import OSLog
|
||||||
import Security
|
import Security
|
||||||
|
|||||||
@@ -3,20 +3,19 @@
|
|||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "ClawdisNodeKit",
|
name: "ClawdisKit",
|
||||||
platforms: [
|
platforms: [
|
||||||
.iOS(.v17),
|
.iOS(.v17),
|
||||||
.macOS(.v15),
|
.macOS(.v15),
|
||||||
],
|
],
|
||||||
products: [
|
products: [
|
||||||
.library(name: "ClawdisNodeKit", targets: ["ClawdisNodeKit"]),
|
.library(name: "ClawdisKit", targets: ["ClawdisKit"]),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "ClawdisNodeKit",
|
name: "ClawdisKit",
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
swiftSettings: [
|
swiftSettings: [
|
||||||
.enableUpcomingFeature("StrictConcurrency"),
|
.enableUpcomingFeature("StrictConcurrency"),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
||||||
Reference in New Issue
Block a user