Skip to content

[see some ci results] - #1

Open
diederich wants to merge 23 commits into
mainfrom
bugfix/wasm-build
Open

diederich wants to merge 23 commits into
mainfrom
bugfix/wasm-build

Conversation

@diederich

Copy link
Copy Markdown

No description provided.

mbrandonw and others added 7 commits January 11, 2026 18:07
Currently we detect this deep in `DependencyValues`, but we can localize
it in `prepareDependencies` instead and avoid potential preview crashes.
…reeco#413)

* Support @dependency property wrapper cast to a concrete type.

* better fatal errors

* wip

* clean up

* wip

---------

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* General cleanup: Dependency, CurrentDependency

* SwiftUI Environment compatibility

* wip
diederich and others added 16 commits March 10, 2026 22:14
```
error: dynamic libraries are unsupported for target 'wasm32-unknown-wasip1'
[3/15] Linking libIssueReportingTestSupport.wasm
```
so it can be disabled on non-supported platforms, e.g. currently Android
we're importing the Shim now, which should be available in case
`#if Combine` resolved to true.
It's kind of sad we're leaking
…lerPlugin` not being picked up

I'm not clear why we were seeing:
```/__w/swift-dependencies/swift-dependencies/Tests/DependenciesMacrosPluginTests/DependencyClientMacroTests.swift:1:8: error: missing required module 'SwiftCompilerPlugin'
   1 | import DependenciesMacrosPlugin
     |        `- error: missing required module 'SwiftCompilerPlugin'
   2 | import MacroTesting
   3 | import XCTest
[942/955] Compiling DependenciesMacrosPluginTests BaseTestCase.swift
/__w/swift-dependencies/swift-dependencies/Tests/DependenciesMacrosPluginTests/DependencyClientMacroTests.swift:1:8: error: missing required module 'SwiftCompilerPlugin'
   1 | import DependenciesMacrosPlugin
     |        `- error: missing required module 'SwiftCompilerPlugin'
   2 | import MacroTesting
   3 | import XCTest
[943/955] Compiling DependenciesMacrosPluginTests DependencyEndpointMacroTests.swift
/__w/swift-dependencies/swift-dependencies/Tests/DependenciesMacrosPluginTests/DependencyClientMacroTests.swift:1:8: error: missing required module 'SwiftCompilerPlugin'
   1 | import DependenciesMacrosPlugin
     |        `- error: missing required module 'SwiftCompilerPlugin'
   2 | import MacroTesting
   3 | import XCTest

```

on https://github.com/untitled-in-brackets/swift-dependencies/actions/runs/22952803121/job/66621506036

but hoping being explicit fixes it (and we import, so should be fine?)
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
* feat: group built-in DependencyValues into traits

* Apply suggestion from @stephencelis

---------

Co-authored-by: Dan Thorpe <dan_thorpe@apple.com>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants