Skip to main content
Notice removed Draw attention by Fourth
Bounty Ended with Greg Burghardt's answer chosen by Fourth
Disambugate SPM
Source Link
Basilevs
  • 4.5k
  • 1
  • 20
  • 33

I'm developing a Swift Package distributed via SPMSwift Package Manager (SPM). I have other dependencies (Swift packages) that my package depends on. Is it possible to expose types (classes, structs, etc.) defined in the dependencies to the client app? So given;

ClientApp -> MyPackage -> DependencyA (contains Person class)

Is there a way to make ClientApp see the Person class without it also importing DependencyA?

I'm developing a Swift Package distributed via SPM. I have other dependencies (Swift packages) that my package depends on. Is it possible to expose types (classes, structs, etc.) defined in the dependencies to the client app? So given;

ClientApp -> MyPackage -> DependencyA (contains Person class)

Is there a way to make ClientApp see the Person class without it also importing DependencyA?

I'm developing a Swift Package distributed via Swift Package Manager (SPM). I have other dependencies (Swift packages) that my package depends on. Is it possible to expose types (classes, structs, etc.) defined in the dependencies to the client app? So given;

ClientApp -> MyPackage -> DependencyA (contains Person class)

Is there a way to make ClientApp see the Person class without it also importing DependencyA?

Notice added Draw attention by Fourth
Bounty Started worth 50 reputation by Fourth
Source Link

SPM: Expose transitive dependency types

I'm developing a Swift Package distributed via SPM. I have other dependencies (Swift packages) that my package depends on. Is it possible to expose types (classes, structs, etc.) defined in the dependencies to the client app? So given;

ClientApp -> MyPackage -> DependencyA (contains Person class)

Is there a way to make ClientApp see the Person class without it also importing DependencyA?