2 min read
Dependencies
Last Updated - Platform 20.0 - SDK 15.0The PoqSDK is a package that consists of a single core framework and a collection of feature frameworks. See features and integrations for available frameworks.
Integrations are separate packages, which consist of a single framework, that depend on the PoqSDK and the wrapped 3rd party SDK.
Add a package to your app
Before you begin make sure you have the following information. This information is specified as part of the integration set up guides that link here.
- The package name
- The package URL
- The package version (or leave as default)
- The framework name(s)
- Using XcodeGen and PoqTooling
- Using Swift Package Manager
- Open your
Project.yml
. - Add the package to the
packages
section.
packages: Poq{Package}: # Replace with the correct package name; e.g 'PoqSDK'. url: https://github.com/poqcommerce/Poq.iOS.{sdk}.git from: 0.0.0 # Replace with the desired version; e.g. '20.0.0'.
- Add the framework(s) to your app's
templateTarget
(ortarget
) section'sdependencies
.
- dependencies: - package: Poq{Package} product: Poq{Framework}
- Regenerate your project and check that the framework is linked to your target.
You have added the package to your app. Return to the SDK or integration set up page and follow the remaining steps to complete set up.
Add a framework to your app
Before you begin, make sure you have completed the PoqSDK installation steps and that you have the following information. This information is specified as part of the feature set up guides that link here.
- The package name (usually
PoqSDK
) - The framework name(s)
- Using XcodeGen and PoqTooling
- Using Swift Package Manager
- Open your
Project.yml
. - Add the desired framework(s) to your app's
templateTarget
(ortarget
) section'sdependencies
.
- dependencies: - package: PoqSDK product: Poq{Framework}
- Regenerate your project and check that the framework is linked to your target.
You have added the framework to your app. Return to the framework specific set up page and follow the remaining steps to complete set up.
Framework customisation
Builders are the main setup and customisation point of most features. Custom states can be specified using the builder's generic parameter. Custom view controllers can be returned from a build
function by inferring the class.
Containers can be used to customise services, mappers, views and more by modifying your AppModule
to inject custom implementations into Container.shared
.
Next steps
- Check out available features.
- Check out additional integrations.