Skip to content

laramarie/takit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUU

CUU

Build Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

CUU is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CUU', :git => 'git@github.com:laramarie/takit.git', :branch => 'master'

CUU requires a CUU.plist to be present at build time. As the current commit hash needs to be written to this file, we recommend creating it with your CI/CD system.

Setup

To be able to use all feature of CUU, you need to set up your project for it.

In your AppDelegate, import CUU, let the AppDelegate conform to the IKAppDelegate protocol and start CUU. You must also introduce a new var window in the AppDelegate.

class AppDelegate: UIResponder, UIApplicationDelegate, IKAppDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Start the CUU framework for tracking features and interactions within the app.
CUU.start()

// Do your own stuff.

return true
}
}

For every view controller which you want to be tracked, you need to inherit from one of the CUUViewController classes. There is a subclass available for all types of View Controller, e.g. CUUPageViewController or CUUTabBarController. For every event you want to track, call CUU's FeatureKit.seed(name: String) method.

class ViewController: CUUViewController {
@IBAction func didTapTryFeatureKitButton(_ sender: UIButton) {
// Notify the FeatureKit component of CUU that a step of a feature was triggered.
FeatureKit.seed(name: "TryFeatureKitButtonTapAction")
}
}

Author

Contributors

License

CUU is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published