Skip to content

Commit fcc273c

Browse files
YangSen-qnYangSen-qn
andauthored
version to 8.9.2 (#456)
Co-authored-by: YangSen-qn <yangsen@qiniu.com>
1 parent e9c5a5e commit fcc273c

File tree

8 files changed

+89
-15
lines changed

8 files changed

+89
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#Changelog
2+
## 8.9.2 (2025-08-20)
3+
- 优化进度处理,处理用户进度处理耗时较长问题
4+
25
## 8.9.1 (2025-08-20)
3-
- 修复回调问题
6+
- 优化回调问题
47

58
## 8.9.0 (2025-06-12)
69
- 分片上传默认使用 V2 接口

Qiniu.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Qiniu'
3-
s.version = '8.9.1'
3+
s.version = '8.9.2'
44
s.summary = 'Qiniu Resource Storage SDK for iOS and Mac'
55
s.homepage = 'https://github.com/qiniu/objc-sdk'
66
s.social_media_url = 'http://weibo.com/qiniutek'

QiniuSDK.xcodeproj/project.pbxproj

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,7 @@
13651365
DF2CDDFB19DAC05500CE01FB /* Sources */,
13661366
DF2CDDFC19DAC05500CE01FB /* Frameworks */,
13671367
DF2CDDFD19DAC05500CE01FB /* Headers */,
1368+
B940B9ABDE4E592EBAA1F9E0 /* [CP] Copy Pods Resources */,
13681369
);
13691370
buildRules = (
13701371
);
@@ -1384,6 +1385,7 @@
13841385
DF2CDE0719DAC05500CE01FB /* Frameworks */,
13851386
DF2CDE0819DAC05500CE01FB /* Resources */,
13861387
45BDB3C72C045E8F00F184D7 /* Embed Libraries */,
1388+
76584E53BEB48A9FB97225EE /* [CP] Copy Pods Resources */,
13871389
);
13881390
buildRules = (
13891391
);
@@ -1421,6 +1423,7 @@
14211423
DF2CDE2019DAC08400CE01FB /* Sources */,
14221424
DF2CDE2119DAC08400CE01FB /* Frameworks */,
14231425
DF2CDE2219DAC08400CE01FB /* Resources */,
1426+
18F63637D3DB5A4B72E2ABEE /* [CP] Copy Pods Resources */,
14241427
);
14251428
buildRules = (
14261429
);
@@ -1518,6 +1521,24 @@
15181521
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";
15191522
showEnvVarsInLog = 0;
15201523
};
1524+
18F63637D3DB5A4B72E2ABEE /* [CP] Copy Pods Resources */ = {
1525+
isa = PBXShellScriptBuildPhase;
1526+
buildActionMask = 2147483647;
1527+
files = (
1528+
);
1529+
inputPaths = (
1530+
"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_iOSTests/Pods-QiniuSDK_iOSTests-resources.sh",
1531+
"${PODS_CONFIGURATION_BUILD_DIR}/HappyDNS-iOS/HappyDNS.privacy.bundle",
1532+
);
1533+
name = "[CP] Copy Pods Resources";
1534+
outputPaths = (
1535+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/HappyDNS.privacy.bundle",
1536+
);
1537+
runOnlyForDeploymentPostprocessing = 0;
1538+
shellPath = /bin/sh;
1539+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_iOSTests/Pods-QiniuSDK_iOSTests-resources.sh\"\n";
1540+
showEnvVarsInLog = 0;
1541+
};
15211542
31259E4A24E63BBB00CF7531 /* ShellScript */ = {
15221543
isa = PBXShellScriptBuildPhase;
15231544
buildActionMask = 2147483647;
@@ -1571,6 +1592,24 @@
15711592
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";
15721593
showEnvVarsInLog = 0;
15731594
};
1595+
76584E53BEB48A9FB97225EE /* [CP] Copy Pods Resources */ = {
1596+
isa = PBXShellScriptBuildPhase;
1597+
buildActionMask = 2147483647;
1598+
files = (
1599+
);
1600+
inputPaths = (
1601+
"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_MacTests/Pods-QiniuSDK_MacTests-resources.sh",
1602+
"${PODS_CONFIGURATION_BUILD_DIR}/HappyDNS-macOS/HappyDNS.privacy.bundle",
1603+
);
1604+
name = "[CP] Copy Pods Resources";
1605+
outputPaths = (
1606+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/HappyDNS.privacy.bundle",
1607+
);
1608+
runOnlyForDeploymentPostprocessing = 0;
1609+
shellPath = /bin/sh;
1610+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_MacTests/Pods-QiniuSDK_MacTests-resources.sh\"\n";
1611+
showEnvVarsInLog = 0;
1612+
};
15741613
9635BFBB21C34ACD5AEDC9EB /* [CP] Check Pods Manifest.lock */ = {
15751614
isa = PBXShellScriptBuildPhase;
15761615
buildActionMask = 2147483647;
@@ -1589,6 +1628,24 @@
15891628
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";
15901629
showEnvVarsInLog = 0;
15911630
};
1631+
B940B9ABDE4E592EBAA1F9E0 /* [CP] Copy Pods Resources */ = {
1632+
isa = PBXShellScriptBuildPhase;
1633+
buildActionMask = 2147483647;
1634+
files = (
1635+
);
1636+
inputPaths = (
1637+
"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_Mac/Pods-QiniuSDK_Mac-resources.sh",
1638+
"${PODS_CONFIGURATION_BUILD_DIR}/HappyDNS-macOS/HappyDNS.privacy.bundle",
1639+
);
1640+
name = "[CP] Copy Pods Resources";
1641+
outputPaths = (
1642+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/HappyDNS.privacy.bundle",
1643+
);
1644+
runOnlyForDeploymentPostprocessing = 0;
1645+
shellPath = /bin/sh;
1646+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QiniuSDK_Mac/Pods-QiniuSDK_Mac-resources.sh\"\n";
1647+
showEnvVarsInLog = 0;
1648+
};
15921649
/* End PBXShellScriptBuildPhase section */
15931650

15941651
/* Begin PBXSourcesBuildPhase section */

QiniuSDK/Storage/QNBaseUpload.m

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,18 @@ - (void)complete:(QNResponseInfo *)info
207207
[self.metrics addMetrics:self.currentRegionRequestMetrics];
208208
}
209209
if (self.completionHandler) {
210-
self.completionHandler(info, _key, _metrics, response);
210+
kQNWeakSelf;
211+
QNAsyncRunInMain(^{
212+
kQNStrongSelf;
213+
214+
if (self) {
215+
self.completionHandler(info, self.key, self.metrics, response);
216+
self.strongSelf = nil;
217+
}
218+
});
219+
} else {
220+
self.strongSelf = nil;
211221
}
212-
self.strongSelf = nil;
213222
}
214223

215224
//MARK:-- region

QiniuSDK/Storage/QNUpProgress.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ - (void)notify:(NSString *)key uploadBytes:(long long)uploadBytes totalBytes:(lo
7070
kQNWeakSelf;
7171
QNAsyncRunInMain(^{
7272
kQNStrongSelf;
73-
self.byteProgress(key, uploadBytes, totalBytes);
73+
74+
if (self && self.byteProgress) {
75+
self.byteProgress(key, uploadBytes, totalBytes);
76+
}
7477
});
7578
return;
7679
}
@@ -83,8 +86,11 @@ - (void)notify:(NSString *)key uploadBytes:(long long)uploadBytes totalBytes:(lo
8386
kQNWeakSelf;
8487
QNAsyncRunInMain(^{
8588
kQNStrongSelf;
86-
double notifyPercent = (double) uploadBytes / (double) totalBytes;
87-
self.progress(key, notifyPercent);
89+
90+
if (self && self.progress) {
91+
double notifyPercent = (double) uploadBytes / (double) totalBytes;
92+
self.progress(key, notifyPercent);
93+
}
8894
});
8995
}
9096
}

QiniuSDK/Storage/QNUploadManager.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,10 @@ + (void)complete:(NSString *)token
445445

446446
[QNUploadManager reportQuality:key source:source responseInfo:responseInfo taskMetrics:taskMetrics token:token];
447447

448-
QNAsyncRunInMain(^{
449-
if (completionHandler) {
450-
completionHandler(responseInfo, key, response);
451-
}
452-
});
448+
449+
if (completionHandler) {
450+
completionHandler(responseInfo, key, response);
451+
}
453452
}
454453

455454

QiniuSDK/Utils/QNVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
/**
1212
* sdk 版本
1313
*/
14-
static NSString *const kQiniuVersion = @"8.9.1";
14+
static NSString *const kQiniuVersion = @"8.9.2";

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
通过 CocoaPods
1515

1616
```ruby
17-
pod "Qiniu", "~> 8.9.1"
17+
pod "Qiniu", "~> 8.9.2"
1818
```
1919

2020
通过 Swift Package Manager (Xcode 11+)
@@ -26,7 +26,7 @@ File -> Swift Packages -> Add Package Dependency,输入库链接,选择相
2626
库对接:
2727
let package = Package(
2828
dependencies: [
29-
.package(url: "https://github.com/qiniu/objc-sdk", from: "8.9.1")
29+
.package(url: "https://github.com/qiniu/objc-sdk", from: "8.9.2")
3030
],
3131
// ...
3232
)

0 commit comments

Comments
 (0)