Skip to content

Commit 477119b

Browse files
committed
Merge pull request #98 from qiniu/develop
Release 6.3.2
2 parents a228567 + d13e53f commit 477119b

File tree

5 files changed

+56
-3
lines changed

5 files changed

+56
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## CHANGE LOG
22

3+
### v6.3.2
4+
5+
- [#94] 上传进度指示调整
6+
37
### v6.3.1
48

59
- [#81] uploadfiledatawithoutkey

Qiniu.podspec

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'Qiniu'
3+
s.version = '6.3.2'
4+
s.summary = 'Qiniu Resource Storage SDK for iOS'
5+
s.homepage = 'https://github.com/qiniu/ios-sdk'
6+
s.social_media_url = 'http://weibo.com/qiniutek'
7+
s.author = 'Qiniu => [email protected]'
8+
s.documentation_url = 'http://developer.qiniu.com/docs/v6/sdk/ios-sdk.html'
9+
s.source = {:git => 'https://github.com/qiniu/ios-sdk.git', :tag => 'v6.3.2'}
10+
11+
s.platform = :ios, '6.0'
12+
s.ios.deployment_target = '6.0'
13+
14+
s.source_files = 'QiniuSDK/**/*.{h,m}'
15+
s.requires_arc = true
16+
17+
s.license = { :type => 'MIT', :text => <<-LICENSE
18+
The MIT License (MIT)
19+
20+
Copyright (c) 2012-2014 qiniu.com
21+
22+
Permission is hereby granted, free of charge, to any person obtaining a copy
23+
of this software and associated documentation files (the "Software"), to deal
24+
in the Software without restriction, including without limitation the rights
25+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26+
copies of the Software, and to permit persons to whom the Software is
27+
furnished to do so, subject to the following conditions:
28+
29+
The above copyright notice and this permission notice shall be included in
30+
all copies or substantial portions of the Software.
31+
32+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38+
THE SOFTWARE.
39+
LICENSE
40+
}
41+
42+
end

QiniuSDK/QiniuConfig.h

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

1010
#define kQiniuUndefinedKey @"?"
1111

12-
#define kQiniuVersion @"6.3.1"
12+
#define kQiniuVersion @"6.3.2"
1313

1414
#define kQiniuUpHostsLast 1
1515
NSString *kQiniuUpHosts[kQiniuUpHostsLast+1];

QiniuSDK/QiniuResumableClient.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ - (void)mkfile:(NSString *)key
207207

208208
QNCompleteBlock success = ^(AFHTTPRequestOperation *operation, id responseObject)
209209
{
210+
if (progressBlock != nil) {
211+
progressBlock(1);
212+
}
210213
complete(operation, nil);
211214
};
212215
QNCompleteBlock failure = ^(AFHTTPRequestOperation *operation, NSError *error)
@@ -287,6 +290,10 @@ - (float) chunkUploadedAndPercent
287290
percent = (float)self.uploadedChunkNumber / self.chunkCount;
288291
[chunkNumlock unlock];
289292

293+
if (percent > 0.95) {
294+
percent = 0.95;
295+
}
296+
290297
return percent;
291298
}
292299

QiniuSDK/QiniuResumableUploader.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ - (void) uploadFile:(NSString *)filePath
180180
fileSize:fileSize
181181
extra:extra
182182
uphost:kQiniuUpHosts[mkfileRetryIndex]
183-
progress:nil
183+
progress:weakProgressBlock
184184
complete:weakCompleteBlock];
185185

186186
return;
@@ -197,7 +197,7 @@ - (void) uploadFile:(NSString *)filePath
197197
fileSize:fileSize
198198
extra:extra
199199
uphost:kQiniuUpHosts[0]
200-
progress:nil
200+
progress:weakProgressBlock
201201
complete:weakCompleteBlock];
202202
return;
203203
}

0 commit comments

Comments
 (0)