Skip to content

Commit 5d922a7

Browse files
committed
fix: name the package cobs_codec, not the repo slug
The _swift suffix is only the repo slug; the SPM package name is cobs_codec.
1 parent 9d4daf4 commit 5d922a7

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// swift-tools-version: 6.0
22
//
3-
// Package manifest for `cobs_codec_swift`, a pure-Swift COBS / COBS-R codec.
3+
// Package manifest for the `cobs_codec` package (repository `cobs_codec_swift`),
4+
// a pure-Swift COBS / COBS-R codec.
45
//
56
// The `CobsCodec` library target is Swift-standard-library-only (no Foundation,
67
// no Apple frameworks, no external dependencies) so it stays portable to Linux
@@ -9,7 +10,7 @@
910
import PackageDescription
1011

1112
let package = Package(
12-
name: "cobs_codec_swift",
13+
name: "cobs_codec",
1314
platforms: [
1415
.macOS(.v13),
1516
.iOS(.v16),

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ dependencies: [
2929
.package(url: "https://github.com/firechip/cobs_codec_swift.git", from: "1.0.0"),
3030
],
3131
targets: [
32-
.target(name: "YourTarget", dependencies: [
33-
.product(name: "CobsCodec", package: "cobs_codec_swift"),
34-
]),
32+
.target(name: "YourTarget", dependencies: ["CobsCodec"]),
3533
]
3634
```
3735

0 commit comments

Comments
 (0)