Skip to content

Commit c247e20

Browse files
author
garenwang
committed
6.4.6
1 parent 5b1db4a commit c247e20

File tree

128 files changed

+5314
-124
lines changed

Some content is hidden

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

128 files changed

+5314
-124
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# 6.4.6
2+
支持自定义网络
3+
14
# 6.4.5
2-
1、安全漏洞修复
5+
1、修复安全漏洞
36

47
# 6.4.4
58
1、增加上传接口取消时类型保护
@@ -12,6 +15,7 @@
1215

1316
# 6.4.1
1417
1、支持cos请求使用单临时秘钥。2、新增元数据接口。3、修复一直问题。
18+
1519

1620
# 6.4.0
1721
1、修改getBucket接口漏洞

Podfile.lock

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
PODS:
22
- GMOpenSSL (2.2.9)
3-
- QCloudCore (6.4.5):
4-
- QCloudCore/Default (= 6.4.5)
5-
- QCloudCore/Default (6.4.5):
6-
- QCloudTrack/Beacon (= 6.4.5)
7-
- QCloudCOSXML (6.4.5):
8-
- QCloudCOSXML/Default (= 6.4.5)
9-
- QCloudCOSXML/Default (6.4.5):
10-
- QCloudCore (= 6.4.5)
11-
- QCloudQuic (6.3.9):
12-
- QCloudQuic/Default (= 6.3.9)
13-
- QCloudQuic/Default (6.3.9)
14-
- QCloudTrack (6.4.5):
15-
- QCloudTrack/Default (= 6.4.5)
16-
- QCloudTrack/Beacon (6.4.5)
17-
- QCloudTrack/Cls (6.4.5):
3+
- QCloudCore (6.4.6):
4+
- QCloudCore/Default (= 6.4.6)
5+
- QCloudCore/Default (6.4.6):
6+
- QCloudTrack/Beacon (= 6.4.6)
7+
- QCloudCOSXML (6.4.6):
8+
- QCloudCOSXML/Default (= 6.4.6)
9+
- QCloudCOSXML/Default (6.4.6):
10+
- QCloudCore (= 6.4.6)
11+
- QCloudQuic (6.4.1):
12+
- QCloudQuic/Default (= 6.4.1)
13+
- QCloudQuic/Default (6.4.1)
14+
- QCloudTrack (6.4.6):
15+
- QCloudTrack/Default (= 6.4.6)
16+
- QCloudTrack/Beacon (6.4.6)
17+
- QCloudTrack/Cls (6.4.6):
1818
- TencentCloudLogProducer
19-
- QCloudTrack/Default (6.4.5)
19+
- QCloudTrack/Default (6.4.6)
2020
- TencentCloudLogProducer (1.1.1):
2121
- TencentCloudLogProducer/Core (= 1.1.1)
2222
- TencentCloudLogProducer/Core (1.1.1):
@@ -47,10 +47,10 @@ EXTERNAL SOURCES:
4747

4848
SPEC CHECKSUMS:
4949
GMOpenSSL: d6d119ff8f00d4e03c2cdf733fb61e98e22da9c7
50-
QCloudCore: a1c543624fe34c5e98c92b7faf421a23f57ad5e3
51-
QCloudCOSXML: 8185a7a51c7dce6ff1a25c725907f6beb270cd01
52-
QCloudQuic: 81e2c29fa8122c1d5e8323a90349683e52c8e101
53-
QCloudTrack: 6bf7aaa7e870d72fb4c9c88455dc63c7c65073b7
50+
QCloudCore: de90acb39acb50296e83429bb8b7e6f133234f2b
51+
QCloudCOSXML: 2b34890eab32d3799a1ada7e6ed736443d84027e
52+
QCloudQuic: a4f2405ccaedde33c36420d4225436b80bd5bf67
53+
QCloudTrack: 86264169809cfc4a611eb918d165c39737914d9c
5454
TencentCloudLogProducer: 564e944491e6396c81df4c9c51470784752ff3ab
5555

5656
PODFILE CHECKSUM: 469848875513aa1180afa1e3751e2d873841a154

QCloudCOSXML.podspec

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
33

44

5-
s.version = "6.4.5"
5+
s.version = "6.4.6"
66

77

88
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
@@ -13,29 +13,29 @@ s.version = "6.4.5"
1313
s.source = { :git => "https://github.com/tencentyun/qcloud-sdk-ios.git", :tag => s.version.to_s }
1414
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
1515
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
16-
s.ios.deployment_target = '9.0'
16+
s.ios.deployment_target = '10.0'
1717
s.osx.deployment_target = "10.12"
1818
s.resource_bundles = {'QCloudCOSXML' => ['QCloudCOSXML/PrivacyInfo.xcprivacy']}
1919
s.static_framework = true
2020
s.default_subspec = 'Default'
2121
s.subspec 'Default' do |default|
2222
default.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
23-
default.dependency "QCloudCore",'6.4.5'
23+
default.dependency "QCloudCore",'6.4.6'
2424
end
2525
s.subspec 'Slim' do |slim|
2626
slim.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
27-
slim.dependency "QCloudCore/WithoutMTA",'6.4.5'
27+
slim.dependency "QCloudCore/WithoutMTA",'6.4.6'
2828
end
2929
s.subspec 'Transfer' do |transfer|
3030
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
31-
transfer.dependency "QCloudCore/WithoutMTA",'6.4.5'
31+
transfer.dependency "QCloudCore/WithoutMTA",'6.4.6'
3232

3333
end
3434

3535
s.subspec 'Widget' do |widget|
3636
widget.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
3737
widget.exclude_files = 'QCloudCOSXML/Classes/Base/QCloudLogManager.h','QCloudCOSXML/Classes/Base/QCloudLogManager.m'
38-
widget.dependency "QCloudCore/WithoutMTA",'6.4.5'
38+
widget.dependency "QCloudCore/WithoutMTA",'6.4.6'
3939
end
4040

4141
end

QCloudCOSXML/Classes/QCloudCOSXMLVersion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#ifndef QCloudCOSXMLModuleVersion_h
77
#define QCloudCOSXMLModuleVersion_h
8-
#define QCloudCOSXMLModuleVersionNumber 604005
8+
#define QCloudCOSXMLModuleVersionNumber 604006
99

1010
//dependency
1111

QCloudCOSXML/Classes/QCloudCOSXMLVersion.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "QCloudCOSXMLVersion.h"
2-
NSString * const QCloudCOSXMLModuleVersion = @"6.4.5";
2+
NSString * const QCloudCOSXMLModuleVersion = @"6.4.6";
33
NSString * const QCloudCOSXMLModuleName = @"QCloudCOSXML";
44
@interface QCloudQCloudCOSXMLLoad : NSObject
55
@end

QCloudCOSXMLDemo.xcodeproj/project.pbxproj

+15-15
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@
464464
1AB143E91E601E0500830F93 /* Frameworks */,
465465
1AB143EA1E601E0500830F93 /* Resources */,
466466
5531753F06D2602A23691AE3 /* [CP] Copy Pods Resources */,
467-
905E623E0EDCB9F5095F7201 /* [CP] Embed Pods Frameworks */,
467+
FDACDAA5AF79CC2945E84754 /* [CP] Embed Pods Frameworks */,
468468
);
469469
buildRules = (
470470
);
@@ -601,40 +601,40 @@
601601
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QCloudCOSXMLDemo/Pods-QCloudCOSXMLDemo-resources.sh\"\n";
602602
showEnvVarsInLog = 0;
603603
};
604-
905E623E0EDCB9F5095F7201 /* [CP] Embed Pods Frameworks */ = {
604+
9985684AE5A7F7B42D827A19 /* [CP] Check Pods Manifest.lock */ = {
605605
isa = PBXShellScriptBuildPhase;
606606
buildActionMask = 2147483647;
607607
files = (
608608
);
609609
inputPaths = (
610-
"${PODS_ROOT}/Target Support Files/Pods-QCloudCOSXMLDemo/Pods-QCloudCOSXMLDemo-frameworks.sh",
611-
"${PODS_ROOT}/../QCloudQuic/Classes/QuicFramework/Tquic.framework",
610+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
611+
"${PODS_ROOT}/Manifest.lock",
612612
);
613-
name = "[CP] Embed Pods Frameworks";
613+
name = "[CP] Check Pods Manifest.lock";
614614
outputPaths = (
615-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Tquic.framework",
615+
"$(DERIVED_FILE_DIR)/Pods-QCloudCOSXMLDemo-checkManifestLockResult.txt",
616616
);
617617
runOnlyForDeploymentPostprocessing = 0;
618618
shellPath = /bin/sh;
619-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QCloudCOSXMLDemo/Pods-QCloudCOSXMLDemo-frameworks.sh\"\n";
619+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
620620
showEnvVarsInLog = 0;
621621
};
622-
9985684AE5A7F7B42D827A19 /* [CP] Check Pods Manifest.lock */ = {
622+
FDACDAA5AF79CC2945E84754 /* [CP] Embed Pods Frameworks */ = {
623623
isa = PBXShellScriptBuildPhase;
624624
buildActionMask = 2147483647;
625625
files = (
626626
);
627627
inputPaths = (
628-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
629-
"${PODS_ROOT}/Manifest.lock",
628+
"${PODS_ROOT}/Target Support Files/Pods-QCloudCOSXMLDemo/Pods-QCloudCOSXMLDemo-frameworks.sh",
629+
"${PODS_ROOT}/../QCloudQuic/Classes/QuicFramework/Tquic.framework",
630630
);
631-
name = "[CP] Check Pods Manifest.lock";
631+
name = "[CP] Embed Pods Frameworks";
632632
outputPaths = (
633-
"$(DERIVED_FILE_DIR)/Pods-QCloudCOSXMLDemo-checkManifestLockResult.txt",
633+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Tquic.framework",
634634
);
635635
runOnlyForDeploymentPostprocessing = 0;
636636
shellPath = /bin/sh;
637-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
637+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QCloudCOSXMLDemo/Pods-QCloudCOSXMLDemo-frameworks.sh\"\n";
638638
showEnvVarsInLog = 0;
639639
};
640640
/* End PBXShellScriptBuildPhase section */
@@ -821,7 +821,7 @@
821821
GCC_PRECOMPILE_PREFIX_HEADER = YES;
822822
GCC_PREFIX_HEADER = "$(SRCROOT)/QCloudCOSXMLDemo/PrefixHeader.pch";
823823
INFOPLIST_FILE = QCloudCOSXMLDemo/Info.plist;
824-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
824+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
825825
LD_RUNPATH_SEARCH_PATHS = (
826826
"$(inherited)",
827827
"@executable_path/Frameworks",
@@ -849,7 +849,7 @@
849849
GCC_PRECOMPILE_PREFIX_HEADER = YES;
850850
GCC_PREFIX_HEADER = "$(SRCROOT)/QCloudCOSXMLDemo/PrefixHeader.pch";
851851
INFOPLIST_FILE = QCloudCOSXMLDemo/Info.plist;
852-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
852+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
853853
LD_RUNPATH_SEARCH_PATHS = (
854854
"$(inherited)",
855855
"@executable_path/Frameworks",

QCloudCore.podspec

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.name = "QCloudCore"
1111

1212

13-
s.version = "6.4.5"
13+
s.version = "6.4.6"
1414

1515

1616

@@ -34,27 +34,27 @@ QCloudCore--腾讯云iOS-SDK Foundation。提供腾讯云iOS相关SDK的基础
3434
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
3535
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
3636
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
37-
s.ios.deployment_target = '9.0'
37+
s.ios.deployment_target = '10.0'
3838
s.osx.deployment_target = "10.12"
3939
s.frameworks ='CoreMedia', "Accelerate", "SystemConfiguration"
4040
s.libraries = "z","c++"
4141
s.static_framework = true
4242
s.default_subspec = 'Default'
4343
s.subspec 'Default' do |default|
44-
default.ios.deployment_target = '9.0'
44+
default.ios.deployment_target = '10.0'
4545
default.osx.deployment_target = "10.12"
4646
default.source_files = 'QCloudCore/Classes/Base/**/*'
47-
default.dependency "QCloudTrack/Beacon","6.4.5"
47+
default.dependency "QCloudTrack/Beacon","6.4.6"
4848
end
4949

5050
s.subspec 'WithoutMTA' do |withoutMTA|
51-
withoutMTA.ios.deployment_target = '9.0'
51+
withoutMTA.ios.deployment_target = '10.0'
5252
withoutMTA.osx.deployment_target = "10.12"
5353
withoutMTA.source_files = 'QCloudCore/Classes/Base/**/*'
5454
end
5555

5656
s.subspec 'DNSLoader' do |tdns|
57-
tdns.ios.deployment_target = '9.0'
57+
tdns.ios.deployment_target = '10.0'
5858
tdns.dependency "MSDKDns_C11";
5959
tdns.dependency "QCloudCore/WithoutMTA";
6060
tdns.source_files = 'QCloudCore/Classes/DNSLoader/*';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// QCloudCustomLoader.h
3+
// Pods
4+
//
5+
// Created by garenwang on 2024/12/30.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
#import "QCloudCustomSession.h"
10+
#import "QCloudCustomLoaderTask.h"
11+
#import "QCloudHTTPRequest.h"
12+
NS_ASSUME_NONNULL_BEGIN
13+
14+
@protocol QCloudCustomLoader <NSObject>
15+
16+
-(QCloudCustomSession *)session;
17+
18+
-(BOOL)enable:(QCloudHTTPRequest *)httpRequest;
19+
20+
@end
21+
22+
NS_ASSUME_NONNULL_END
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// QCloudCustomLoaderTask.h
3+
// Pods-QCloudCOSXMLDemo
4+
//
5+
// Created by garenwang on 2024/12/26.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
@class QCloudCustomSession;
10+
NS_ASSUME_NONNULL_BEGIN
11+
12+
@interface QCloudCustomLoaderTask : NSURLSessionDataTask
13+
14+
@property (nullable, readwrite, copy) NSHTTPURLResponse *response;
15+
@property (nullable, readwrite, copy) NSURLRequest *currentRequest;
16+
@property (nullable, readwrite, copy) NSURLRequest *originalRequest;
17+
18+
/// 子类实现,用于构建自定义task。
19+
/// - Parameters:
20+
/// - httpRequest: SDK 构建好的 NSMutableURLRequest示例对象。
21+
/// - fromFile: 上传文件的本地路径,只有上传文件格式为文件路径时才有值。
22+
/// - session: 自定义session ,QCloudCustomSession的子类实例。
23+
- (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
24+
fromFile:(NSURL *)fromFile
25+
session:(QCloudCustomSession *)session;
26+
27+
/// 子类实现,用于开启任务。
28+
-(void)resume;
29+
30+
/// 子类实现,用于取消当前任务。
31+
- (void)cancel;
32+
@end
33+
34+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// QCloudCustomLoaderTask.m
3+
// Pods-QCloudCOSXMLDemo
4+
//
5+
// Created by garenwang on 2024/12/26.
6+
//
7+
8+
#import "QCloudCustomLoaderTask.h"
9+
#import "QCloudCustomSession.h"
10+
#import "QCloudError.h"
11+
12+
@interface QCloudCustomLoaderTask ()
13+
@property (nonatomic,strong)NSMutableURLRequest * httpRequest;
14+
@property (nonatomic,strong)QCloudCustomSession * session;
15+
@end
16+
17+
@implementation QCloudCustomLoaderTask
18+
@synthesize response = _response;
19+
@synthesize originalRequest = _originalRequest;
20+
@synthesize currentRequest = _currentRequest;
21+
22+
23+
- (instancetype)initWithHTTPRequest:(NSMutableURLRequest *)httpRequest
24+
fromFile:(NSURL *)fromFile
25+
session:(QCloudCustomSession *)session{
26+
@throw [NSException exceptionWithName:QCloudErrorDomain reason:@"请在子类中实现" userInfo:nil];
27+
}
28+
29+
-(void)resume{
30+
@throw [NSException exceptionWithName:QCloudErrorDomain reason:@"请在子类中实现" userInfo:nil];
31+
}
32+
- (void)cancel{
33+
@throw [NSException exceptionWithName:QCloudErrorDomain reason:@"请在子类中实现" userInfo:nil];
34+
}
35+
@end

0 commit comments

Comments
 (0)