CUU 2.3.1

CUU 2.3.1

Jan Philip BerniusLara Marie ReimerCURES Bot 维护。



CUU 2.3.1

  • Jan Ole Johanssen、Lara Marie Reimer 和 Jan Philip Bernius

CUU

CUU

Build Status Version License Platform

示例

要运行示例项目,首先克隆仓库,然后在 Example 目录下运行 pod install

安装

CUU 通过 CocoaPods 提供。要安装它,只需在 Podfile 中添加以下行

pod 'CUU'

CUU 需要一个 CUU.plist 在构建时存在。

CUU 需要一个 CUU.plist 在构建时存在。您可以将 CUU.plist.example 文件重命名并用作起点。由于当前提交散列需要写入此文件,我们建议使用您的 CI/CD 系统创建它。

配置

为了使用CUU的所有功能,您需要为您的项目配置CUU。

在您的AppDelegate中,导入CUU,使AppDelegate遵守IKAppDelegate协议,并启动CUU。您还必须在AppDelegate中引入一个新的var window。

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
    }
}

对于您想要跟踪的每个视图控制器,您需要从CUUViewController类中继承一个。为所有类型的视图控制器都有可用的子类,例如CUUPageViewController或CUUTabBarController。对于您想要跟踪的每个事件,调用CUU的FeatureKit.seed(name: String)方法。

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

作者

贡献者

贡献者

许可

CUU符合MIT许可证。有关更多信息,请参阅LICENSE文件