Skip to content

Commit 2ceb411

Browse files
author
erichmzhang
committed
# 5.4.0
- 修复了iOS8上面首次上传失败的问题 - 修复了反复多次调用分块复制接口会Crash的问题
1 parent 927264f commit 2ceb411

File tree

9 files changed

+28
-24
lines changed

9 files changed

+28
-24
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.4.0
2+
- 修复了iOS8上面首次上传失败的问题
3+
- 修复了反复多次调用分块复制接口会Crash的问题
4+
15
# 5.3.4
26
- 修复了 GetBucket 时,无法正确获得 Common Prefix 的 BUG。
37

QCloudCOSXML.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
3-
s.version = "5.3.4"
3+
s.version = "5.4.0"
44
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
55

66
s.homepage = "https://cloud.tencent.com/"
@@ -9,10 +9,10 @@ s.version = "5.3.4"
99
s.source = { :git => "https://github.com/tencentyun/qcloud-sdk-ios.git", :tag => s.version.to_s }
1010
s.ios.deployment_target = '8.0'
1111
s.source_files = 'QCloudCOSXML/Classes/**/*'
12-
s.dependency "QCloudCore",'5.3.4'
12+
s.dependency "QCloudCore",'5.4.0'
1313

1414
s.subspec 'Transfer' do |sbt|
1515
sbt.source_files = 'QCloudCOSXML/Classes/Transfer/*','QCloudCOSXML/Classes/Base/*'
16-
sbt.dependency "QCloudCore",'5.3.4'
16+
sbt.dependency "QCloudCore",'5.4.0'
1717
end
1818
end

QCloudCOSXML/Classes/QCloudCOSXMLVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
#ifndef QCloudCOSXMLModuleVersion_h
88
#define QCloudCOSXMLModuleVersion_h
9-
#define QCloudCOSXMLModuleVersionNumber 503004
9+
#define QCloudCOSXMLModuleVersionNumber 504000
1010

1111
//dependency
12-
#if QCloudCoreModuleVersionNumber != 503004
13-
#error "库QCloudCOSXML依赖QCloudCore最小版本号为5.3.4,当前引入的QCloudCore版本号过低,请及时升级后使用"
12+
#if QCloudCoreModuleVersionNumber != 504000
13+
#error "库QCloudCOSXML依赖QCloudCore最小版本号为5.4.0,当前引入的QCloudCore版本号过低,请及时升级后使用"
1414
#endif
1515

1616
//

QCloudCOSXML/Classes/QCloudCOSXMLVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "QCloudCOSXMLVersion.h"
2-
NSString * const QCloudCOSXMLModuleVersion = @"5.3.4";
2+
NSString * const QCloudCOSXMLModuleVersion = @"5.4.0";
33
NSString * const QCloudCOSXMLModuleName = @"QCloudCOSXML";
44
@interface QCloudQCloudCOSXMLLoad : NSObject
55
@end

QCloudCOSXML/Classes/Transfer/QCloudCOSXMLCopyObjectRequest.m

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,20 @@ - (void)finishUploadParts {
213213
}
214214

215215
- (QCloudCOSXMLService*)tempService {
216-
QCloudServiceConfiguration* configuration = [QCloudServiceConfiguration new];
217-
configuration.signatureProvider = self.transferManager.configuration.signatureProvider;
218-
configuration.appID = self.sourceAPPID;
219-
QCloudCOSXMLEndPoint* endpoint = [[QCloudCOSXMLEndPoint alloc] init];
220-
endpoint.regionName = self.sourceRegion;
221-
endpoint.serviceName = self.transferManager.configuration.endpoint.serviceName;
222-
endpoint.useHTTPS = self.transferManager.configuration.endpoint.useHTTPS;
223-
configuration.endpoint = endpoint;
224-
return [QCloudCOSXMLService registerCOSXMLWithConfiguration:configuration withKey:kTempServiceKey];
216+
static dispatch_once_t onceToken;
217+
static QCloudCOSXMLService* service ;
218+
dispatch_once(&onceToken, ^{
219+
QCloudServiceConfiguration* configuration = [QCloudServiceConfiguration new];
220+
configuration.signatureProvider = self.transferManager.configuration.signatureProvider;
221+
configuration.appID = self.sourceAPPID;
222+
QCloudCOSXMLEndPoint* endpoint = [[QCloudCOSXMLEndPoint alloc] init];
223+
endpoint.regionName = self.sourceRegion;
224+
endpoint.serviceName = self.transferManager.configuration.endpoint.serviceName;
225+
endpoint.useHTTPS = self.transferManager.configuration.endpoint.useHTTPS;
226+
configuration.endpoint = endpoint;
227+
service = [QCloudCOSXMLService registerCOSXMLWithConfiguration:configuration withKey:kTempServiceKey];
228+
});
229+
return service;
225230
}
226231

227232
- (void) setFinishBlock:(void (^)(QCloudCopyObjectResult* result, NSError * error))QCloudRequestFinishBlock {

QCloudCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "QCloudCore"
11-
s.version = "5.3.4"
11+
s.version = "5.4.0"
1212
s.summary = "QCloudCore--腾讯云iOS-SDK Foundation"
1313

1414
# This description is used to generate tags and improve search results.

QCloudCore/Classes/QCLOUDRestNet/SessionSupport/QCloudHTTPSessionManager.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,6 @@ - (void) cancelAllRequest
356356
- (void) executeRestHTTPReqeust:(QCloudHTTPRequest*)httpRequest
357357
{
358358
[httpRequest willStart];
359-
if (![[QCloudNetEnv shareEnv] isReachable] ) {
360-
NSError* nonetwork = [NSError qcloud_errorWithCode:QCloudNetworkErrorCodeNoNetwork message:@"当前无网络连接"] ;
361-
[httpRequest onError:nonetwork];
362-
return;
363-
}
364359
NSError* error;
365360
NSMutableURLRequest* urlRequest = [[httpRequest buildURLRequest:&error] mutableCopy];
366361
if (error) {

QCloudCore/Classes/QCloudCoreVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#ifndef QCloudCoreModuleVersion_h
77
#define QCloudCoreModuleVersion_h
8-
#define QCloudCoreModuleVersionNumber 503004
8+
#define QCloudCoreModuleVersionNumber 504000
99

1010
//dependency
1111

QCloudCore/Classes/QCloudCoreVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "QCloudCoreVersion.h"
2-
NSString * const QCloudCoreModuleVersion = @"5.3.4";
2+
NSString * const QCloudCoreModuleVersion = @"5.4.0";
33
NSString * const QCloudCoreModuleName = @"QCloudCore";
44
@interface QCloudQCloudCoreLoad : NSObject
55
@end

0 commit comments

Comments
 (0)