Skip to content

Commit 5a30892

Browse files
author
karisli
committed
# 5.8.4
- 日志量太小无落盘
1 parent 744363f commit 5a30892

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+349
-238
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 5.8.4
2+
- 修复日志量太小无落盘
3+
- 修复灯塔在bitcode开启之后编译失败的问题
4+
- 下载回调支持data
5+
16
# 5.8.3
27
接入灯塔SDK
38

QCloudCOSXML.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
33

4-
s.version = "5.8.3"
4+
s.version = "5.8.4"
55

66
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
77

@@ -19,15 +19,15 @@ s.version = "5.8.3"
1919
s.default_subspec = 'Default'
2020
s.subspec 'Default' do |default|
2121
default.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
22-
default.dependency "QCloudCore",'5.8.3'
22+
default.dependency "QCloudCore",'5.8.4'
2323
end
2424
s.subspec 'Slim' do |slim|
2525
slim.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
26-
slim.dependency "QCloudCore/WithoutMTA",'5.8.3'
26+
slim.dependency "QCloudCore/WithoutMTA",'5.8.4'
2727
end
2828
s.subspec 'Transfer' do |transfer|
29-
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/*'
30-
transfer.dependency "QCloudCore/WithoutMTA",'5.8.3'
29+
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
30+
transfer.dependency "QCloudCore/WithoutMTA",'5.8.4'
3131
end
3232

3333
end

QCloudCOSXML/Classes/Base/NSException+Quality.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ + (void)changeImplementation {
2424
method_exchangeImplementations(originMethod, replacedMethod);
2525
}
2626

27-
+(NSException *)qcloud_exceptionWithName:(NSExceptionName)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfo{
27+
+ (NSException *)qcloud_exceptionWithName:(NSExceptionName)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfo {
2828
NSException *exp = [self qcloud_exceptionWithName:name reason:reason userInfo:userInfo];
29-
[QualityDataUploader trackSDKExceptionWithException:exp];
29+
if ([name isEqualToString:QCloudErrorDomain]) {
30+
[QualityDataUploader trackSDKExceptionWithException:exp];
31+
}
3032
return exp;
31-
3233
}
3334

3435
@end

QCloudCOSXML/Classes/Base/QCloudAbstractRequest+Quality.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ + (void)exchangeImplementation {
2323
Method swizzedNotifyErrorMethod = class_getInstanceMethod(class, @selector(__quality__notifyError:));
2424
Method originNotifySuccessMethod = class_getInstanceMethod(class, @selector(__notifySuccess:));
2525
Method swizzedNotifySuccessMethod = class_getInstanceMethod(class, @selector(__quality__notifySuccess:));
26-
26+
2727
method_exchangeImplementations(originNotifyErrorMethod, swizzedNotifyErrorMethod);
2828
method_exchangeImplementations(originNotifySuccessMethod, swizzedNotifySuccessMethod);
2929
}

QCloudCOSXML/Classes/Base/QCloudLogManager.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#import <Foundation/Foundation.h>
99

1010
NS_ASSUME_NONNULL_BEGIN
11-
11+
@interface QCloudLogTableViewController : UIViewController
12+
- (instancetype)initWithLog:(NSArray *)logContent;
13+
@end
1214
/**
1315
QCloudCOSXML 日志管理类
1416
*/
@@ -18,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
1820
*/
1921
@property (nonatomic, assign) BOOL shouldShowLog;
2022
+ (instancetype)sharedInstance;
21-
23+
- (void)showLogs;
2224
/**
2325
已经产生的日志
2426
*/

QCloudCOSXML/Classes/Base/QCloudLogManager.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ - (void)viewDidAppear:(BOOL)animated {
5151
}
5252

5353
@end
54-
@interface QCloudLogTableViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>
54+
@interface QCloudLogTableViewController () <UITableViewDelegate, UITableViewDataSource>
5555
@property (nonatomic, strong) UITableView *tableView;
5656
@property (nonatomic, strong) NSArray *logsDirecotryArray;
57-
- (instancetype)initWithLog:(NSArray *)logContent;
5857
@end
5958

6059
@implementation QCloudLogTableViewController
@@ -146,7 +145,7 @@ - (void)onHandleDidFinishLaunching:(NSNotification *)notification {
146145
if ([currentPasteBoardContent isEqualToString:@"##qcloud-cos-log-ispct##"]) {
147146
[UIPasteboard generalPasteboard].string = @"";
148147
dispatch_async(dispatch_get_main_queue(), ^{
149-
[self showLogs];
148+
[self handleShowLogs];
150149
});
151150
}
152151
});
@@ -163,22 +162,22 @@ - (NSString *)readLog:(NSString *)path {
163162
return [[NSString alloc] initWithData:content encoding:NSUTF8StringEncoding];
164163
}
165164

166-
- (void)showLogs {
165+
- (void)handleShowLogs {
167166
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示"
168167
message:@"确定显示log"
169168
preferredStyle:UIAlertControllerStyleAlert];
170169
UIAlertAction *actionEnsure = [UIAlertAction actionWithTitle:@"确定"
171170
style:UIAlertActionStyleDestructive
172171
handler:^(UIAlertAction *action) {
173-
[self onHandleBeginShowlogs];
172+
[self showLogs];
174173
}];
175174
UIAlertAction *actionCancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:nil];
176175
[alertController addAction:actionEnsure];
177176
[alertController addAction:actionCancel];
178177
UIViewController *currentViewController = [self currentViewController];
179178
[currentViewController presentViewController:alertController animated:YES completion:nil];
180179
}
181-
- (void)onHandleBeginShowlogs {
180+
- (void)showLogs {
182181
NSArray *currentLogPath = [self currentLogs];
183182
UIViewController *currentViewController = [self currentViewController];
184183
QCloudLogTableViewController *tableViewController = [[QCloudLogTableViewController alloc] initWithLog:currentLogPath];

0 commit comments

Comments
 (0)