Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jul 11, 2024
1 parent 6d8747b commit 1a7a861
Show file tree
Hide file tree
Showing 70 changed files with 3,525 additions and 10 deletions.
37 changes: 32 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ let package = Package(
],
targets: [
.target(
name: "IssueReporting",
dependencies: ["IssueReportingTestSupport"]
),
.target(
name: "IssueReportingTestSupport"
name: "IssueReporting"
),
.testTarget(
name: "IssueReportingTests",
Expand All @@ -37,6 +33,37 @@ let package = Package(
]
)

let testSupportVersion: Version = "0.1.0"
#if os(macOS)
package.targets.append(
.binaryTarget(
name: "IssueReportingTestSupport",
// url: "https://github.com/pointfreeco/swift-issue-reporting-support/release/\(testSupportVersion)/TODO",
// checksum: "TODO"
path: "Sources/IssueReportingTestSupport.xcframework"
)
)
#else
// package.dependencies.append(
// .package(
// url: "https://github.com/pointfreeco/swift-issue-reporting-support",
// from: testSupportVersion
// )
// )
#endif

for target in package.targets {
if target.name == "IssueReporting" {
// #if os(macOS)
target.dependencies.append("IssueReportingTestSupport")
// #else
// target.dependencies.append(
// .product(name: "IssueReportingTestSupport", package: "swift-issue-reporting-support")
// )
// #endif
}
}

#if !os(Windows)
// Add the documentation compiler plugin if possible
package.dependencies.append(
Expand Down
37 changes: 32 additions & 5 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ let package = Package(
],
targets: [
.target(
name: "IssueReporting",
dependencies: ["IssueReportingTestSupport"]
),
.target(
name: "IssueReportingTestSupport"
name: "IssueReporting"
),
.testTarget(
name: "IssueReportingTests",
Expand All @@ -38,6 +34,37 @@ let package = Package(
swiftLanguageVersions: [.v6]
)

let testSupportVersion: Version = "0.1.0"
#if os(macOS)
package.targets.append(
.binaryTarget(
name: "IssueReportingTestSupport",
// url: "https://github.com/pointfreeco/swift-issue-reporting-support/release/\(testSupportVersion)/TODO",
// checksum: "TODO"
path: "Sources/IssueReportingTestSupport.xcframework"
)
)
#else
// package.dependencies.append(
// .package(
// url: "https://github.com/pointfreeco/swift-issue-reporting-support",
// from: testSupportVersion
// )
// )
#endif

for target in package.targets {
if target.name == "IssueReporting" {
// #if os(macOS)
target.dependencies.append("IssueReportingTestSupport")
// #else
// target.dependencies.append(
// .product(name: "IssueReportingTestSupport", package: "swift-issue-reporting-support")
// )
// #endif
}
}

#if !os(Windows)
// Add the documentation compiler plugin if possible
package.dependencies.append(
Expand Down
102 changes: 102 additions & 0 deletions Sources/IssueReportingTestSupport.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/Versions/A/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>tvos-arm64</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>watchos-arm64_arm64_32</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>arm64_32</string>
</array>
<key>SupportedPlatform</key>
<string>watchos</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>IssueReportingTestSupport.framework/IssueReportingTestSupport</string>
<key>LibraryIdentifier</key>
<string>xros-arm64</string>
<key>LibraryPath</key>
<string>IssueReportingTestSupport.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>xros</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// IssueReportingTestSupport.h
// IssueReportingTestSupport
//
// Created by Stephen Celis on 7/11/24.
//

#import <Foundation/Foundation.h>

//! Project version number for IssueReportingTestSupport.
FOUNDATION_EXPORT double IssueReportingTestSupportVersionNumber;

//! Project version string for IssueReportingTestSupport.
FOUNDATION_EXPORT const unsigned char IssueReportingTestSupportVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <IssueReportingTestSupport/PublicHeader.h>


Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 1a7a861

Please sign in to comment.