diff --git a/CHANGELOG b/CHANGELOG index d049ea26867..355a5a3e34f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +== 4.0.1 2015-05-06 +* Fix a compiler warning + == 4.0.0 2015-05-06 * Remove STPPaymentPresenter * Support for latest ApplePayStubs diff --git a/Stripe.podspec b/Stripe.podspec index 79abc40caca..af0b6cc5449 100644 --- a/Stripe.podspec +++ b/Stripe.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Stripe' - s.version = '4.0.0' + s.version = '4.0.1' s.summary = 'Stripe is a web-based API for accepting payments online.' s.license = { :type => 'MIT', :file => 'LICENSE' } s.homepage = 'https://stripe.com/docs/mobile/ios' diff --git a/Stripe/Checkout/STPCheckoutOptions.m b/Stripe/Checkout/STPCheckoutOptions.m index b43e8c1a6b0..b14ce22f1dd 100644 --- a/Stripe/Checkout/STPCheckoutOptions.m +++ b/Stripe/Checkout/STPCheckoutOptions.m @@ -69,14 +69,18 @@ - (NSString *)stringifiedJSONRepresentation { - (void)setLogoImage:(STP_IMAGE_CLASS * __stp_nullable)logoImage { _logoImage = logoImage; + NSString *base64; #if TARGET_OS_IPHONE - NSString *base64 = [UIImagePNGRepresentation(logoImage) base64Encoding]; + NSData *pngRepresentation = UIImagePNGRepresentation(logoImage); + if ([pngRepresentation respondsToSelector:@selector(base64EncodedStringWithOptions:)]) { + base64 = [pngRepresentation base64EncodedStringWithOptions:0]; + } #else NSData *imageData = [logoImage TIFFRepresentation]; NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:imageData]; imageData = [imageRep representationUsingType:NSPNGFileType properties:@{NSImageCompressionFactor: @1.0}]; - NSString *base64 = [imageData base64EncodedStringWithOptions:0]; + base64 = [imageData base64EncodedStringWithOptions:0]; #endif if (base64) { NSString *dataURLString = [NSString stringWithFormat:@"data:png;base64,%@", base64]; diff --git a/Stripe/PublicHeaders/STPAPIClient.h b/Stripe/PublicHeaders/STPAPIClient.h index 4124694cde8..19437a9ed01 100644 --- a/Stripe/PublicHeaders/STPAPIClient.h +++ b/Stripe/PublicHeaders/STPAPIClient.h @@ -9,7 +9,7 @@ #import #import "STPNullabilityMacros.h" -static NSString *const __stp_nonnull STPSDKVersion = @"4.0.0"; +static NSString *const __stp_nonnull STPSDKVersion = @"4.0.1"; @class STPBankAccount, STPCard, STPToken; diff --git a/VERSION b/VERSION index fcdb2e109f6..1454f6ed4b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.0 +4.0.1