-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for testDocCPluginForBinaryDependency
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// swift-tools-version: 6.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "DemoKit", | ||
products: [ | ||
.library(name: "DemoKit", targets: ["DemoKit"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"), | ||
], | ||
targets: [ | ||
.binaryTarget( | ||
name: "MMKV", | ||
url: "https://github.com/Kyle-Ye/MMKV/releases/download/v1.3.5-binary/MMKV.xcframework.zip", | ||
checksum: "181709ac82514e7f243b338e2ac221c203741837e7f51e1922582d3f132d5b78" | ||
), | ||
.target( | ||
name: "DemoKit", | ||
dependencies: ["MMKV"] | ||
), | ||
] | ||
) |
8 changes: 8 additions & 0 deletions
8
Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import MMKV | ||
|
||
public struct Demo { | ||
public static func greeting() { | ||
let _ = MMKV() | ||
print("Hello") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters