Skip to content

Commit

Permalink
The AWS Mobile SDK for iOS 2.5.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Jun 2, 2017
1 parent 3391158 commit cf7119d
Show file tree
Hide file tree
Showing 121 changed files with 4,625 additions and 344 deletions.
4 changes: 2 additions & 2 deletions AWSAPIGateway.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSAPIGateway'
s.version = '2.5.7'
s.version = '2.5.8'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.dependency 'AWSCore', '2.5.7'
s.dependency 'AWSCore', '2.5.8'

s.source_files = 'AWSAPIGateway/*.{h,m}'
end
2 changes: 1 addition & 1 deletion AWSAPIGateway/AWSAPIGatewayClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

static NSString *const AWSAPIGatewayAPIKeyHeader = @"x-api-key";

static NSString *const AWSAPIGatewaySDKVersion = @"2.5.7";
static NSString *const AWSAPIGatewaySDKVersion = @"2.5.8";

static int defaultChunkSize = 1024;

Expand Down
2 changes: 1 addition & 1 deletion AWSAPIGateway/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.7</string>
<string>2.5.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions AWSAutoScaling.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSAutoScaling'
s.version = '2.5.7'
s.version = '2.5.8'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand All @@ -12,6 +12,6 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.dependency 'AWSCore', '2.5.7'
s.dependency 'AWSCore', '2.5.8'
s.source_files = 'AWSAutoScaling/*.{h,m}'
end
40 changes: 21 additions & 19 deletions AWSAutoScaling/AWSAutoScalingService.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "AWSAutoScalingResources.h"

static NSString *const AWSInfoAutoScaling = @"AutoScaling";
static NSString *const AWSAutoScalingSDKVersion = @"2.5.7";
static NSString *const AWSAutoScalingSDKVersion = @"2.5.8";


@interface AWSAutoScalingResponseSerializer : AWSXMLResponseSerializer
Expand Down Expand Up @@ -62,23 +62,24 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)response
data:data
error:error];
if (!*error && [responseObject isKindOfClass:[NSDictionary class]]) {
if (!*error && [responseObject isKindOfClass:[NSDictionary class]]) {
if ([errorCodeDictionary objectForKey:[[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]]) {
if (error) {
*error = [NSError errorWithDomain:AWSAutoScalingErrorDomain
code:[[errorCodeDictionary objectForKey:[[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]] integerValue]
userInfo:responseObject];
}
return responseObject;
} else if ([[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]) {
if (error) {
*error = [NSError errorWithDomain:AWSCognitoIdentityErrorDomain
code:AWSCognitoIdentityErrorUnknown
userInfo:responseObject];
}
return responseObject;
}
}

NSDictionary *errorInfo = responseObject[@"Error"];
if (errorInfo[@"Code"] && errorCodeDictionary[errorInfo[@"Code"]]) {
if (error) {
*error = [NSError errorWithDomain:AWSAutoScalingErrorDomain
code:[errorCodeDictionary[errorInfo[@"Code"]] integerValue]
userInfo:errorInfo
];
return responseObject;
}
} else if (errorInfo) {
if (error) {
*error = [NSError errorWithDomain:AWSAutoScalingErrorDomain
code:AWSAutoScalingErrorUnknown
userInfo:errorInfo];
return responseObject;
}
}
}

if (!*error && response.statusCode/100 != 2) {
Expand All @@ -94,7 +95,8 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)response
error:error];
}
}
return responseObject;

return responseObject;
}

@end
Expand Down
2 changes: 1 addition & 1 deletion AWSAutoScaling/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.7</string>
<string>2.5.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
7 changes: 4 additions & 3 deletions AWSAutoScalingTests/AWSAutoScalingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ -(void)testAttachInstancesFailed {
attacheInstancesQuery.autoScalingGroupName = @"invalidGroupName"; //invalid group name

[[[autoScaling attachInstances:attacheInstancesQuery] continueWithBlock:^id(AWSTask *task) {
if (task.error == nil) {
XCTFail(@"Expect Error but got nil");
}
XCTAssertNotNil(task.error, @"Expected ValidationError error not found.");
XCTAssertEqual(task.error.code, 0);
XCTAssertTrue([@"ValidationError" isEqualToString:task.error.userInfo[@"Code"]]);
XCTAssertTrue([@"Instance ID(s) must be provided" isEqualToString:task.error.userInfo[@"Message"]]);

return nil;
}]waitUntilFinished];
Expand Down
4 changes: 2 additions & 2 deletions AWSCloudWatch.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSCloudWatch'
s.version = '2.5.7'
s.version = '2.5.8'
s.summary = 'Amazon Web Services SDK for iOS.'

s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
Expand All @@ -12,6 +12,6 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.dependency 'AWSCore', '2.5.7'
s.dependency 'AWSCore', '2.5.8'
s.source_files = 'AWSCloudWatch/*.{h,m}'
end
40 changes: 21 additions & 19 deletions AWSCloudWatch/AWSCloudWatchService.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "AWSCloudWatchResources.h"

static NSString *const AWSInfoCloudWatch = @"CloudWatch";
static NSString *const AWSCloudWatchSDKVersion = @"2.5.7";
static NSString *const AWSCloudWatchSDKVersion = @"2.5.8";


@interface AWSCloudWatchResponseSerializer : AWSXMLResponseSerializer
Expand Down Expand Up @@ -64,23 +64,24 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)response
data:data
error:error];
if (!*error && [responseObject isKindOfClass:[NSDictionary class]]) {
if (!*error && [responseObject isKindOfClass:[NSDictionary class]]) {
if ([errorCodeDictionary objectForKey:[[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]]) {
if (error) {
*error = [NSError errorWithDomain:AWSCloudWatchErrorDomain
code:[[errorCodeDictionary objectForKey:[[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]] integerValue]
userInfo:responseObject];
}
return responseObject;
} else if ([[[responseObject objectForKey:@"__type"] componentsSeparatedByString:@"#"] lastObject]) {
if (error) {
*error = [NSError errorWithDomain:AWSCognitoIdentityErrorDomain
code:AWSCognitoIdentityErrorUnknown
userInfo:responseObject];
}
return responseObject;
}
}

NSDictionary *errorInfo = responseObject[@"Error"];
if (errorInfo[@"Code"] && errorCodeDictionary[errorInfo[@"Code"]]) {
if (error) {
*error = [NSError errorWithDomain:AWSCloudWatchErrorDomain
code:[errorCodeDictionary[errorInfo[@"Code"]] integerValue]
userInfo:errorInfo
];
return responseObject;
}
} else if (errorInfo) {
if (error) {
*error = [NSError errorWithDomain:AWSCloudWatchErrorDomain
code:AWSCloudWatchErrorUnknown
userInfo:errorInfo];
return responseObject;
}
}
}

if (!*error && response.statusCode/100 != 2) {
Expand All @@ -96,7 +97,8 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)response
error:error];
}
}
return responseObject;

return responseObject;
}

@end
Expand Down
2 changes: 1 addition & 1 deletion AWSCloudWatch/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.7</string>
<string>2.5.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
5 changes: 4 additions & 1 deletion AWSCloudWatchTests/AWSCloudWatchTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ - (void)testGetMetricStatisticsFailed {
statisticsInput.namespace = @""; //namespace is empty

[[[cloudWatch getMetricStatistics:statisticsInput] continueWithBlock:^id(AWSTask *task) {
XCTAssertNotNil(task.error, @"Expected MissingParameter error not found.");
XCTAssertNotNil(task.error, @"Expected InvalidParameterCombination error not found.");
XCTAssertEqual(task.error.code, 4);
XCTAssertTrue([@"InvalidParameterCombination" isEqualToString:task.error.userInfo[@"Code"]]);
XCTAssertTrue([@"At least one of the parameters Statistics and ExtendedStatistics must be specified." isEqualToString:task.error.userInfo[@"Message"]]);
return nil;
}] waitUntilFinished];

Expand Down
4 changes: 2 additions & 2 deletions AWSCognito.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSCognito'
s.version = '2.5.7'
s.version = '2.5.8'
s.summary = 'Amazon Cognito SDK for iOS'

s.description = 'Amazon Cognito offers multi device data synchronization with offline access'
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
:tag => s.version}
s.requires_arc = true
s.library = 'sqlite3'
s.dependency 'AWSCore', '2.5.7'
s.dependency 'AWSCore', '2.5.8'
s.source_files = 'AWSCognito/*.{h,m}', 'AWSCognito/**/*.{h,m}'
s.public_header_files = 'AWSCognito/*.h', 'AWSCognito/CognitoSync/*.h'
s.private_header_files = 'AWSCognito/Fabric/*.h', 'AWSCognito/Internal/*.h'
Expand Down
4 changes: 2 additions & 2 deletions AWSCognito/AWSCognitoService.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#import "Fabric+FABKits.h"

static NSString *const AWSInfoCognito = @"Cognito";
static NSString *const AWSCognitoSDKVersion = @"2.5.7";
static NSString *const AWSCognitoSDKVersion = @"2.5.8";

NSString *const AWSCognitoDidStartSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidStartSynchronizeNotification";
NSString *const AWSCognitoDidEndSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidEndSynchronizeNotification";
Expand Down Expand Up @@ -233,7 +233,7 @@ - (void)wipe {
}

- (AWSTask<NSArray<AWSCognitoDatasetMetadata *> *> *)refreshDatasetMetadata {
return [[[self.cognitoCredentialsProvider getIdentityId] continueWithBlock:^id(AWSTask *task) {
return [[[self.cognitoCredentialsProvider credentials] continueWithBlock:^id(AWSTask *task) {
if (task.error) {
return [AWSTask taskWithError:[NSError errorWithDomain:AWSCognitoErrorDomain code:AWSCognitoAuthenticationFailed userInfo:nil]];
}
Expand Down
5 changes: 3 additions & 2 deletions AWSCognito/CognitoSync/AWSCognitoSyncService.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "AWSCognitoSyncResources.h"

static NSString *const AWSInfoCognitoSync = @"CognitoSync";
static NSString *const AWSCognitoSyncSDKVersion = @"2.5.7";
static NSString *const AWSCognitoSyncSDKVersion = @"2.5.8";


@interface AWSCognitoSyncResponseSerializer : AWSJSONResponseSerializer
Expand Down Expand Up @@ -106,7 +106,8 @@ - (id)responseObjectForResponse:(NSHTTPURLResponse *)response
error:error];
}
}
return responseObject;

return responseObject;
}

@end
Expand Down
2 changes: 1 addition & 1 deletion AWSCognito/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.5.7</string>
<string>2.5.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
18 changes: 18 additions & 0 deletions AWSCognitoAuth.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Pod::Spec.new do |s|
s.name = 'AWSCognitoAuth'
s.version = '2.5.8'
s.summary = 'Amazon Cognito Auth SDK for iOS (Beta)'

s.description = 'Amazon Cognito Auth enables sign up and authentication of your end users via a hosted UI'

s.homepage = 'http://aws.amazon.com/mobile/sdk'
s.license = 'Apache License, Version 2.0'
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
s.platform = :ios, '9.0'
s.source = { :git => 'https://github.com/aws/aws-sdk-ios.git',
:tag => s.version}
s.requires_arc = true
s.source_files = 'AWSCognitoAuth/**/*.{h,m,c}'
s.public_header_files = 'AWSCognitoAuth/*.h'
s.private_header_files = 'AWSCognitoAuth/Internal/*.h'
end
Loading

0 comments on commit cf7119d

Please sign in to comment.