Skip to content

Commit

Permalink
The AWS Mobile SDK for iOS 2.5.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed May 18, 2017
1 parent ba33e83 commit 5664fca
Show file tree
Hide file tree
Showing 106 changed files with 438 additions and 191 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.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'

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.6";
static NSString *const AWSAPIGatewaySDKVersion = @"2.5.7";

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.6</string>
<string>2.5.7</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.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'
s.source_files = 'AWSAutoScaling/*.{h,m}'
end
2 changes: 1 addition & 1 deletion 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.6";
static NSString *const AWSAutoScalingSDKVersion = @"2.5.7";


@interface AWSAutoScalingResponseSerializer : AWSXMLResponseSerializer
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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
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.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'
s.source_files = 'AWSCloudWatch/*.{h,m}'
end
2 changes: 1 addition & 1 deletion 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.6";
static NSString *const AWSCloudWatchSDKVersion = @"2.5.7";


@interface AWSCloudWatchResponseSerializer : AWSXMLResponseSerializer
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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
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.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'
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
2 changes: 1 addition & 1 deletion 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.6";
static NSString *const AWSCognitoSDKVersion = @"2.5.7";

NSString *const AWSCognitoDidStartSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidStartSynchronizeNotification";
NSString *const AWSCognitoDidEndSynchronizeNotification = @"com.amazon.cognito.AWSCognitoDidEndSynchronizeNotification";
Expand Down
2 changes: 1 addition & 1 deletion 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.6";
static NSString *const AWSCognitoSyncSDKVersion = @"2.5.7";


@interface AWSCognitoSyncResponseSerializer : AWSJSONResponseSerializer
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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions AWSCognitoIdentityProvider.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSCognitoIdentityProvider'
s.version = '2.5.6'
s.version = '2.5.7'
s.summary = 'Amazon Cognito Identity Provider SDK for iOS (Beta)'

s.description = 'Amazon Cognito Identity Provider enables sign up and authentication of your end users'
Expand All @@ -12,7 +12,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.6'
s.dependency 'AWSCore', '2.5.7'
s.source_files = 'AWSCognitoIdentityProvider/**/*.{h,m,c}'
s.public_header_files = 'AWSCognitoIdentityProvider/*.h', 'AWSCognitoIdentityProvider/CognitoIdentityProvider/*.h'
s.private_header_files = 'AWSCognitoIdentityProvider/Internal/*.h'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "AWSCognitoIdentityProviderResources.h"

static NSString *const AWSInfoCognitoIdentityProvider = @"CognitoIdentityProvider";
static NSString *const AWSCognitoIdentityProviderSDKVersion = @"2.5.6";
static NSString *const AWSCognitoIdentityProviderSDKVersion = @"2.5.7";


@interface AWSCognitoIdentityProviderResponseSerializer : AWSJSONResponseSerializer
Expand Down
2 changes: 1 addition & 1 deletion AWSCognitoIdentityProvider/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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions AWSCognitoSync.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSCognitoSync'
s.version = '2.5.6'
s.version = '2.5.7'
s.summary = 'Amazon Cognito SDK for iOS'

s.description = 'Amazon Cognito offers multi device data synchronization with offline access'
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
:tag => s.version}
s.requires_arc = true
s.library = 'sqlite3'
s.dependency 'AWSCognito', '2.5.6'
s.dependency 'AWSCognito', '2.5.7'

s.deprecated = true
s.deprecated_in_favor_of = 'AWSCognito'
Expand Down
2 changes: 1 addition & 1 deletion AWSCore.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'AWSCore'
s.version = '2.5.6'
s.version = '2.5.7'
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 Down
2 changes: 1 addition & 1 deletion AWSCore/Authentication/AWSCredentialsProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ - (void)setUpWithRegionType:(AWSRegionType)regionType
getCredentialsRetry.identityId = self.identityId;
getCredentialsRetry.logins = logins;
getCredentialsRetry.customRoleArn = customRoleArn;

return [[self.cognitoIdentity getCredentialsForIdentity:getCredentialsRetry] continueWithBlock:^id _Nullable(AWSTask<AWSCognitoIdentityGetCredentialsForIdentityResponse *> * _Nonnull task) {
if (task.error) {
return [AWSTask taskWithError:[NSError errorWithDomain:AWSCognitoCredentialsProviderErrorDomain
Expand Down
2 changes: 1 addition & 1 deletion AWSCore/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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
20 changes: 10 additions & 10 deletions AWSCore/Logging/AWSDDLegacyMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ Disable legacy macros by importing AWSCocoaLumberjack.h or AWSDDLogMacros.h inst
#define LOG_LEVEL_VERBOSE AWSDDLogLevelVerbose
#define LOG_LEVEL_ALL AWSDDLogLevelAll

#define LOG_ASYNC_ENABLED YES
#define AWSDD_LOG_ASYNC_ENABLED YES

#define LOG_ASYNC_ERROR ( NO && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_WARN (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_INFO (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_DEBUG (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_VERBOSE (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_ERROR ( NO && AWSDD_LOG_ASYNC_ENABLED)
#define LOG_ASYNC_WARN (YES && AWSDD_LOG_ASYNC_ENABLED)
#define LOG_ASYNC_INFO (YES && AWSDD_LOG_ASYNC_ENABLED)
#define LOG_ASYNC_DEBUG (YES && AWSDD_LOG_ASYNC_ENABLED)
#define LOG_ASYNC_VERBOSE (YES && AWSDD_LOG_ASYNC_ENABLED)

#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
#define AWSDD_LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
[AWSDDLog log : isAsynchronous \
level : lvl \
flag : flg \
Expand All @@ -56,11 +56,11 @@ Disable legacy macros by importing AWSCocoaLumberjack.h or AWSDDLogMacros.h inst
tag : atag \
format : (frmt), ## __VA_ARGS__]

#define LOG_MAYBE(async, lvl, flg, ctx, fnct, frmt, ...) \
do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, ##__VA_ARGS__); } while(0)
#define AWSDD_LOG_MAYBE(async, lvl, flg, ctx, fnct, frmt, ...) \
do { if(lvl & flg) AWSDD_LOG_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, ##__VA_ARGS__); } while(0)

#define LOG_OBJC_MAYBE(async, lvl, flg, ctx, frmt, ...) \
LOG_MAYBE(async, lvl, flg, ctx, __PRETTY_FUNCTION__, frmt, ## __VA_ARGS__)
AWSDD_LOG_MAYBE(async, lvl, flg, ctx, __PRETTY_FUNCTION__, frmt, ## __VA_ARGS__)

#define AWSDDLogError(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_ERROR, LOG_LEVEL_DEF, LOG_FLAG_ERROR, 0, frmt, ##__VA_ARGS__)
#define AWSDDLogWarn(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_WARN, LOG_LEVEL_DEF, LOG_FLAG_WARN, 0, frmt, ##__VA_ARGS__)
Expand Down
28 changes: 14 additions & 14 deletions AWSCore/Logging/AWSDDLogMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* Whether async should be used by log messages, excluding error messages that are always sent sync.
**/
#ifndef LOG_ASYNC_ENABLED
#define LOG_ASYNC_ENABLED YES
#ifndef AWSDD_LOG_ASYNC_ENABLED
#define AWSDD_LOG_ASYNC_ENABLED YES
#endif

/**
* These are the two macros that all other macros below compile into.
* These big multiline macros makes all the other macros easier to read.
**/
#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
#define AWSDD_LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
[AWSDDLog log : isAsynchronous \
level : lvl \
flag : flg \
Expand Down Expand Up @@ -72,23 +72,23 @@
*
* We also define shorthand versions for asynchronous and synchronous logging.
**/
#define LOG_MAYBE(async, lvl, flg, ctx, tag, fnct, frmt, ...) \
do { LOG_MACRO(async, lvl, flg, ctx, tag, fnct, frmt, ##__VA_ARGS__); } while(0)
#define AWSDD_LOG_MAYBE(async, lvl, flg, ctx, tag, fnct, frmt, ...) \
do { AWSDD_LOG_MACRO(async, lvl, flg, ctx, tag, fnct, frmt, ##__VA_ARGS__); } while(0)

#define LOG_MAYBE_TO_AWSDDLOG(ddlog, async, lvl, flg, ctx, tag, fnct, frmt, ...) \
do { LOG_MACRO_TO_AWSDDLOG(ddlog, async, lvl, flg, ctx, tag, fnct, frmt, ##__VA_ARGS__); } while(0)

/**
* Ready to use log macros with no context or tag.
**/
#define AWSDDLogError(frmt, ...) LOG_MAYBE(NO, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagError, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogWarn(frmt, ...) LOG_MAYBE(LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagWarning, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogInfo(frmt, ...) LOG_MAYBE(LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagInfo, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogDebug(frmt, ...) LOG_MAYBE(LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagDebug, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogVerbose(frmt, ...) LOG_MAYBE(LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagVerbose, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogError(frmt, ...) AWSDD_LOG_MAYBE(NO, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagError, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogWarn(frmt, ...) AWSDD_LOG_MAYBE(AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagWarning, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogInfo(frmt, ...) AWSDD_LOG_MAYBE(AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagInfo, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogDebug(frmt, ...) AWSDD_LOG_MAYBE(AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagDebug, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogVerbose(frmt, ...) AWSDD_LOG_MAYBE(AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagVerbose, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)

#define AWSDDLogErrorToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, NO, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagError, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogWarnToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagWarning, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogInfoToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagInfo, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogDebugToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagDebug, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogVerboseToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagVerbose, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogWarnToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagWarning, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogInfoToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagInfo, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogDebugToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagDebug, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#define AWSDDLogVerboseToAWSDDLog(ddlog, frmt, ...) LOG_MAYBE_TO_AWSDDLOG(ddlog, AWSDD_LOG_ASYNC_ENABLED, [AWSDDLog sharedInstance].logLevel, AWSDDLogFlagVerbose, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
2 changes: 1 addition & 1 deletion AWSCore/Service/AWSService.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#import "AWSCocoaLumberjack.h"
#import "AWSCategory.h"

NSString *const AWSiOSSDKVersion = @"2.5.6";
NSString *const AWSiOSSDKVersion = @"2.5.7";
NSString *const AWSServiceErrorDomain = @"com.amazonaws.AWSServiceErrorDomain";

static NSString *const AWSServiceConfigurationUnknown = @"Unknown";
Expand Down
12 changes: 7 additions & 5 deletions AWSCoreTests/AWSCognitoCredentialsProviderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,15 @@ + (void)createFBAccount {

// Get the FB APP access token
NSString *raw_response = [NSString stringWithContentsOfURL:[NSURL URLWithString:accessURI] encoding:NSUTF8StringEncoding error:nil];
NSRange startOfToken = [raw_response rangeOfString:@"="];
NSDictionary *accessTokenDictionary = [NSJSONSerialization JSONObjectWithData:[raw_response dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableLeaves error:nil];
NSString *accessToken = accessTokenDictionary[@"access_token"];
//NSRange startOfToken = [raw_response rangeOfString:@"="];
// Strip the 'access_token=' so we can easily encode result
_facebookAppToken = [[raw_response substringFromIndex:startOfToken.location + 1] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

//_facebookAppToken = [[raw_response substringFromIndex:startOfToken.location + 1] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
// Add a new test user, the result contains an access key we can use to test assume role
NSString *addUserURI = [NSString stringWithFormat:@"https://graph.facebook.com/%@/accounts/test-users?installed=true&name=Foo%%20Bar&locale=en_US&permissions=read_stream&method=post&access_token=%@", AWSCognitoCredentialsProviderTestsFacebookAppID, _facebookAppToken];

NSString *addUserURI = [NSString stringWithFormat:@"https://graph.facebook.com/%@/accounts/test-users?installed=true&name=Foo%%20Bar&locale=en_US&permissions=read_stream&method=post&access_token=%@", AWSCognitoCredentialsProviderTestsFacebookAppID, [accessToken aws_stringWithURLEncodingPath]];
NSError *error = nil;
NSString *newUser = [NSString stringWithContentsOfURL:[NSURL URLWithString:addUserURI]
encoding:NSASCIIStringEncoding
Expand Down
4 changes: 2 additions & 2 deletions AWSDynamoDB.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSDynamoDB'
s.version = '2.5.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'
s.source_files = 'AWSDynamoDB/*.{h,m}'
end
2 changes: 1 addition & 1 deletion AWSDynamoDB/AWSDynamoDBService.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#import "AWSDynamoDBRequestRetryHandler.h"

static NSString *const AWSInfoDynamoDB = @"DynamoDB";
static NSString *const AWSDynamoDBSDKVersion = @"2.5.6";
static NSString *const AWSDynamoDBSDKVersion = @"2.5.7";


@interface AWSDynamoDBResponseSerializer : AWSJSONResponseSerializer
Expand Down
2 changes: 1 addition & 1 deletion AWSDynamoDB/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.6</string>
<string>2.5.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions AWSEC2.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AWSEC2'
s.version = '2.5.6'
s.version = '2.5.7'
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.6'
s.dependency 'AWSCore', '2.5.7'
s.source_files = 'AWSEC2/*.{h,m}'
end
Loading

0 comments on commit 5664fca

Please sign in to comment.