Skip to content

Commit

Permalink
Adds fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Aug 30, 2023
1 parent 9ac7549 commit be92f16
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Tests/Fixtures/SPM/FooFeature/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "FooFeature",
products: [
.library(name: "FooDomain", targets: [
"FooDomain"
]),
.library(name: "FooUI", targets: [
"FooUI"
])
],
targets: [
.target(name: "FooDomain"),
.target(name: "FooUI")
]
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public struct FooDomain {}
1 change: 1 addition & 0 deletions Tests/Fixtures/SPM/FooFeature/Sources/FooUI/FooUI.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public struct FooUI {}
10 changes: 10 additions & 0 deletions Tests/Fixtures/SPM/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ packages:
XcodeGen:
path: ../../.. #XcodeGen itself
group: SPM
FooFeature:
path: FooFeature
targets:
App:
type: application
Expand All @@ -32,6 +34,10 @@ targets:
embed: true
- target: StaticLibrary
- package: XcodeGen
- package: FooFeature
products:
- FooDomain
- FooUI
Tests:
type: bundle.unit-test
platform: iOS
Expand All @@ -47,3 +53,7 @@ targets:
- package: SwiftRoaring
product: SwiftRoaringDynamic
- package: XcodeGen
- package: FooFeature
products:
- FooDomain
- FooUI

0 comments on commit be92f16

Please sign in to comment.