Commit 4a21f062fe6df9606ade0edf989336c50db04439
1 parent
5e55de64
添加获取版本号
Showing
8 changed files
with
18 additions
and
1 deletions
CNLiveUserSystemDemo.xcodeproj/project.xcworkspace/xcuserdata/iOS.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
CNLiveUserSystemDemo/CNLiveUserSystemSDK/CNLiveUserSystemCenter.h
| @@ -143,5 +143,9 @@ | @@ -143,5 +143,9 @@ | ||
| 143 | */ | 143 | */ |
| 144 | + (void)feedbackWithContentId:(NSString *)contentId message:(NSString *)message success:(void (^)(id result))success failure :(void (^)(NSError *error))failure; | 144 | + (void)feedbackWithContentId:(NSString *)contentId message:(NSString *)message success:(void (^)(id result))success failure :(void (^)(NSError *error))failure; |
| 145 | 145 | ||
| 146 | +/** | ||
| 147 | + * 获取SDK版本号 | ||
| 148 | + */ | ||
| 149 | ++ (NSString *)getVersion; | ||
| 146 | 150 | ||
| 147 | @end | 151 | @end |
CNLiveUserSystemDemo/CNLiveUserSystemSDK/CNLiveUserSystemCenter.m
| @@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
| 15 | #import "CNLiveUserSystemTools.h" | 15 | #import "CNLiveUserSystemTools.h" |
| 16 | #import "CNLiveUserManager.h" | 16 | #import "CNLiveUserManager.h" |
| 17 | #import "CNLiveUploadIcon.h" | 17 | #import "CNLiveUploadIcon.h" |
| 18 | +#import "Common.h" | ||
| 18 | 19 | ||
| 19 | @implementation CNLiveUserSystemCenter | 20 | @implementation CNLiveUserSystemCenter |
| 20 | 21 | ||
| @@ -148,6 +149,14 @@ | @@ -148,6 +149,14 @@ | ||
| 148 | [feedback feedbackWithAppId:[CNLiveUserManager manager].appId appKey:[CNLiveUserManager manager].appKey contentId:contentId message:message success:success failure:failure]; | 149 | [feedback feedbackWithAppId:[CNLiveUserManager manager].appId appKey:[CNLiveUserManager manager].appKey contentId:contentId message:message success:success failure:failure]; |
| 149 | } | 150 | } |
| 150 | 151 | ||
| 152 | +/** | ||
| 153 | + * 获取版本号 | ||
| 154 | + */ | ||
| 155 | ++ (NSString *)getVersion | ||
| 156 | +{ | ||
| 157 | + return SDKVersion; | ||
| 158 | +} | ||
| 159 | + | ||
| 151 | #pragma mark - token | 160 | #pragma mark - token |
| 152 | 161 | ||
| 153 | + (NSString *)getToken | 162 | + (NSString *)getToken |
CNLiveUserSystemDemo/CNLiveUserSystemSDK/Common.h
| @@ -11,6 +11,6 @@ | @@ -11,6 +11,6 @@ | ||
| 11 | 11 | ||
| 12 | #define kSVer @"4.0" //探针版本 | 12 | #define kSVer @"4.0" //探针版本 |
| 13 | #define StatAppVersion ([[[NSBundle mainBundle] infoDictionary] objectForKey: @"CFBundleShortVersionString"]) | 13 | #define StatAppVersion ([[[NSBundle mainBundle] infoDictionary] objectForKey: @"CFBundleShortVersionString"]) |
| 14 | -#define SDKVersion @"1.0.0" //SDK版本 | 14 | +#define SDKVersion @"1.1.0" //SDK版本 |
| 15 | 15 | ||
| 16 | #endif /* Common_h */ | 16 | #endif /* Common_h */ |
CNLiveUserSystemSDK.xcodeproj/project.xcworkspace/xcuserdata/iOS.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
Products/CNLiveUserSystemSDK.framework/CNLiveUserSystemSDK
No preview for this file type
Products/CNLiveUserSystemSDK.framework/Headers/CNLiveUserSystemCenter.h
| @@ -143,5 +143,9 @@ | @@ -143,5 +143,9 @@ | ||
| 143 | */ | 143 | */ |
| 144 | + (void)feedbackWithContentId:(NSString *)contentId message:(NSString *)message success:(void (^)(id result))success failure :(void (^)(NSError *error))failure; | 144 | + (void)feedbackWithContentId:(NSString *)contentId message:(NSString *)message success:(void (^)(id result))success failure :(void (^)(NSError *error))failure; |
| 145 | 145 | ||
| 146 | +/** | ||
| 147 | + * 获取SDK版本号 | ||
| 148 | + */ | ||
| 149 | ++ (NSString *)getVersion; | ||
| 146 | 150 | ||
| 147 | @end | 151 | @end |
Products/CNLiveUserSystemSDK.framework/Info.plist
No preview for this file type