Skip to content

Rokt UX Helper for iOS

License

Notifications You must be signed in to change notification settings

ROKT/rokt-ux-helper-ios

Repository files navigation

Rokt UX Helper iOS

The RoktUXHelper enables partner applications to render tailored user experiences, improving the velocity of testing and relevancy for the customer. This library offers an easy way to perform rendering and provides event hooks for integration into backend systems.

Resident Experts

Environment Build
main Build status

Requirements

  • Download the latest Xcode. Project is configured to run on iOS 15.0 and above and compiled with the latest version of iOS.
  • clone the repository using git clone [email protected]:ROKT/rokt-ux-helper-ios.git

Installation

Swift Package Manager

Xcode

To integrate to your Xcode project, select File > Add Package Dependency and enter https://github.com/ROKT/rokt-ux-helper-ios. You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button, select Add Other, and choose Add Package Dependency.

Swift package

To integrate to your Swift package, add the following SPM dependency into your Package.swift file. This configuration ensures that your app will receive updates to the library up to, but not including, the next major release.

dependencies: [
    .package(url: "https://github.com/ROKT/rokt-ux-helper-ios.git", .upToNextMajor(from: "0.1.0"))
]

How to run unit tests locally?

Open the Package.swift file with Xcode and press command + U, or Product -> Test from the menu bar.

How to run tests on Buildkite?

Just push a change to any of the feature branches and tests will be run on Buildkite.

SDK Dependencies

There are 2 dependencies:

  1. DcuiSchema, for deserializing the experience response
  2. ViewInspector, for SwiftUI unit testing

Example App

An example app is available in this repository to demonstrate integration with RoktUXHelper using both SwiftUI and UIKit. For detailed implementation examples, refer to the example app README.

FAQ

1. Documentation

For detailed documentation, check the SwiftUI integration guide and UIKit integration guide.

2. What are the branches?

There are main branches coresponding to each version : Main, Release branches and Features branches

  • main - This is the main, default branch. Feature branches merge back into this branch, and release branches are created off this branch.
  • release branches - This branch is production ready.
  • feature branches - After every push to this branch swift lint and tests are run to ensure no breaking changes are allowed.

3. Where are the Buildkite configurations?

They are in .buildkite/pipeline.yml

About

Rokt UX Helper for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages