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