Skip to content

Commit 701000b

Browse files
author
AWS
committed
The AWS Mobile SDK for iOS 2.4.1.
1 parent 2a51100 commit 701000b

File tree

81 files changed

+855
-431
lines changed

Some content is hidden

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

81 files changed

+855
-431
lines changed

AWSAPIGateway.podspec

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

33
s.name = 'AWSAPIGateway'
4-
s.version = '2.4.0'
4+
s.version = '2.4.1'
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.'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
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.4.0'
16+
s.dependency 'AWSCore', '2.4.1'
1717

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

AWSAPIGateway/AWSAPIGatewayClient.m

+13-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
NSString *const AWSAPIGatewayErrorHTTPBodyKey = @"HTTPBody";
2222
NSString *const AWSAPIGatewayErrorHTTPHeaderFieldsKey = @"HTTPHeaderFields";
2323

24-
NSString *const AWSAPIGatewayAPIKeyHeader = @"x-api-key";
24+
static NSString *const AWSAPIGatewayAPIKeyHeader = @"x-api-key";
25+
26+
static NSString *const AWSAPIGatewaySDKVersion = @"2.4.1";
2527

2628
@interface AWSAPIGatewayClient()
2729

@@ -34,6 +36,16 @@ @interface AWSAPIGatewayClient()
3436

3537
@implementation AWSAPIGatewayClient
3638

39+
+ (void)initialize {
40+
[super initialize];
41+
42+
if (![AWSiOSSDKVersion isEqualToString:AWSAPIGatewaySDKVersion]) {
43+
@throw [NSException exceptionWithName:NSInternalInconsistencyException
44+
reason:[NSString stringWithFormat:@"AWSCore and AWSAPIGateway versions need to match. Check your SDK installation. AWSCore: %@ AWSAPIGateway: %@", AWSiOSSDKVersion, AWSAPIGatewaySDKVersion]
45+
userInfo:nil];
46+
}
47+
}
48+
3749
- (instancetype)init {
3850
if (self = [super init]) {
3951
static NSURLSession *session = nil;

AWSAPIGateway/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.0</string>
18+
<string>2.4.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

AWSAutoScaling.podspec

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

33
s.name = 'AWSAutoScaling'
4-
s.version = '2.4.0'
4+
s.version = '2.4.1'
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.'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
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.4.0'
16+
s.dependency 'AWSCore', '2.4.1'
1717

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

AWSAutoScaling/AWSAutoScalingService.m

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#import "AWSAutoScalingResources.h"
2828

2929
static NSString *const AWSInfoAutoScaling = @"AutoScaling";
30+
static NSString *const AWSAutoScalingSDKVersion = @"2.4.1";
3031

3132
@interface AWSAutoScalingResponseSerializer : AWSXMLResponseSerializer
3233

@@ -129,6 +130,16 @@ @implementation AWSAutoScaling
129130

130131
static AWSSynchronizedMutableDictionary *_serviceClients = nil;
131132

133+
+ (void)initialize {
134+
[super initialize];
135+
136+
if (![AWSiOSSDKVersion isEqualToString:AWSAutoScalingSDKVersion]) {
137+
@throw [NSException exceptionWithName:NSInternalInconsistencyException
138+
reason:[NSString stringWithFormat:@"AWSCore and AWSAutoScaling versions need to match. Check your SDK installation. AWSCore: %@ AWSAutoScaling: %@", AWSiOSSDKVersion, AWSAutoScalingSDKVersion]
139+
userInfo:nil];
140+
}
141+
}
142+
132143
+ (instancetype)defaultAutoScaling {
133144
static AWSAutoScaling *_defaultAutoScaling = nil;
134145
static dispatch_once_t onceToken;

AWSAutoScaling/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.0</string>
18+
<string>2.4.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

AWSCloudWatch.podspec

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

33
s.name = 'AWSCloudWatch'
4-
s.version = '2.4.0'
4+
s.version = '2.4.1'
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.'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
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.4.0'
16+
s.dependency 'AWSCore', '2.4.1'
1717

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

AWSCloudWatch/AWSCloudWatchService.m

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#import "AWSCloudWatchResources.h"
2828

2929
static NSString *const AWSInfoCloudWatch = @"CloudWatch";
30+
static NSString *const AWSCloudWatchSDKVersion = @"2.4.1";
3031

3132
@interface AWSCloudWatchResponseSerializer : AWSXMLResponseSerializer
3233

@@ -133,6 +134,16 @@ @implementation AWSCloudWatch
133134

134135
static AWSSynchronizedMutableDictionary *_serviceClients = nil;
135136

137+
+ (void)initialize {
138+
[super initialize];
139+
140+
if (![AWSiOSSDKVersion isEqualToString:AWSCloudWatchSDKVersion]) {
141+
@throw [NSException exceptionWithName:NSInternalInconsistencyException
142+
reason:[NSString stringWithFormat:@"AWSCore and AWSCloudWatch versions need to match. Check your SDK installation. AWSCore: %@ AWSCloudWatch: %@", AWSiOSSDKVersion, AWSCloudWatchSDKVersion]
143+
userInfo:nil];
144+
}
145+
}
146+
136147
+ (instancetype)defaultCloudWatch {
137148
static AWSCloudWatch *_defaultCloudWatch = nil;
138149
static dispatch_once_t onceToken;

AWSCloudWatch/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.0</string>
18+
<string>2.4.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

AWSCognito.podspec

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

33
s.name = 'AWSCognito'
4-
s.version = '2.4.0'
4+
s.version = '2.4.1'
55
s.summary = 'Amazon Cognito SDK for iOS'
66

77
s.description = 'Amazon Cognito offers multi device data synchronization with offline access'
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
1414
:tag => s.version}
1515
s.requires_arc = true
1616
s.library = 'sqlite3'
17-
s.dependency 'AWSCore', '2.4.0'
17+
s.dependency 'AWSCore', '2.4.1'
1818

1919
s.source_files = 'AWSCognito/*.{h,m}', 'AWSCognito/**/*.{h,m}'
2020
s.public_header_files = 'AWSCognito/*.h', 'AWSCognito/CognitoSync/*.h'

AWSCognito/AWSCognitoService.m

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#import "Fabric+FABKits.h"
3535

3636
static NSString *const AWSInfoCognito = @"Cognito";
37+
static NSString *const AWSCognitoSDKVersion = @"2.4.1";
3738

3839
NSString *const AWSCognitoDidStartSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidStartSynchronizeNotification";
3940
NSString *const AWSCognitoDidEndSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidEndSynchronizeNotification";
@@ -93,6 +94,14 @@ + (void)initializeIfNeeded {
9394
#pragma mark - Setups
9495

9596
+ (void)initialize {
97+
[super initialize];
98+
99+
if (![AWSiOSSDKVersion isEqualToString:AWSCognitoSDKVersion]) {
100+
@throw [NSException exceptionWithName:NSInternalInconsistencyException
101+
reason:[NSString stringWithFormat:@"AWSCore and AWSCognito versions need to match. Check your SDK installation. AWSCore: %@ AWSCognito: %@", AWSiOSSDKVersion, AWSCognitoSDKVersion]
102+
userInfo:nil];
103+
}
104+
96105
keychain = [AWSUICKeyChainStore keyChainStoreWithService:[NSString stringWithFormat:@"%@.%@", [NSBundle mainBundle].bundleIdentifier, [AWSCognito class]]];
97106
_pushPlatform = [AWSCognitoUtil pushPlatform];
98107
}

AWSCognito/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.4.0</string>
18+
<string>2.4.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

AWSCognitoIdentityProvider.podspec

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

33
s.name = 'AWSCognitoIdentityProvider'
4-
s.version = '2.4.0'
5-
s.summary = 'Amazon Cognito Identity Provider SDK for iOS'
4+
s.version = '2.4.1'
5+
s.summary = 'Amazon Cognito Identity Provider SDK for iOS (Beta)'
66

77
s.description = 'Amazon Cognito Identity Provider enables sign up and authentication of your end users'
88

@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
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.4.0'
16+
s.dependency 'AWSCore', '2.4.1'
1717

1818
s.source_files = 'AWSCognitoIdentityProvider/**/*.{h,m,c}'
1919
s.public_header_files = 'AWSCognitoIdentityProvider/*.h', 'AWSCognitoIdentityProvider/CognitoIdentityProvider/*.h'

AWSCognitoIdentityProvider/AWSCognitoIdentityUser.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ NS_ASSUME_NONNULL_BEGIN
7171
- (AWSTask<AWSCognitoIdentityUserConfirmSignUpResponse *> *)confirmSignUp:(NSString *)confirmationCode;
7272

7373
/**
74-
Resend the confirmation code send during sign up
74+
Resend the confirmation code sent during sign up
7575
*/
7676
- (AWSTask<AWSCognitoIdentityUserResendConfirmationCodeResponse *> *)resendConfirmationCode;
7777

@@ -81,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
8181
- (AWSTask<AWSCognitoIdentityUserSession *> *)getSession;
8282

8383
/**
84-
Get a session with custom scopes
84+
Get a session with custom scopes. For future use, not supported by service yet.
8585
*/
8686
- (AWSTask<AWSCognitoIdentityUserSession *> *)getSession:(nullable NSSet<NSString *> *)scopes;
8787

@@ -110,7 +110,7 @@ NS_ASSUME_NONNULL_BEGIN
110110
password:(NSString *)password;
111111

112112
/**
113-
Change this users' password
113+
Change this user's password
114114
*/
115115
- (AWSTask<AWSCognitoIdentityUserChangePasswordResponse *> *)changePassword:(NSString *)currentPassword
116116
proposedPassword:(NSString *)proposedPassword;

0 commit comments

Comments
 (0)