Skip to content

Commit 1ec2fc8

Browse files
author
AWS
committed
The AWS Mobile SDK for iOS 2.4.0.
1 parent 8177419 commit 1ec2fc8

File tree

563 files changed

+49742
-32553
lines changed

Some content is hidden

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

563 files changed

+49742
-32553
lines changed

AWSAPIGateway.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'AWSAPIGateway'
4-
s.version = '2.3.6'
4+
s.version = '2.4.0'
55
s.summary = 'Amazon Web Services SDK for iOS.'
66

77
s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
88

99
s.homepage = 'http://aws.amazon.com/sdkforios'
1010
s.license = 'Apache License, Version 2.0'
1111
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
12-
s.platform = :ios, '7.0'
12+
s.platform = :ios, '8.0'
1313
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
1414
:tag => s.version}
1515
s.requires_arc = true
16-
s.dependency 'AWSCore', '2.3.6'
16+
s.dependency 'AWSCore', '2.4.0'
1717

1818
s.source_files = 'AWSAPIGateway/*.{h,m}'
1919
end

AWSAPIGateway.xcodeproj/project.pbxproj

-603
This file was deleted.

AWSAPIGateway.xcodeproj/project.xcworkspace/contents.xcworkspacedata

-7
This file was deleted.

AWSAPIGateway/AWSAPIGateway.h

+7
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@
1414
//
1515

1616
#import <Foundation/Foundation.h>
17+
18+
//! Project version number for AWSAPIGateway.
19+
FOUNDATION_EXPORT double AWSAPIGatewayVersionNumber;
20+
21+
//! Project version string for AWSAPIGateway.
22+
FOUNDATION_EXPORT const unsigned char AWSAPIGatewayVersionString[];
23+
1724
#import <AWSCore/AWSCore.h>
1825
#import "AWSAPIGatewayClient.h"

AWSAPIGateway/AWSAPIGatewayClient.m

+4-31
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
@interface AWSAPIGatewayClient()
2727

28+
@property (nonatomic, strong) AWSServiceConfiguration *configuration;
29+
2830
// Networking
2931
@property (nonatomic, strong) NSURLSession *session;
3032

@@ -78,39 +80,10 @@ - (AWSTask *)invokeHTTPRequest:(NSString *)HTTPMethod
7880
task = [task continueWithSuccessBlock:^id(AWSTask *task) {
7981
id signer = [self.configuration.requestInterceptors lastObject];
8082
if (signer) {
81-
#pragma clang diagnostic push
82-
#pragma clang diagnostic ignored "-Wundeclared-selector"
8383
if ([signer respondsToSelector:@selector(credentialsProvider)]) {
84-
id credentialsProvider = [signer performSelector:@selector(credentialsProvider)];
85-
86-
if ([credentialsProvider respondsToSelector:@selector(refresh)]) {
87-
NSString *accessKey = nil;
88-
if ([credentialsProvider respondsToSelector:@selector(accessKey)]) {
89-
accessKey = [credentialsProvider performSelector:@selector(accessKey)];
90-
}
91-
92-
NSString *secretKey = nil;
93-
if ([credentialsProvider respondsToSelector:@selector(secretKey)]) {
94-
secretKey = [credentialsProvider performSelector:@selector(secretKey)];
95-
}
96-
97-
NSDate *expiration = nil;
98-
if ([credentialsProvider respondsToSelector:@selector(expiration)]) {
99-
expiration = [credentialsProvider performSelector:@selector(expiration)];
100-
}
101-
102-
/**
103-
Preemptively refresh credentials if any of the following is true:
104-
1. accessKey or secretKey is nil.
105-
2. the credentials expires within 10 minutes.
106-
*/
107-
if ((!accessKey || !secretKey)
108-
|| [expiration compare:[NSDate dateWithTimeIntervalSinceNow:10 * 60]] == NSOrderedAscending) {
109-
return [credentialsProvider performSelector:@selector(refresh)];
110-
}
111-
}
84+
id<AWSCredentialsProvider> credentialsProvider = [signer performSelector:@selector(credentialsProvider)];
85+
return [credentialsProvider credentials];
11286
}
113-
#pragma clang diagnostic pop
11487
}
11588
return nil;
11689
}];

AWSAPIGateway/Info.plist

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>2.4.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

AWSAPIGateway/module.modulemap

-6
This file was deleted.

AWSAutoScaling.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'AWSAutoScaling'
4-
s.version = '2.3.6'
4+
s.version = '2.4.0'
55
s.summary = 'Amazon Web Services SDK for iOS.'
66

77
s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
88

99
s.homepage = 'http://aws.amazon.com/sdkforios'
1010
s.license = 'Apache License, Version 2.0'
1111
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
12-
s.platform = :ios, '7.0'
12+
s.platform = :ios, '8.0'
1313
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
1414
:tag => s.version}
1515
s.requires_arc = true
16-
s.dependency 'AWSCore', '2.3.6'
16+
s.dependency 'AWSCore', '2.4.0'
1717

1818
s.source_files = 'AWSAutoScaling/*.{h,m}'
1919
end

0 commit comments

Comments
 (0)