2 min read

Dependencies

Last Updated - Platform 20.0.0 - SDK 15.0.0

The 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)
  1. Open your workspace or project with Xcode.
  2. Go to File > Swift Packages > Add Package Dependency....
  3. Set the URL to the package repository (it must include .git).
https://github.com/poqcommerce/Poq.iOS.{Package}.git
  1. Set the version as desired or leave as is.
  2. Select the desired Poq{Framework} framework(s).
  3. Wait for Xcode to checkout your package dependencies.

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)
  1. Open your workspace or project with Xcode.
  2. Go to your target settings in Project (project navigator) > {AppName} (list of targets) > General (tab).
  3. Scroll to the Frameworks, Libraries and Embedded Content section.
  4. Press the + add button.
  5. Scroll through the list and add the desired Poq{Framework} framework(s).
  6. Do the same for your other app targets (if you have multiple).

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