Skip to content

Commit

Permalink
4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-stripe committed May 6, 2015
1 parent 8077f8d commit 551d231
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Stripe.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
8 changes: 6 additions & 2 deletions Stripe/Checkout/STPCheckoutOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion Stripe/PublicHeaders/STPAPIClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#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;

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
4.0.1

0 comments on commit 551d231

Please sign in to comment.