Skip to content

Commit 1a7a861

Browse files
committed
wip
1 parent 6d8747b commit 1a7a861

File tree

70 files changed

+3525
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3525
-10
lines changed

Package.swift

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ let package = Package(
1616
],
1717
targets: [
1818
.target(
19-
name: "IssueReporting",
20-
dependencies: ["IssueReportingTestSupport"]
21-
),
22-
.target(
23-
name: "IssueReportingTestSupport"
19+
name: "IssueReporting"
2420
),
2521
.testTarget(
2622
name: "IssueReportingTests",
@@ -37,6 +33,37 @@ let package = Package(
3733
]
3834
)
3935

36+
let testSupportVersion: Version = "0.1.0"
37+
#if os(macOS)
38+
package.targets.append(
39+
.binaryTarget(
40+
name: "IssueReportingTestSupport",
41+
// url: "https://github.com/pointfreeco/swift-issue-reporting-support/release/\(testSupportVersion)/TODO",
42+
// checksum: "TODO"
43+
path: "Sources/IssueReportingTestSupport.xcframework"
44+
)
45+
)
46+
#else
47+
// package.dependencies.append(
48+
// .package(
49+
// url: "https://github.com/pointfreeco/swift-issue-reporting-support",
50+
// from: testSupportVersion
51+
// )
52+
// )
53+
#endif
54+
55+
for target in package.targets {
56+
if target.name == "IssueReporting" {
57+
// #if os(macOS)
58+
target.dependencies.append("IssueReportingTestSupport")
59+
// #else
60+
// target.dependencies.append(
61+
// .product(name: "IssueReportingTestSupport", package: "swift-issue-reporting-support")
62+
// )
63+
// #endif
64+
}
65+
}
66+
4067
#if !os(Windows)
4168
// Add the documentation compiler plugin if possible
4269
package.dependencies.append(

[email protected]

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ let package = Package(
1616
],
1717
targets: [
1818
.target(
19-
name: "IssueReporting",
20-
dependencies: ["IssueReportingTestSupport"]
21-
),
22-
.target(
23-
name: "IssueReportingTestSupport"
19+
name: "IssueReporting"
2420
),
2521
.testTarget(
2622
name: "IssueReportingTests",
@@ -38,6 +34,37 @@ let package = Package(
3834
swiftLanguageVersions: [.v6]
3935
)
4036

37+
let testSupportVersion: Version = "0.1.0"
38+
#if os(macOS)
39+
package.targets.append(
40+
.binaryTarget(
41+
name: "IssueReportingTestSupport",
42+
// url: "https://github.com/pointfreeco/swift-issue-reporting-support/release/\(testSupportVersion)/TODO",
43+
// checksum: "TODO"
44+
path: "Sources/IssueReportingTestSupport.xcframework"
45+
)
46+
)
47+
#else
48+
// package.dependencies.append(
49+
// .package(
50+
// url: "https://github.com/pointfreeco/swift-issue-reporting-support",
51+
// from: testSupportVersion
52+
// )
53+
// )
54+
#endif
55+
56+
for target in package.targets {
57+
if target.name == "IssueReporting" {
58+
// #if os(macOS)
59+
target.dependencies.append("IssueReportingTestSupport")
60+
// #else
61+
// target.dependencies.append(
62+
// .product(name: "IssueReportingTestSupport", package: "swift-issue-reporting-support")
63+
// )
64+
// #endif
65+
}
66+
}
67+
4168
#if !os(Windows)
4269
// Add the documentation compiler plugin if possible
4370
package.dependencies.append(
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>BinaryPath</key>
9+
<string>IssueReportingTestSupport.framework/Versions/A/IssueReportingTestSupport</string>
10+
<key>LibraryIdentifier</key>
11+
<string>macos-arm64_x86_64</string>
12+
<key>LibraryPath</key>
13+
<string>IssueReportingTestSupport.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>macos</string>
21+
</dict>
22+
<dict>
23+
<key>BinaryPath</key>
24+
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
25+
<key>LibraryIdentifier</key>
26+
<string>ios-arm64</string>
27+
<key>LibraryPath</key>
28+
<string>IssueReportingTestSupport.framework</string>
29+
<key>SupportedArchitectures</key>
30+
<array>
31+
<string>arm64</string>
32+
</array>
33+
<key>SupportedPlatform</key>
34+
<string>ios</string>
35+
</dict>
36+
<dict>
37+
<key>BinaryPath</key>
38+
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
39+
<key>LibraryIdentifier</key>
40+
<string>tvos-arm64</string>
41+
<key>LibraryPath</key>
42+
<string>IssueReportingTestSupport.framework</string>
43+
<key>SupportedArchitectures</key>
44+
<array>
45+
<string>arm64</string>
46+
</array>
47+
<key>SupportedPlatform</key>
48+
<string>tvos</string>
49+
</dict>
50+
<dict>
51+
<key>BinaryPath</key>
52+
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
53+
<key>LibraryIdentifier</key>
54+
<string>watchos-arm64_arm64_32</string>
55+
<key>LibraryPath</key>
56+
<string>IssueReportingTestSupport.framework</string>
57+
<key>SupportedArchitectures</key>
58+
<array>
59+
<string>arm64</string>
60+
<string>arm64_32</string>
61+
</array>
62+
<key>SupportedPlatform</key>
63+
<string>watchos</string>
64+
</dict>
65+
<dict>
66+
<key>BinaryPath</key>
67+
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
68+
<key>LibraryIdentifier</key>
69+
<string>ios-arm64_x86_64-simulator</string>
70+
<key>LibraryPath</key>
71+
<string>IssueReportingTestSupport.framework</string>
72+
<key>SupportedArchitectures</key>
73+
<array>
74+
<string>arm64</string>
75+
<string>x86_64</string>
76+
</array>
77+
<key>SupportedPlatform</key>
78+
<string>ios</string>
79+
<key>SupportedPlatformVariant</key>
80+
<string>simulator</string>
81+
</dict>
82+
<dict>
83+
<key>BinaryPath</key>
84+
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
85+
<key>LibraryIdentifier</key>
86+
<string>xros-arm64</string>
87+
<key>LibraryPath</key>
88+
<string>IssueReportingTestSupport.framework</string>
89+
<key>SupportedArchitectures</key>
90+
<array>
91+
<string>arm64</string>
92+
</array>
93+
<key>SupportedPlatform</key>
94+
<string>xros</string>
95+
</dict>
96+
</array>
97+
<key>CFBundlePackageType</key>
98+
<string>XFWK</string>
99+
<key>XCFrameworkFormatVersion</key>
100+
<string>1.0</string>
101+
</dict>
102+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// IssueReportingTestSupport.h
3+
// IssueReportingTestSupport
4+
//
5+
// Created by Stephen Celis on 7/11/24.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
//! Project version number for IssueReportingTestSupport.
11+
FOUNDATION_EXPORT double IssueReportingTestSupportVersionNumber;
12+
13+
//! Project version string for IssueReportingTestSupport.
14+
FOUNDATION_EXPORT const unsigned char IssueReportingTestSupportVersionString[];
15+
16+
// In this header, you should import all the public headers of your framework using statements like #import <IssueReportingTestSupport/PublicHeader.h>
17+
18+

0 commit comments

Comments
 (0)