3.6.0
Breaking
- Updated to Braze iOS SDK 3.31.0.
Added
- Adds initial support for Swift Package Manager.
- Two new packages were added:
Full-SDK
, which contains the full SDK (including UI elements) and corresponds to theFull-SDK
pod.Core
, which contains the core Braze functionality and corresponds to theCore
pod.
- Note that tvOS support is not available via Swift Package Manager for this release.
- To add the package to your project follow these steps:
- Select
File > Swift Packages > Add Package Dependency
.- In the search bar, enter https://github.com/Appboy/segment-ios.
- Select
Full-SDK
orCore
, depending on your use case.
- Select
- In your app's target, under
Build Settings > Other Linker Flags
, add the-ObjC
linker flag. - In the Xcode menu, click
Product > Scheme > Edit Scheme...
- Click the expand
▶️ next toBuild
and selectPost-actions
. Press+
and selectNew Run Script Action
. - In the dropdown next to
Provide build settings from
, select your app's target. - Copy this script into the open field:
bash "$BUILT_PRODUCTS_DIR/Appboy_iOS_SDK_AppboyKit.bundle/Appboy.bundle/appboy-spm-cleanup.sh"
- In the search bar, enter https://github.com/Appboy/segment-ios.
- Note that when importing the
Full-SDK
, you need to use an underscore (import Full_SDK
).
- Select
- Two new packages were added: