Commit eb977ebe39fa6a2a426891105ddd97f490d49c7c

Authored by yanglingyu
1 parent 9914299f

xgSdk更改为最新pod

CNLiveScioLive.xcodeproj/project.pbxproj
... ... @@ -51,8 +51,6 @@
51 51 0838487D215CF6FC00186618 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0838487C215CF6FB00186618 /* BaseViewController.m */; };
52 52 0838487E215CF6FC00186618 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0838487C215CF6FB00186618 /* BaseViewController.m */; };
53 53 0838487F215CF6FC00186618 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0838487C215CF6FB00186618 /* BaseViewController.m */; };
54   - 083ADA2126329F4E00AAD350 /* ReleaseNotes.txt in Resources */ = {isa = PBXBuildFile; fileRef = 083ADA1F26329F4E00AAD350 /* ReleaseNotes.txt */; };
55   - 083ADA2226329F4E00AAD350 /* libXG-SDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 083ADA2026329F4E00AAD350 /* libXG-SDK.a */; };
56 54 08471A9F25E7864E0043FC2D /* VideoDetailPresent.m in Sources */ = {isa = PBXBuildFile; fileRef = 08471A9E25E7864E0043FC2D /* VideoDetailPresent.m */; };
57 55 084ACDFD21547AE80089E035 /* CNLiveContactUsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 084ACDFC21547AE80089E035 /* CNLiveContactUsViewController.m */; };
58 56 084ACDFE21547AE80089E035 /* CNLiveContactUsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 084ACDFC21547AE80089E035 /* CNLiveContactUsViewController.m */; };
... ... @@ -760,9 +758,6 @@
760 758 08384877215CC9E400186618 /* GraphicLiveViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GraphicLiveViewController.h; sourceTree = "<group>"; };
761 759 0838487B215CF6FB00186618 /* BaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseViewController.h; sourceTree = "<group>"; };
762 760 0838487C215CF6FB00186618 /* BaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaseViewController.m; sourceTree = "<group>"; };
763   - 083ADA1E26329F4E00AAD350 /* XGPush.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XGPush.h; sourceTree = "<group>"; };
764   - 083ADA1F26329F4E00AAD350 /* ReleaseNotes.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReleaseNotes.txt; sourceTree = "<group>"; };
765   - 083ADA2026329F4E00AAD350 /* libXG-SDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libXG-SDK.a"; sourceTree = "<group>"; };
766 761 08471A9D25E7864E0043FC2D /* VideoDetailPresent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = VideoDetailPresent.h; sourceTree = "<group>"; };
767 762 08471A9E25E7864E0043FC2D /* VideoDetailPresent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VideoDetailPresent.m; sourceTree = "<group>"; };
768 763 084ACDFB21547AE80089E035 /* CNLiveContactUsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveContactUsViewController.h; sourceTree = "<group>"; };
... ... @@ -1189,7 +1184,6 @@
1189 1184 08B5C61C2153AF9400F5476E /* libz.tbd in Frameworks */,
1190 1185 08B5C61A2153AF8400F5476E /* libc++.tbd in Frameworks */,
1191 1186 08B5C5BF21538E3000F5476E /* SystemConfiguration.framework in Frameworks */,
1192   - 083ADA2226329F4E00AAD350 /* libXG-SDK.a in Frameworks */,
1193 1187 C920C04CF338587047FE01A4 /* Pods_CNLiveScioLive.framework in Frameworks */,
1194 1188 );
1195 1189 runOnlyForDeploymentPostprocessing = 0;
... ... @@ -1263,16 +1257,6 @@
1263 1257 path = Html5Utils;
1264 1258 sourceTree = "<group>";
1265 1259 };
1266   - 083ADA1D26329F4E00AAD350 /* XGSDK */ = {
1267   - isa = PBXGroup;
1268   - children = (
1269   - 083ADA1E26329F4E00AAD350 /* XGPush.h */,
1270   - 083ADA1F26329F4E00AAD350 /* ReleaseNotes.txt */,
1271   - 083ADA2026329F4E00AAD350 /* libXG-SDK.a */,
1272   - );
1273   - path = XGSDK;
1274   - sourceTree = "<group>";
1275   - };
1276 1260 08471A8F25E785B50043FC2D /* Present */ = {
1277 1261 isa = PBXGroup;
1278 1262 children = (
... ... @@ -1860,7 +1844,6 @@
1860 1844 08C08FD0214FA01B00E23D16 /* SDK */ = {
1861 1845 isa = PBXGroup;
1862 1846 children = (
1863   - 083ADA1D26329F4E00AAD350 /* XGSDK */,
1864 1847 0886E32E2179AE0B00C777A3 /* KJARLib */,
1865 1848 0838485A215CAB1C00186618 /* Html5Utils */,
1866 1849 085D85EF2159C0790037D480 /* Reachability */,
... ... @@ -2588,7 +2571,6 @@
2588 2571 0886E3892179AE0B00C777A3 /* loader_spinner0015.png in Resources */,
2589 2572 08C08F7B214F997F00E23D16 /* Assets.xcassets in Resources */,
2590 2573 0886E38C2179AE0B00C777A3 /* loader_spinner0014.png in Resources */,
2591   - 083ADA2126329F4E00AAD350 /* ReleaseNotes.txt in Resources */,
2592 2574 085D86562159C72F0037D480 /* zx-video-player-brightness@2x.png in Resources */,
2593 2575 0886E3802179AE0B00C777A3 /* loader_spinner0011.png in Resources */,
2594 2576 0886E3862179AE0B00C777A3 /* loader_spinner0001.png in Resources */,
... ...
CNLiveScioLive/Pages/SDK/XGSDK/ReleaseNotes.txt deleted 100755 → 0
1   -XG IOS SDK ReleaseNote
2   -===================
3   -
4   -VERSION 3.1.1
5   --------------------------------------------
6   -1.更新账号协议
7   -2.去除模拟器支持
8   -3.修复绑定接口的bug
9   -
10   -VERSION 3.1.0
11   --------------------------------------------
12   -1. 新增XGExtension静态库,统计推送消息回执
13   -2. 支持PushKit VoIP
14   -
15   -VERSION 3.0.2
16   --------------------------------------------
17   -1. 新增消息行为统计接口
18   -2. 简化设备token上报接口
19   -3. bug修复
20   -
21   -VERSION 3.0.0
22   --------------------------------------------
23   -1. 代码全面优化,简化接口、改善接口扩展性,精简了SDK的体积
24   -2. 自动兼容iOS系统版本变更
25   -3. 新增统计用户推送权限的关闭情况
26   -
27   -
28   -VERSION 2.6.0
29   --------------------------------------------
30   -* 调整注册接口
31   -
32   -VERSION 2.5.0
33   --------------------------------------------
34   -* 修改接口,去掉无用API
35   -* 增加静默推送以及推送样式
36   -
37   -VERSION 2.4.9
38   --------------------------------------------
39   -* 提高sdk稳定性
40   -
41   -VERSION 2.4.8
42   --------------------------------------------
43   -* 增加ipv6支持
44   -
45   -VERSION 2.4.7
46   --------------------------------------------
47   -* 加入客户端识别机制,减少重复推送发生的概率
48   -
49   -VERSION 2.4.6
50   --------------------------------------------
51   -* 完善回调调用机制,现在大多数情况下都会调用回调
52   -
53   -VERSION 2.4.5
54   --------------------------------------------
55   -* 用XCode7.1重新编译
56   -* 提供XCode6.4兼容包
57   -
58   -VERSION 2.4.4
59   --------------------------------------------
60   -* 提高SDK弱网下的稳定性
61   -
62   -VERSION 2.4.3
63   --------------------------------------------
64   -* 修复setTag不回调的问题
65   -
66   -VERSION 2.4.2
67   --------------------------------------------
68   -* 增加XCode7 bitcode支持
69   -
70   -VERSION 2.4.0
71   --------------------------------------------
72   -* 优化网络连接
73   -* 解决已知的内存泄露问题
74   -
75   -VERSION 2.3.2
76   --------------------------------------------
77   -* 修复由于bundle id命名导致启动时crash的bug
78   -
79   -VERSION 2.3
80   --------------------------------------------
81   -* 增加MD5函数调用前对AppKey的nil判断
82   -* 和XG共享deviceToken
83   -
84   - VERSION 2.2
85   --------------------------------------------
86   -* 增加iOS8的支持。
87   -* 增加渠道,游戏大区上报。
88   -* 增加registerDeviceStr接口
89   -
90   - VERSION 2.1.1
91   --------------------------------------------
92   -* 优化注销逻辑
93   -* 增加registerDeviceStr接口
94   -
95   - VERSION 2.1.0
96   --------------------------------------------
97   -* 增加对arm64的优化支持
98   -* 增加若干接口的回调函数
99   -* 注册的逻辑优化
100   -* 注意:个别函数名替换"Location"为"Local"
101   -
102   - VERSION 2.0.1
103   --------------------------------------------
104   -* 修改SDK特性,增加对预定义标签的支持
105   -* 删除了一些无用的文件
106   -
107   - VERSION 2.0.0
108   --------------------------------------------
109   -* 增加本地推送功能
110   -* 提高SDK的稳定性
111   -
112   - VERSION 1.0.3
113   --------------------------------------------
114   -* 增加别名功能
115   -
116   - VERSION 1.0.2
117   --------------------------------------------
118   -* 切换到全新后台接口
119   -* SDK代码全面优化
120   -
121   - VERSION 1.0.1
122   --------------------------------------------
123   -* 实现和XG兼容
124   -
125   - VERSION 1.0.0
126   --------------------------------------------
127   -* 初始版本
CNLiveScioLive/Pages/SDK/XGSDK/XGPush.h deleted 100755 → 0
1   -//
2   -// 信鸽核心接口
3   -// XG-SDK
4   -//
5   -// Created by xiangchen on 13-10-18.
6   -// Update by uweiyuan on 4/08/17.
7   -// Copyright (c) 2013年 XG. All rights reserved.
8   -//
9   -
10   -#import <Foundation/Foundation.h>
11   -#import <UIKit/UIKit.h>
12   -
13   -@class CLLocation;
14   -
15   -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
16   -#import <UserNotifications/UserNotifications.h>
17   -#endif
18   -
19   -/**
20   - @brief 点击行为对象的属性配置
21   -
22   - - XGNotificationActionOptionNone: 无
23   - - XGNotificationActionOptionAuthenticationRequired: 需要认证的选项
24   - - XGNotificationActionOptionDestructive: 具有破坏意义的选项
25   - - XGNotificationActionOptionForeground: 打开应用的选项
26   - */
27   -typedef NS_ENUM(NSUInteger, XGNotificationActionOptions) {
28   - XGNotificationActionOptionNone = (0),
29   - XGNotificationActionOptionAuthenticationRequired = (1 << 0),
30   - XGNotificationActionOptionDestructive = (1 << 1),
31   - XGNotificationActionOptionForeground = (1 << 2)
32   -};
33   -
34   -/**
35   - * @brief 定义了一个可以在通知栏中点击的事件对象
36   - */
37   -@interface XGNotificationAction : NSObject
38   -
39   -/**
40   - @brief 在通知消息中创建一个可以点击的事件行为
41   -
42   - @param identifier 行为唯一标识
43   - @param title 行为名称
44   - @param options 行为支持的选项
45   - @return 行为对象
46   - @note 通知栏带有点击事件的特性,只有在iOS8+以上支持,iOS 8 or earlier的版本,此方法返回空
47   - */
48   -+ (nullable id)actionWithIdentifier:(nonnull NSString *)identifier title:(nonnull NSString *)title options:(XGNotificationActionOptions)options;
49   -
50   -/**
51   - @brief 点击行为的标识
52   - */
53   -@property (nullable, nonatomic, copy, readonly) NSString *identifier;
54   -
55   -/**
56   - @brief 点击行为的标题
57   - */
58   -@property (nullable, nonatomic, copy, readonly) NSString *title;
59   -
60   -/**
61   - @brief 点击行为的特性
62   - */
63   -@property (readonly, nonatomic) XGNotificationActionOptions options;
64   -
65   -@end
66   -
67   -
68   -/**
69   - @brief 分类对象的属性配置
70   -
71   - - XGNotificationCategoryOptionNone: 无
72   - - XGNotificationCategoryOptionCustomDismissAction: 发送消失事件给UNUserNotificationCenter(iOS 10 or later)对象
73   - - XGNotificationCategoryOptionAllowInCarPlay: 允许CarPlay展示此类型的消息
74   - */
75   -typedef NS_OPTIONS(NSUInteger, XGNotificationCategoryOptions) {
76   - XGNotificationCategoryOptionNone = (0),
77   - XGNotificationCategoryOptionCustomDismissAction = (1 << 0),
78   - XGNotificationCategoryOptionAllowInCarPlay = (1 << 1)
79   -};
80   -
81   -
82   -/**
83   - * 通知栏中消息指定的分类,分类主要用来管理一组关联的Action,以实现不同分类对应不同的Actions
84   - */
85   -@interface XGNotificationCategory : NSObject
86   -
87   -
88   -/**
89   - @brief 创建分类对象,用以管理通知栏的Action对象
90   -
91   - @param identifier 分类对象的标识
92   - @param actions 当前分类拥有的行为对象组
93   - @param intentIdentifiers 用以表明可以通过Siri识别的标识
94   - @param options 分类的特性
95   - @return 管理点击行为的分类对象
96   - @note 通知栏带有点击事件的特性,只有在iOS8+以上支持,iOS 8 or earlier的版本,此方法返回空
97   - */
98   -+ (nullable id)categoryWithIdentifier:(nonnull NSString *)identifier actions:(nullable NSArray<XGNotificationAction *> *)actions intentIdentifiers:(nullable NSArray<NSString *> *)intentIdentifiers options:(XGNotificationCategoryOptions)options;
99   -
100   -/**
101   - @brief 分类对象的标识
102   - */
103   -@property (nonnull, readonly, copy, nonatomic) NSString *identifier;
104   -
105   -/**
106   - @brief 分类对象拥有的点击行为组
107   - */
108   -@property (nonnull, readonly, copy, nonatomic) NSArray<XGNotificationAction *> *actions;
109   -
110   -/**
111   - @brief 可用以Siri意图的标识组
112   - */
113   -@property (nullable, readonly, copy, nonatomic) NSArray<NSString *> *intentIdentifiers;
114   -
115   -/**
116   - @brief 分类的特性
117   - */
118   -@property (readonly, nonatomic) XGNotificationCategoryOptions options;
119   -
120   -@end
121   -
122   -/**
123   - @brief 注册通知支持的类型
124   -
125   - - XGUserNotificationTypeNone: 无
126   - - XGUserNotificationTypeBadge: 支持应用角标
127   - - XGUserNotificationTypeSound: 支持铃声
128   - - XGUserNotificationTypeAlert: 支持弹框
129   - - XGUserNotificationTypeCarPlay: 支持CarPlay
130   - - XGUserNotificationTypeNewsstandContentAvailability: 支持Newsstand
131   - */
132   -typedef NS_OPTIONS(NSUInteger, XGUserNotificationTypes) {
133   - XGUserNotificationTypeNone = (0),
134   - XGUserNotificationTypeBadge = (1 << 0),
135   - XGUserNotificationTypeSound = (1 << 1),
136   - XGUserNotificationTypeAlert = (1 << 2),
137   - XGUserNotificationTypeCarPlay = (1 << 3),
138   - XGUserNotificationTypeNewsstandContentAvailability = (1 << 4) // iOS 8 以下版本支持
139   -};
140   -
141   -/**
142   - @brief 管理推送消息通知栏的样式和特性
143   - */
144   -@interface XGNotificationConfigure : NSObject
145   -
146   -/**
147   - @brief 配置通知栏对象,主要是为了配置消息通知的样式和行为特性
148   -
149   - @param categories 通知栏中支持的分类集合
150   - @param types 注册通知的样式
151   - @return 配置对象
152   - */
153   -+ (nullable instancetype)configureNotificationWithCategories:(nullable NSSet<XGNotificationCategory *> *)categories types:(XGUserNotificationTypes)types;
154   -
155   -- (nonnull instancetype)init NS_UNAVAILABLE;
156   -/**
157   - @brief 返回消息通知栏配置对象
158   - */
159   -@property (readonly, nullable, strong, nonatomic) NSSet<XGNotificationCategory *> *categories;
160   -
161   -
162   -/**
163   - @brief 返回注册推送的样式类型
164   - */
165   -@property (readonly, nonatomic) XGUserNotificationTypes types;
166   -
167   -/**
168   - @brief 默认的注册推送的样式类型
169   - */
170   -@property (readonly, nonatomic) XGUserNotificationTypes defaultTypes;
171   -
172   -@end
173   -
174   -
175   -/**
176   - @brief 设备token绑定的类型,绑定指定类型之后,就可以在信鸽前端按照指定的类型进行指定范围的推送
177   -
178   - - XGPushTokenBindTypeNone: 当前设备token不绑定任何类型,可以使用token单推,或者是全量推送
179   - - XGPushTokenBindTypeAccount: 当前设备token与账号绑定之后,可以使用账号推送
180   - - XGPushTokenBindTypeTag: 当前设备token与指定标签绑定之后,可以使用标签推送
181   - */
182   -typedef NS_ENUM(NSUInteger, XGPushTokenBindType) {
183   - XGPushTokenBindTypeNone = (0),
184   - XGPushTokenBindTypeAccount = (1 << 0),
185   - XGPushTokenBindTypeTag = (1 << 1)
186   -};
187   -
188   -/**
189   - @brief 定义了一组关于设备token绑定,解绑账号和标签的回调方法,用以监控绑定和解绑的情况
190   - */
191   -@protocol XGPushTokenManagerDelegate <NSObject>
192   -
193   -@optional
194   -
195   -/**
196   - @brief 监控token对象绑定的情况
197   -
198   - @param identifier token对象绑定的标识
199   - @param type token对象绑定的类型
200   - @param error token对象绑定的结果信息
201   - */
202   -- (void)xgPushDidBindWithIdentifier:(nullable NSString *)identifier type:(XGPushTokenBindType)type error:(nullable NSError *)error;
203   -
204   -
205   -/**
206   - @brief 监控token对象解绑的情况
207   -
208   - @param identifier token对象解绑的标识
209   - @param type token对象解绑的类型
210   - @param error token对象解绑的结果信息
211   - */
212   -- (void)xgPushDidUnbindWithIdentifier:(nullable NSString *)identifier type:(XGPushTokenBindType)type error:(nullable NSError *)error;
213   -
214   -@end
215   -
216   -@interface XGPushTokenManager : NSObject
217   -
218   -/**
219   - @brief 创建设备token的管理对象,用来管理token的绑定与解绑操作
220   -
221   - @return 设备token管理对象
222   - */
223   -
224   -+ (nonnull instancetype)defaultTokenManager;
225   -
226   -- (nonnull instancetype)init NS_UNAVAILABLE;
227   -/**
228   - @brief 设备token管理操作的代理对象
229   - */
230   -@property (weak, nonatomic, nullable) id<XGPushTokenManagerDelegate> delegate;
231   -
232   -/**
233   - @brief 返回当前设备token的字符串
234   - */
235   -@property (copy, nonatomic, nullable, readonly) NSString *deviceTokenString;
236   -
237   -/**
238   - @brief 为token对象指定绑定类型和标识
239   -
240   - @param identifier 指定绑定标识
241   - @param type 指定绑定类型
242   - */
243   -- (void)bindWithIdentifier:(nullable NSString *)identifier type:(XGPushTokenBindType)type;
244   -
245   -/**
246   - @brief 为token对象指定解绑类型和标识
247   -
248   - @param identifier 指定解绑标识
249   - @param type 指定解绑类型
250   - */
251   -- (void)unbindWithIdentifer:(nullable NSString *)identifier type:(XGPushTokenBindType)type;
252   -
253   -/**
254   - @brief 根据指定类型查询当前token对象绑定的标识
255   -
256   - @param type 指定绑定类型
257   - @return 当前token对象绑定的标识
258   - */
259   -- (nullable NSArray<NSString *> *)identifiersWithType:(XGPushTokenBindType)type;
260   -
261   -@end
262   -
263   -
264   -/**
265   - @brief 监控信鸽服务启动和设备token注册的一组方法
266   - */
267   -@protocol XGPushDelegate <NSObject>
268   -
269   -@optional
270   -
271   -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
272   -/**
273   - @brief 处理iOS 10 UNUserNotification.framework的对应的方法
274   -
275   - @param center [UNUserNotificationCenter currentNotificationCenter]
276   - @param notification 通知对象
277   - @param completionHandler 回调对象,必须调用
278   - */
279   -- (void)xgPushUserNotificationCenter:(nonnull UNUserNotificationCenter *)center willPresentNotification:(nullable UNNotification *)notification withCompletionHandler:(nonnull void (^)(UNNotificationPresentationOptions options))completionHandler __IOS_AVAILABLE(10.0);
280   -
281   -
282   -/**
283   - @brief 处理iOS 10 UNUserNotification.framework的对应的方法
284   -
285   - @param center [UNUserNotificationCenter currentNotificationCenter]
286   - @param response 用户对通知消息的响应对象
287   - @param completionHandler 回调对象,必须调用
288   - */
289   -- (void)xgPushUserNotificationCenter:(nonnull UNUserNotificationCenter *)center didReceiveNotificationResponse:(nullable UNNotificationResponse *)response withCompletionHandler:(nonnull void (^)(void))completionHandler __IOS_AVAILABLE(10.0);
290   -
291   -#endif
292   -
293   -/**
294   - @brief 监控信鸽推送服务地启动情况
295   -
296   - @param isSuccess 信鸽推送是否启动成功
297   - @param error 信鸽推送启动错误的信息
298   - */
299   -- (void)xgPushDidFinishStart:(BOOL)isSuccess error:(nullable NSError *)error;
300   -
301   -/**
302   - @brief 监控信鸽服务的终止情况
303   -
304   - @param isSuccess 信鸽推送是否终止
305   - @param error 信鸽推动终止错误的信息
306   - */
307   -- (void)xgPushDidFinishStop:(BOOL)isSuccess error:(nullable NSError *)error;
308   -
309   -
310   -/**
311   - @brief 监控信鸽服务上报推送消息的情况
312   -
313   - @param isSuccess 上报是否成功
314   - @param error 上报失败的信息
315   - */
316   -- (void)xgPushDidReportNotification:(BOOL)isSuccess error:(nullable NSError *)error;
317   -
318   -
319   -/**
320   - @brief 监控设置信鸽服务器下发角标的情况
321   -
322   - @param isSuccess isSuccess 上报是否成功
323   - @param error 设置失败的信息
324   - */
325   -- (void)xgPushDidSetBadge:(BOOL)isSuccess error:(nullable NSError *)error;
326   -
327   -/**
328   - @brief 注册设备token的回调
329   -
330   - @param deviceToken 当前设备的token
331   - @param error 错误信息
332   - */
333   -- (void)xgPushDidRegisteredDeviceToken:(nullable NSString *)deviceToken error:(nullable NSError *)error;
334   -
335   -@end
336   -
337   -/**
338   - @brief 管理信鸽推送服务的对象,负责注册推送权限、消息的管理、调试模式的开关设置等
339   - */
340   -@interface XGPush : NSObject
341   -
342   -#pragma mark - 初始化相关
343   -
344   -/**
345   - @brief 获取信鸽推送管理的单例对象
346   -
347   - @return 信鸽推送对象
348   - */
349   -+ (nonnull instancetype)defaultManager;
350   -
351   -/**
352   - @brief 关于信鸽推送SDK接口协议的对象
353   - */
354   -@property (weak, nonatomic, nullable, readonly) id<XGPushDelegate> delegate;
355   -
356   -
357   -/**
358   - @brief 信鸽推送管理对象,管理推送的配置选项,例如,注册推送的样式
359   - */
360   -@property (nullable, strong, nonatomic) XGNotificationConfigure *notificationConfigure;
361   -
362   -
363   -/**
364   - @brief 这个开关表明是否打印信鸽SDK的日志信息
365   - */
366   -@property (assign, getter=isEnableDebug) BOOL enableDebug;
367   -
368   -/**
369   - @brief 返回信鸽推送服务的状态
370   - */
371   -@property (assign, readonly) BOOL xgNotificationStatus;
372   -
373   -/**
374   - @brief 管理应用角标
375   - */
376   -@property (nonatomic) NSInteger xgApplicationBadgeNumber;
377   -
378   -/**
379   - @brief 通过使用在信鸽官网注册的应用的信息,启动信鸽推送服务
380   -
381   - @param appID 通过前台申请的应用ID
382   - @param appKey 通过前台申请的appKey
383   - @param delegate 回调对象
384   - @note 接口所需参数必须要正确填写,反之信鸽服务将不能正确为应用推送消息
385   - */
386   -- (void)startXGWithAppID:(uint32_t)appID appKey:(nonnull NSString *)appKey delegate:(nullable id<XGPushDelegate>)delegate;
387   -
388   -/**
389   - @brief 停止信鸽推送服务
390   - @note 调用此方法将导致当前设备不再接受信鸽服务推送的消息.如果再次需要接收信鸽服务的消息推送,则必须需要再次调用startXG:withAppKey:delegate:方法重启信鸽推送服务
391   - */
392   -- (void)stopXGNotification;
393   -
394   -/**
395   - @brief 上报应用收到的推送信息,以便信鸽服务能够统计相关数据,包括但不限于:1.推送消息被点击的次数,2.消息曝光的次数
396   -
397   - @param info 应用接收到的推送消息对象的内容
398   - @note 请在实现application delegate 的 application:didFinishLaunchingWithOptions:或者application:didReceiveRemoteNotification:的方法中调用此接口,参数就使用这两个方法中的NSDictionaryl类型的参数即可,从而完成推送消息的数据统计
399   - */
400   -- (void)reportXGNotificationInfo:(nonnull NSDictionary *)info;
401   -
402   -/**
403   - @brief 上报地理位置信息
404   -
405   - @param latitude 纬度
406   - @param longitude 经度
407   - */
408   -- (void)reportLocationWithLatitude:(double)latitude longitude:(double)longitude;
409   -
410   -/**
411   - @brief 上报当前App角标数到信鸽服务器
412   -
413   - @param badgeNumber 应用的角标数
414   - @note (后台维护中)此接口是为了实现角标+1的功能,服务器会在这个数值基础上进行角标数新增的操作,调用成功之后,会覆盖之前值
415   - */
416   -- (void)setBadge:(NSInteger)badgeNumber;
417   -
418   -
419   -/**
420   - @brief 上报推送消息的用户行为
421   -
422   - @param identifier 用户行为标识
423   - @note 此接口即统计推送消息中开发者预先设置或者是系统预置的行为标识,可以了解到用户是如何处理推送消息的,又统计消息的点击次数
424   - */
425   -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
426   -- (void)reportXGNotificationResponse:(nullable UNNotificationResponse *)response __IOS_AVAILABLE(10.0);
427   -#endif
428   -
429   -/**
430   - @brief 查询设备通知权限是否被用户允许
431   -
432   - @param handler 查询结果的返回方法
433   - @note iOS 10 or later 回调是异步地执行
434   - */
435   -- (void)deviceNotificationIsAllowed:(nonnull void (^)(BOOL isAllowed))handler;
436   -
437   -/**
438   - @brief 查看SDK的版本
439   -
440   - @return sdk版本号
441   - */
442   -- (nonnull NSString *)sdkVersion;
443   -
444   -@end
445   -
CNLiveScioLive/Pages/SDK/XGSDK/libXG-SDK.a deleted 100755 → 0
No preview for this file type
... ... @@ -41,7 +41,7 @@ target &#39;CNLiveScioLive&#39; do
41 41 pod 'mob_sharesdk/ShareSDKPlatforms/SinaWeibo'
42 42 pod 'mob_sharesdk/ShareSDKPlatforms/WeChat'
43 43  
44   -# pod 'XGPush'
  44 + pod 'QQ_XGPush'
45 45 #####zx改
46 46 pod 'CNLiveSDK/CNLiveStat'
47 47 pod 'CNLiveSDK/CNLiveUserSystemSDK'
... ...