Adding Apollo iOS SDK v1.0 as a dependency to a networking swift package module

Current project is setup like this:

App
::Modules
:::FeatureModule
::::NetworkKit (dependency of FeatureModule)
:::::Apollo iOS SDK (dependency of NetworkKit)

Has this been done before? Seems that most add this to the App target and it appears that all the documentation assumes that that is always the case.

My goal is to have this networking layer to be reusable across other apps that use the same GraphQL endpoints.

Thanks

Hi @thisisalex - there are a few different types of module configuration that 1.0 can support. I suggest reading the documentation on Project Configuration to become familiar with them. I don’t see any obvious reason your setup could not work.

1 Like