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 | 143 | */ |
| 144 | 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 | 151 | @end | ... | ... |
CNLiveUserSystemDemo/CNLiveUserSystemSDK/CNLiveUserSystemCenter.m
| ... | ... | @@ -15,6 +15,7 @@ |
| 15 | 15 | #import "CNLiveUserSystemTools.h" |
| 16 | 16 | #import "CNLiveUserManager.h" |
| 17 | 17 | #import "CNLiveUploadIcon.h" |
| 18 | +#import "Common.h" | |
| 18 | 19 | |
| 19 | 20 | @implementation CNLiveUserSystemCenter |
| 20 | 21 | |
| ... | ... | @@ -148,6 +149,14 @@ |
| 148 | 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 | 160 | #pragma mark - token |
| 152 | 161 | |
| 153 | 162 | + (NSString *)getToken | ... | ... |
CNLiveUserSystemDemo/CNLiveUserSystemSDK/Common.h
| ... | ... | @@ -11,6 +11,6 @@ |
| 11 | 11 | |
| 12 | 12 | #define kSVer @"4.0" //探针版本 |
| 13 | 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 | 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 | 143 | */ |
| 144 | 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 | 151 | @end | ... | ... |
Products/CNLiveUserSystemSDK.framework/Info.plist
No preview for this file type