Skip to content

Commit

Permalink
🌲 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Oct 21, 2022
1 parent f5b8bc4 commit 80394b4
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 17 deletions.
23 changes: 9 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,49 +1,44 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SerialDSL",
name: "Grain",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "SerialDSL",
name: "GrainDescriptor",
type: .dynamic,
targets: ["SerialDSL"]
targets: ["GrainDescriptor"]
),
.executable(name: "Serial", targets: ["Serial", "SerialDSL"])
.executable(name: "grain", targets: ["Grain", "GrainDescriptor"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.0"),
// .package(url: "https://github.com/apple/swift-package-manager", branch: "main"),
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.2.7"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "SerialDSL",
name: "GrainDescriptor",
dependencies: [],
swiftSettings: [
.unsafeFlags(["-enable-library-evolution"])
]
),
.executableTarget(
name: "Serial",
name: "Grain",
dependencies: [
"SerialDSL",
"GrainDescriptor",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SwiftToolsSupport", package: "swift-tools-support-core"),
]
),
.testTarget(
name: "SerialDSLTests",
dependencies: ["SerialDSL"]
name: "GrainDescriptorTests",
dependencies: ["GrainDescriptor"]
),
]
)
2 changes: 1 addition & 1 deletion Sources/Fixture.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SerialDSL
import GrainDescriptor
import Foundation

struct Record: SerialView {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Serial/CLI.swift → Sources/Grain/CLI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
import TSCBasic
import TSCUtility

let RUNTIME_NAME = "SerialDSL"
let RUNTIME_NAME = "GrainDescriptor"

enum Log {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XCTest

@testable import SerialDSL
@testable import GrainDescriptor

final class JSONDSLTests: XCTestCase {

Expand Down

0 comments on commit 80394b4

Please sign in to comment.