Skip to content

Commit c2afba8

Browse files
author
shangcr
committed
MOD: update readme and fix typo
Change-Id: I9d10ad8f2f9b5876311868dd1bc3ff92aa7db829
1 parent 995a604 commit c2afba8

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,17 @@ To use YTKNetwork add the following to your Podfile
5454

5555
Or add this in your Cartfile:
5656

57-
github "yuantiku/YTKNetwork" ~> 2.0
57+
github "yuantiku/YTKNetwork" ~> 3.0
5858

5959
## Requirements
6060

6161
| YTKNetwork Version | AFNetworking Version | Minimum iOS Target | Note |
6262
|:------------------:|:--------------------:|:-------------------:|:-----|
63+
| 3.x | 4.x | iOS 9 | Xcode 11+ is required. |
6364
| 2.x | 3.x | iOS 7 | Xcode 7+ is required. |
6465
| 1.x | 2.x | iOS 6 | n/a |
6566

66-
YTKNetwork is based on AFNetworking. You can find more detail about version compability at [AFNetworking README](https://github.com/AFNetworking/AFNetworking).
67+
YTKNetwork is based on AFNetworking. You can find more detail about version compatibility at [AFNetworking README](https://github.com/AFNetworking/AFNetworking).
6768

6869
## Guide & Demo
6970

@@ -77,14 +78,15 @@ YTKNetwork is based on AFNetworking. You can find more detail about version comp
7778
* [veecci][veecciGithub]
7879
* [tangqiaoboy][tangqiaoboyGithub]
7980
* [skyline75489][skyline75489Github]
81+
* [joeshang][joeshangGithub]
8082

8183
## Acknowledgements
8284

8385
* [AFNetworking]
8486
* [AFDownloadRequestOperation]
8587

8688
Thanks for their great work.
87-
 
89+
8890
## License
8991

9092
YTKNetwork is available under the MIT license. See the LICENSE file for more info.
@@ -103,3 +105,4 @@ YTKNetwork is available under the MIT license. See the LICENSE file for more inf
103105
[maojjGithub]:https://github.com/maojj
104106
[veecciGithub]:https://github.com/veecci
105107
[skyline75489Github]:https://github.com/skyline75489
108+
[joeshangGithub]:https://github.com/joeshang

YTKNetwork/YTKBaseRequest.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ typedef void(^YTKRequestCompletionBlock)(__kindof YTKBaseRequest *request);
202202
/// will be called on the main queue.
203203
@property (nonatomic, copy, nullable) YTKRequestCompletionBlock failureCompletionBlock;
204204

205-
/// This can be used to add several accossories object. Note if you use `addAccessory` to add acceesory
205+
/// This can be used to add several accessories object. Note if you use `addAccessory` to add accessory
206206
/// this array will be automatically created. Default is nil.
207207
@property (nonatomic, strong, nullable) NSMutableArray<id<YTKRequestAccessory>> *requestAccessories;
208208

@@ -259,7 +259,7 @@ typedef void(^YTKRequestCompletionBlock)(__kindof YTKBaseRequest *request);
259259
/// @name Subclass Override
260260
///=============================================================================
261261

262-
/// Called on background thread after request succeded but before switching to main thread. Note if
262+
/// Called on background thread after request succeeded but before switching to main thread. Note if
263263
/// cache is loaded, this method WILL be called on the main thread, just like `requestCompleteFilter`.
264264
- (void)requestCompletePreprocessor;
265265

@@ -284,14 +284,14 @@ typedef void(^YTKRequestCompletionBlock)(__kindof YTKBaseRequest *request);
284284
/// Otherwise the result URL may not be correctly formed. See also `URLString:relativeToURL`
285285
/// for more information.
286286
///
287-
/// Additionaly, if `requestUrl` itself is a valid URL, it will be used as the result URL and
287+
/// Additionally, if `requestUrl` itself is a valid URL, it will be used as the result URL and
288288
/// `baseUrl` will be ignored.
289289
- (NSString *)requestUrl;
290290

291291
/// Optional CDN URL for request.
292292
- (NSString *)cdnUrl;
293293

294-
/// Requset timeout interval. Default is 60s.
294+
/// Request timeout interval. Default is 60s.
295295
///
296296
/// @discussion When using `resumableDownloadPath`(NSURLSessionDownloadTask), the session seems to completely ignore
297297
/// `timeoutInterval` property of `NSURLRequest`. One effective way to set timeout would be using

YTKNetwork/YTKBatchRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ NS_ASSUME_NONNULL_BEGIN
6969
/// Tag can be used to identify batch request. Default value is 0.
7070
@property (nonatomic) NSInteger tag;
7171

72-
/// This can be used to add several accossories object. Note if you use `addAccessory` to add acceesory
72+
/// This can be used to add several accessories object. Note if you use `addAccessory` to add acceesory
7373
/// this array will be automatically created. Default is nil.
7474
@property (nonatomic, strong, nullable) NSMutableArray<id<YTKRequestAccessory>> *requestAccessories;
7575

YTKNetwork/YTKChainRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef void (^YTKChainCallback)(YTKChainRequest *chainRequest, YTKBaseRequest *
6262
/// The delegate object of the chain request. Default is nil.
6363
@property (nonatomic, weak, nullable) id<YTKChainRequestDelegate> delegate;
6464

65-
/// This can be used to add several accossories object. Note if you use `addAccessory` to add acceesory
65+
/// This can be used to add several accessories object. Note if you use `addAccessory` to add acceesory
6666
/// this array will be automatically created. Default is nil.
6767
@property (nonatomic, strong, nullable) NSMutableArray<id<YTKRequestAccessory>> *requestAccessories;
6868

YTKNetwork/YTKNetworkAgent.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (NSString *)buildRequestUrl:(YTKBaseRequest *)request {
126126
baseUrl = [_config baseUrl];
127127
}
128128
}
129-
// URL slash compability
129+
// URL slash compatibility
130130
NSURL *url = [NSURL URLWithString:baseUrl];
131131

132132
if (baseUrl.length > 0 && ![baseUrl hasSuffix:@"/"]) {

YTKNetwork/YTKNetworkPrivate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ + (BOOL)validateResumeData:(NSData *)data {
149149
return [[NSFileManager defaultManager] fileExistsAtPath:localFilePath];
150150
#endif
151151
// After iOS 9 we can not actually detects if the cache file exists. This plist file has a somehow
152-
// complicated structue. Besides, the plist structure is different between iOS 9 and iOS 10.
152+
// complicated structure. Besides, the plist structure is different between iOS 9 and iOS 10.
153153
// We can only assume that the plist being successfully parsed means the resume data is valid.
154154
return YES;
155155
}

0 commit comments

Comments
 (0)