This project is dependent on the primary Reach5 component found at https://github.com/ReachFive/reachfive-ios (该项目依赖于主要的Reach5组件,位于 https://github.com/ReachFive/reachfive-ios)
Add the following line to your Podfile (将以下行添加到你的 Podfile 中)
pod 'Reach5Facebook'
Open the following menu item in Xcode (在Xcode中打开以下菜单项)
File > Add Package Dependencies... (文件 > 添加包依赖项...)
In the Search or Enter Package URL search box enter this URL (在 Search or Enter Package URL (搜索或输入包URL) 搜索框中输入此URL)
https://github.com/ReachFive/reachfive-ios-facebook.git
Then, select the dependency rule and press Add Package. (然后,选择依赖规则并点击 Add Package (添加包)。)
Or directly add it to the dependencies value of your Package.swift or the Package list in Xcode (或者直接将其添加到您的 Package.swift 的 dependencies 值或 Xcode 中的 Package 列表)
dependencies: [
.package(url: "https://github.com/ReachFive/reachfive-ios-facebook.git", .upToNextMajor(from: "7.0.0"))
]
Open the project folder to view it as a package project, not the .xcodeproj or .xcworkspace which makes them seen as a Pod project (打开项目文件夹以将其视为包项目,而不是 .xcodeproj 或 .xcworkspace,后者使它们被视为 Pod 项目)
Refer to the public documentation to install the SDKs and to initialize your ReachFive client. (参考 公共文档 安装SDK并初始化你的ReachFive客户端。)
The basics are (基本步骤包括)
let reachfive: ReachFive = ReachFive(sdkConfig: sdkConfig, providersCreators: [FacebookProvider()])
Call this method (that makes a network call) inside the corresponding method of UIApplicationDelegate
(在UIApplicationDelegate
的相应方法中调用此方法(该方法进行网络调用))
reachfive.application(application, didFinishLaunchingWithOptions: launchOptions)
You'll find the documentation of the methods exposed on https://developer.reachfive.com/sdk-ios/index.html. (你可以在 https://developer.reachfive.com/sdk-ios/index.html 找到已公开方法的文档。)
Please refer to changelog to see the descriptions of each release. (请参考 更新日志 查看每个版本的描述。)