PlateauMobileSDK 的添加和使用 - V1.0
1- SDK 下载
1. 在项目的 Cartfile 文件中添加以下库,如图所示。
github "Alamofire/Alamofire" ~> 5.1
github "daltoniam/Starscream" >= 4.0.0
github "airbnb/lottie-ios" "4.1.2"
github "danielgindi/Charts" == 4.1.0
github "guoyingtao/Mantis" "v2.14.1"
2. 在终端中进入包含 Cartfile 文件的项目目录,并运行以下命令。
- carthage update --use-xcframeworks --platform iOS
3. 将 Carthage 下载的 framework 文件夹中的 PlateauMobile.xcframework、yoga.xcframework 和 YogaKit.xcframework 文件复制到您的机器上。
4. 将所有 framework 文件添加到项目内部。
2- SDK 运行
1. 导入 PlateauMobile。
2. 实现 QMScreenDelegateProtocol。
3. 重写 showLoadingView 和 hideLoadingView。
4. 使用 QBRenderingManager.shared.startApplication(appUrl: "YourAppUrl", showloading: showLoadingView, hideLoading: hideLoadingView, screenDelegate: self) 来启动应用。