Skip to content

Commit 9e9e134

Browse files
author
karisli
committed
# 5.7.2
偶现crash的问题\ - 修复了生成预签名链接接口在临时密钥时没有返回token参数的问题\ - 修复分片个数大于10000上传失败的问题\ - 修复分片上传时在等complete的response的时候点击了取消,再次续传会404的问题\ - 增加同步接口
1 parent b788693 commit 9e9e134

File tree

53 files changed

+2491
-74
lines changed

Some content is hidden

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

53 files changed

+2491
-74
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 5.7.2
2+
偶现crash的问题\ - 修复了生成预签名链接接口在临时密钥时没有返回token参数的问题\ - 修复分片个数大于10000上传失败的问题\ - 修复分片上传时在等complete的response的时候点击了取消,再次续传会404的问题\ - 增加同步接口
3+
14
# 5.7.1
25
- 读取剪贴板卡死
36
- 多次注册service的问题

QCloudCOSXML.podspec

Lines changed: 4 additions & 4 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.7.1"
4+
s.version = "5.7.2"
55

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

@@ -17,15 +17,15 @@ s.version = "5.7.1"
1717
s.default_subspec = 'Default'
1818
s.subspec 'Default' do |default|
1919
default.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
20-
default.dependency "QCloudCore",'5.7.1'
20+
default.dependency "QCloudCore",'5.7.2'
2121
end
2222
s.subspec 'Slim' do |slim|
2323
slim.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
24-
slim.dependency "QCloudCore/WithoutMTA"
24+
slim.dependency "QCloudCore/WithoutMTA",'5.7.2'
2525
end
2626
s.subspec 'Transfer' do |transfer|
2727
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/*'
28-
transfer.dependency "QCloudCore/WithoutMTA"
28+
transfer.dependency "QCloudCore/WithoutMTA",'5.7.2'
2929
end
3030

3131
end

QCloudCOSXML/Classes/Base/QCloudCOSXMLEndPoint.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
服务的基础名称, 默认值为: myqcloud.com
2121
*/
2222
@property (nonatomic, copy) QCloudServiceName serviceName;
23+
24+
/**
25+
自定义域名:http://bucketname.suffix
26+
*/
2327
@property (nonatomic, copy) NSString *suffix;
2428
@end
2529

QCloudCOSXML/Classes/Base/QCloudCOSXMLService.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ NS_ASSUME_NONNULL_BEGIN
3737
- (int) performRequest:(QCloudBizHTTPRequest *)httpRequst isHaveBody:(BOOL)body withFinishBlock:(QCloudRequestFinishBlock)block NS_UNAVAILABLE;
3838

3939
#pragma Factory
40+
/**
41+
获取默认的cosxml服务
42+
*/
4043
+ (QCloudCOSXMLService*) defaultCOSXML;
44+
45+
/// 获取指定key的cosxml服务
46+
/// @param key 要获取的cosxml服务对应的key
4147
+ (QCloudCOSXMLService*) cosxmlServiceForKey:(NSString*)key;
4248
#pragma hidden super selectors
4349
/**
@@ -48,8 +54,16 @@ NS_ASSUME_NONNULL_BEGIN
4854
4955
*/
5056
+ (BOOL) hasServiceForKey:(NSString*)key;
57+
58+
/// 注册默认的cosxml服务
59+
/// @param configuration cosxml服务对应的配置信息,一旦配置之后无法修改
5160
+ (QCloudCOSXMLService*) registerDefaultCOSXMLWithConfiguration:(QCloudServiceConfiguration*)configuration;
61+
62+
/// 注册特定key的cosxml服务
63+
/// @param configuration cosxml对应的配置信息
64+
/// @param key 该cosxml对应的key
5265
+ (QCloudCOSXMLService*) registerCOSXMLWithConfiguration:(QCloudServiceConfiguration*)configuration withKey:(NSString*)key;
66+
5367
+ (void) removeCOSXMLWithKey:(NSString*)key;
5468

5569
/**

QCloudCOSXML/Classes/Base/QCloudLogManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
1111

1212
@interface QCloudLogManager : NSObject
1313
+ (instancetype) sharedInstance;
14+
1415
- (NSArray *)currentLogs;
1516
- (NSString *) readLog:(NSString *)path;
1617
@end

QCloudCOSXML/Classes/Base/QCloudLogManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ - (void) onHandleAppBecomeActive :(NSNotification *)notification {
138138
//
139139
NSString *currentPasteBoardContent = [UIPasteboard generalPasteboard].string;
140140
if ([currentPasteBoardContent isEqualToString:@"##qcloud-cos-log-ispct##"]) {
141-
dispatch_async(dispatch_get_main_queue(), ^{
142-
[UIPasteboard generalPasteboard].string = @"";
141+
[UIPasteboard generalPasteboard].string = @"";
142+
dispatch_async(dispatch_get_main_queue(), ^{
143143
[self showLogs];
144144
});
145145

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// QCloudRequestProgress.h
3+
// QCloudRequestProgress
4+
//
5+
// Created by tencent
6+
// Copyright (c) 2015年 tencent. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
12+
NS_ASSUME_NONNULL_BEGIN
13+
@interface QCloudRequestProgress : NSObject
14+
@property (strong, nonatomic) NSString *enabled;
15+
@end
16+
NS_ASSUME_NONNULL_END
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
//
2+
// QCloudRequestProgress.m
3+
// QCloudRequestProgress
4+
//
5+
// Created by tencent
6+
// Copyright (c) 2015年 tencent. All rights reserved.
7+
//
8+
// ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██████╗
9+
// ██╔═══██╗██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ ██╔══██╗██╔══██╗
10+
// ██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ███████║██████╔╝
11+
// ██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ██╔══██║██╔══██╗
12+
// ╚██████╔╝╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ███████╗██║ ██║██████╔╝
13+
// ╚══▀▀═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
14+
//
15+
//
16+
// _ __ _ _
17+
// (_) / _| | | | |
18+
// ___ ___ _ ____ ___ ___ ___ | |_ ___ _ __ __| | _____ _____| | ___ _ __ ___ _ __ ___
19+
// / __|/ _ \ '__\ \ / / |/ __/ _ \ | _/ _ \| '__| / _` |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \ '__/ __|
20+
// \__ \ __/ | \ V /| | (_| __/ | || (_) | | | (_| | __/\ V / __/ | (_) | |_) | __/ | \__
21+
// |___/\___|_| \_/ |_|\___\___| |_| \___/|_| \__,_|\___| \_/ \___|_|\___/| .__/ \___|_| |___/
22+
// ______ ______ ______ ______ ______ ______ ______ ______ | |
23+
// |______|______|______|______|______|______|______|______| |_|
24+
//
25+
26+
27+
#import "QCloudRequestProgress.h"
28+
29+
30+
31+
NS_ASSUME_NONNULL_BEGIN
32+
@implementation QCloudRequestProgress
33+
34+
35+
36+
+ (NSDictionary *)modelCustomPropertyMapper
37+
{
38+
return @{
39+
@"enabled" :@"Enabled",
40+
};
41+
}
42+
43+
44+
- (BOOL)modelCustomTransformToDictionary:(NSMutableDictionary *)dic
45+
{
46+
47+
48+
return YES;
49+
}
50+
51+
- (NSDictionary *)modelCustomWillTransformFromDictionary:(NSDictionary *)dic
52+
{
53+
if (!dic) {
54+
return dic;
55+
}
56+
NSMutableDictionary* transfromDic = [NSMutableDictionary dictionaryWithDictionary:dic];
57+
58+
return transfromDic;
59+
}
60+
61+
@end
62+
63+
64+
NS_ASSUME_NONNULL_END

QCloudCOSXML/Classes/Manager/model/QCloudDeleteResult.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ NS_ASSUME_NONNULL_BEGIN
3535
存放被删除对象信息的数组
3636
*/
3737
@property (strong, nonatomic) NSArray<QCloudDeleteResultRow*> *deletedObjects;
38+
@property (strong, nonatomic) NSArray<QCloudDeleteFailedResultRow*> *deletedFailedObjects;
3839
@end
3940
NS_ASSUME_NONNULL_END

QCloudCOSXML/Classes/Manager/model/QCloudDeleteResult.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ + (NSDictionary *)modelContainerPropertyGenericClass
3636
{
3737
return @ {
3838
@"deletedObjects":[QCloudDeleteResultRow class],
39+
@"deletedFailedObjects":[QCloudDeleteFailedResultRow class],
3940
};
4041
}
4142

@@ -44,14 +45,13 @@ + (NSDictionary *)modelCustomPropertyMapper
4445
{
4546
return @{
4647
@"deletedObjects" :@"Deleted",
48+
@"deletedFailedObjects" :@"Error",
4749
};
4850
}
4951

5052

5153
- (BOOL)modelCustomTransformToDictionary:(NSMutableDictionary *)dic
5254
{
53-
54-
5555
return YES;
5656
}
5757

@@ -63,6 +63,7 @@ - (NSDictionary *)modelCustomWillTransformFromDictionary:(NSDictionary *)dic
6363
NSMutableDictionary* transfromDic = [NSMutableDictionary dictionaryWithDictionary:dic];
6464
NSArray* transformArrayKeypaths = @[
6565
@"Deleted",
66+
@"Error",
6667
];
6768

6869
for (NSString* keyPath in transformArrayKeypaths) {

0 commit comments

Comments
 (0)