Add the SDK to your project
Before you can integrate the AwesomeAds SDK, you need to add the SDK to your project.
Source code for releases can be found here.
Add the SDK using Swift Package Manager
AwesomeAds uses Swift Package Manager (SPM) to distribute the AwesomeAds (iOS) Publisher SDK.
Add the package dependency
- In Xcode, go to File → Add Package Dependencies…
- Enter the following package URL:
https://github.com/superawesome-org/sa-mobile-sdk-ios-spm - Set the version rule to Up to Next Major Version with a minimum of
10.0.0. - Click Add Package and select the
SuperAwesomelibrary to add to your target.
Import SDK
Import the main SDK header file:
import SuperAwesome
// As a header
#import "SuperAwesome.h"
// or as a framework
#import <SuperAwesome/SuperAwesome.h>
// or for the new module method:
@import SuperAwesome;