CleverTap iOS Segment SDK
CleverTap 为 analytics-ios 提供的集成。
安装
Analytics 通过 CocoaPods 和 Swift 包管理器 提供。
CocoaPods
通过CocoaPods安装CleverTap Segment集成,只需将以下行添加到您的Podfile中
pod "Segment-CleverTap"
Swift 包管理器
要通过Swift包管理器安装CleverTap Segment集成,请按照以下步骤操作
- 在Xcode中,导航到 文件 -> Swift包管理器 -> 添加包依赖。
- 选择包仓库时输入https://github.com/CleverTap/clevertap-segment-ios.git,然后点击 下一步。
- 在下一屏幕上,选择一个SDK版本(默认情况下,Xcode选择最新稳定版本)。点击 下一步。
- 点击 完成 并确保 Segment-CleverTap 已添加到适当的目标中。
使用
- 添加依赖后,导入集成
#import "SEGCleverTapIntegrationFactory.h"
- 最后,在您的应用程序代理实例中声明CleverTap的集成
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY_HERE"];
[config use:[SEGCleverTapIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
更多信息
- 查看我们的示例 Swift 项目,该项目通过CocoaPods使用Segment集成CleverTap。
- 查看我们的示例 Objective-C 项目,该项目通过CocoaPods使用Segment集成CleverTap。
- 查看我们的示例 SwiftPM 项目,该项目通过Swift包管理器使用Segment集成CleverTap。
- 查看我们的CleverTap iOS Segment 集成文档。
许可证
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
The MIT License (MIT)
Copyright (c) 2014 Segment, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.