Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ios): update Stripe iOS SDK to latest #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions stripe_ios/ios/Classes/ComRavindraStripeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
* Copyright (c) 2020 Your Company. All rights reserved.
*/

#import "TiModule.h"
#import <Stripe/Stripe.h>
@import TitaniumKit;
@import Stripe;

@interface ComRavindraStripeModule : TiModule<STPAuthenticationContext>{

}
@interface ComRavindraStripeModule : TiModule <STPAuthenticationContext>

-(void)initialize:(id)args;
-(void)createPaymentMethod:(id) args;
Expand Down
25 changes: 3 additions & 22 deletions stripe_ios/ios/Classes/ComRavindraStripeModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,22 @@
*/

#import "ComRavindraStripeModule.h"
#import "TiBase.h"
#import "TiHost.h"
#import "TiUtils.h"
#import <TiApp.h>
@import TitaniumKit;

@implementation ComRavindraStripeModule

#pragma mark Internal

// This is generated for your module, please do not change it
- (id)moduleGUID
{
return @"7c1b9991-2bbe-4f2d-b2d6-40daeea8bd33";
}

// This is generated for your module, please do not change it
- (NSString *)moduleId
{
return @"com.ravindra.stripe";
}

#pragma mark Lifecycle

- (void)startup
{
// This method is called when the module is first loaded
// You *must* call the superclass
[super startup];
DebugLog(@"[DEBUG] %@ loaded", self);
}


#pragma Public APIs

- (void)initialize:(id)args
Expand All @@ -63,8 +47,8 @@ -(void)createPaymentMethod:(id) args {
ENSURE_SINGLE_ARG(args,NSDictionary);

NSString* cardNumber = nil;
int month;
int expiryYear;
int month = 1;
int expiryYear = 2022;
NSString* cvc = nil;
KrollCallback *paymentMethodCallback;

Expand Down Expand Up @@ -231,10 +215,7 @@ -(void)handleNextActionForPaymentIntentWithAuthentication:(id) args{
[self _fireEventToListener:@"handleNextActionForPaymentIntentCallback" withObject:event listener:handleNextActionForPaymentIntentCallback thisObject:nil];
break;
}

}];
}



@end
304 changes: 304 additions & 0 deletions stripe_ios/ios/build/build_iphone.log

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions stripe_ios/ios/build/com.ravindra.stripe.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libcom.ravindra.stripe.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libcom.ravindra.stripe.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is to ensure the Headers directory gets checked into source control
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is to ensure the Headers directory gets checked into source control
Binary file not shown.
14 changes: 14 additions & 0 deletions stripe_ios/ios/build/iphoneos.xcarchive/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ArchiveVersion</key>
<integer>2</integer>
<key>CreationDate</key>
<date>2022-03-14T14:07:41Z</date>
<key>Name</key>
<string>stripe_ios</string>
<key>SchemeName</key>
<string>stripe_ios</string>
</dict>
</plist>
Binary file not shown.
14 changes: 14 additions & 0 deletions stripe_ios/ios/build/iphonesimulator.xcarchive/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ArchiveVersion</key>
<integer>2</integer>
<key>CreationDate</key>
<date>2022-03-14T14:07:39Z</date>
<key>Name</key>
<string>stripe_ios</string>
<key>SchemeName</key>
<string>stripe_ios</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
31 changes: 6 additions & 25 deletions stripe_ios/ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,18 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 3.0
version: 4.0.0
apiversion: 2
architectures: armv7 arm64 i386 x86_64
architectures: arm64 x86_64
description: stripe_ios
author: Ravindra Chherke
license: The MIT License

Copyright 2015 Ravindra Kumar Chherke

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
author: Ravindra Church
license: MIT
copyright: 2020
mac: false

# these should not be edited
name: stripe_ios
moduleid: com.ravindra.stripe
guid: 7c1b9991-2bbe-4f2d-b2d6-40daeea8bd33
platform: iphone
minsdk: 8.0.0.GA
minsdk: 9.2.0.GA
11 changes: 0 additions & 11 deletions stripe_ios/ios/platform/README.md

This file was deleted.

Binary file removed stripe_ios/ios/platform/Stripe.framework/Assets.car
Binary file not shown.

This file was deleted.

This file was deleted.

Loading