Skip to content

Commit de4453f

Browse files
authored
Merge pull request #6 from aliyun/ifx
Ifx:repair ios compile error
2 parents 7ccafa2 + 4f94b89 commit de4453f

File tree

92 files changed

+8725
-710
lines changed

Some content is hidden

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

92 files changed

+8725
-710
lines changed
12.1 MB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// AliyunOSSiOS.h
3+
// AliyunOSSiOS
4+
//
5+
// Created by xuyecan on 28/11/2016.
6+
// Copyright © 2016 xuyecan. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
//! Project version number for AliyunOSSiOS.
12+
FOUNDATION_EXPORT double AliyunOSSiOSVersionNumber;
13+
14+
//! Project version string for AliyunOSSiOS.
15+
FOUNDATION_EXPORT const unsigned char AliyunOSSiOSVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <AliyunOSSiOS/PublicHeader.h>
18+
19+
#import "OSSService.h"
20+
#import "OSSCompat.h"
21+
#import "OSSXMLDictionary.h"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// NSMutableData+OSS_CRC.h
3+
// AliyunOSSSDK
4+
//
5+
// Created by 怀叙 on 2017/11/29.
6+
// Copyright © 2017年 阿里云. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@interface NSMutableData (OSS_CRC)
12+
13+
- (uint64_t)oss_crc64;
14+
15+
@end
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
//
2+
// OSSAllRequestNeededMessage.h
3+
// AliyunOSSSDK
4+
//
5+
// Created by huaixu on 2018/1/22.
6+
// Copyright © 2018年 aliyun. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import "OSSConstants.h"
11+
#import "OSSTask.h"
12+
13+
/**
14+
All necessary information in one OSS request.
15+
*/
16+
@interface OSSAllRequestNeededMessage : NSObject
17+
@property (nonatomic, strong) NSString * endpoint;
18+
@property (nonatomic, strong) NSString * httpMethod;
19+
@property (nonatomic, strong) NSString * bucketName;
20+
@property (nonatomic, strong) NSString * objectKey;
21+
@property (nonatomic, strong) NSString * contentType;
22+
@property (nonatomic, strong) NSString * contentMd5;
23+
@property (nonatomic, strong) NSString * range;
24+
@property (nonatomic, strong) NSString * date;
25+
@property (nonatomic, strong) NSMutableDictionary * headerParams;
26+
@property (nonatomic, copy) NSDictionary * querys;
27+
@property (nonatomic, copy) NSString *contentSHA1;
28+
29+
@property (nonatomic, assign) BOOL isHostInCnameExcludeList;
30+
31+
- (instancetype)initWithEndpoint:(NSString *)endpoint
32+
httpMethod:(NSString *)httpMethod
33+
bucketName:(NSString *)bucketName
34+
objectKey:(NSString *)objectKey
35+
type:(NSString *)contentType
36+
md5:(NSString *)contentMd5
37+
range:(NSString *)range
38+
date:(NSString *)date
39+
headerParams:(NSMutableDictionary *)headerParams
40+
querys:(NSMutableDictionary *)querys __attribute__((deprecated("Use -initWithEndpoint:httpMethod:bucketName:objectKey:type:md5:range:date:headerParams:querys:sha1: instead")));
41+
42+
- (instancetype)initWithEndpoint:(NSString *)endpoint
43+
httpMethod:(NSString *)httpMethod
44+
bucketName:(NSString *)bucketName
45+
objectKey:(NSString *)objectKey
46+
type:(NSString *)contentType
47+
md5:(NSString *)contentMd5
48+
range:(NSString *)range
49+
date:(NSString *)date
50+
headerParams:(NSMutableDictionary *)headerParams
51+
querys:(NSMutableDictionary *)querys
52+
sha1:(NSString *)contentSHA1;
53+
54+
- (OSSTask *)validateRequestParamsInOperationType:(OSSOperationType)operType;
55+
56+
@end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2014, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
*/
10+
11+
#import "OSSCancellationToken.h"
12+
#import "OSSCancellationTokenRegistration.h"
13+
#import "OSSCancellationTokenSource.h"
14+
#import "OSSExecutor.h"
15+
#import "OSSTask.h"
16+
#import "OSSTaskCompletionSource.h"
17+
18+
19+
NS_ASSUME_NONNULL_BEGIN
20+
21+
/**
22+
A string containing the version of the Bolts Framework used by the current application.
23+
*/
24+
extern NSString *const OSSBoltsFrameworkVersionString;
25+
26+
NS_ASSUME_NONNULL_END
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright (c) 2014, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
#import "OSSCancellationTokenRegistration.h"
14+
15+
NS_ASSUME_NONNULL_BEGIN
16+
17+
/*!
18+
A block that will be called when a token is cancelled.
19+
*/
20+
typedef void(^OSSCancellationBlock)(void);
21+
22+
/*!
23+
The consumer view of a CancellationToken.
24+
Propagates notification that operations should be canceled.
25+
A OSSCancellationToken has methods to inspect whether the token has been cancelled.
26+
*/
27+
@interface OSSCancellationToken : NSObject
28+
29+
/*!
30+
Whether cancellation has been requested for this token source.
31+
*/
32+
@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;
33+
34+
/*!
35+
Register a block to be notified when the token is cancelled.
36+
If the token is already cancelled the delegate will be notified immediately.
37+
*/
38+
- (OSSCancellationTokenRegistration *)registerCancellationObserverWithBlock:(OSSCancellationBlock)block;
39+
40+
@end
41+
42+
NS_ASSUME_NONNULL_END
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2014, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
/*!
16+
Represents the registration of a cancellation observer with a cancellation token.
17+
Can be used to unregister the observer at a later time.
18+
*/
19+
@interface OSSCancellationTokenRegistration : NSObject
20+
21+
/*!
22+
Removes the cancellation observer registered with the token
23+
and releases all resources associated with this registration.
24+
*/
25+
- (void)dispose;
26+
27+
@end
28+
29+
NS_ASSUME_NONNULL_END
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright (c) 2014, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*
9+
*/
10+
11+
#import <Foundation/Foundation.h>
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
@class OSSCancellationToken;
16+
17+
/*!
18+
OSSCancellationTokenSource represents the producer side of a CancellationToken.
19+
Signals to a CancellationToken that it should be canceled.
20+
It is a cancellation token that also has methods
21+
for changing the state of a token by cancelling it.
22+
*/
23+
@interface OSSCancellationTokenSource : NSObject
24+
25+
/*!
26+
Creates a new cancellation token source.
27+
*/
28+
+ (instancetype)cancellationTokenSource;
29+
30+
/*!
31+
The cancellation token associated with this CancellationTokenSource.
32+
*/
33+
@property (nonatomic, strong, readonly) OSSCancellationToken *token;
34+
35+
/*!
36+
Whether cancellation has been requested for this token source.
37+
*/
38+
@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;
39+
40+
/*!
41+
Cancels the token if it has not already been cancelled.
42+
*/
43+
- (void)cancel;
44+
45+
/*!
46+
Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds.
47+
@param millis The number of milliseconds to wait before completing the returned task.
48+
If delay is `0` the cancel is executed immediately. If delay is `-1` any scheduled cancellation is stopped.
49+
*/
50+
- (void)cancelAfterDelay:(int)millis;
51+
52+
/*!
53+
Releases all resources associated with this token source,
54+
including disposing of all registrations.
55+
*/
56+
- (void)dispose;
57+
58+
@end
59+
60+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)