Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Release 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Goldman committed Jan 20, 2015
1 parent b04a3c0 commit b651afc
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CardIO.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'CardIO'
spec.version = '4.0.2'
spec.version = '5.0.0'
spec.license = { type: 'MIT', file: 'LICENSE.md' }
spec.homepage = 'https://www.card.io'
spec.authors = { 'CardIO' => 'support@paypal.com' }
Expand Down
2 changes: 1 addition & 1 deletion CardIO/CardIO.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIO.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down
9 changes: 1 addition & 8 deletions CardIO/CardIOCreditCardInfo.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOCreditCardInfo.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand All @@ -10,9 +10,6 @@

/// CardIOCreditCardType Identifies type of card.
typedef NS_ENUM(NSInteger, CardIOCreditCardType) {
/// Deprecated.
/// @see CardIOCreditCardTypeUnrecognized, CardIOCreditCardTypeAmbiguous
CardIOCreditCardTypeUnknown __attribute__((deprecated("Use CardIOCreditCardTypeUnrecognized or CardIOCreditCardTypeAmbiguous instead."))) = 0,
/// The card number does not correspond to any recognizable card type.
CardIOCreditCardTypeUnrecognized = 0,
/// The card number corresponds to multiple card types (e.g., when only a few digits have been entered).
Expand Down Expand Up @@ -55,10 +52,6 @@ typedef NS_ENUM(NSInteger, CardIOCreditCardType) {
/// @note May be nil, if postal code information was not requested.
@property(nonatomic, copy, readwrite) NSString *postalCode;

/// Deprecated.
/// @see postalCode
@property(nonatomic, copy, readwrite, getter=postalCode, setter=setPostalCode:) NSString *zip __attribute__((deprecated("Use postalCode instead.")));

/// Was the card number scanned (as opposed to entered manually)?
@property(nonatomic, assign, readwrite) BOOL scanned;

Expand Down
2 changes: 1 addition & 1 deletion CardIO/CardIODetectionMode.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIODetectionMode.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down
19 changes: 6 additions & 13 deletions CardIO/CardIOPaymentViewController.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOPaymentViewController.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down Expand Up @@ -123,9 +123,11 @@

/// Set to YES if you need to collect the billing postal code. Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL collectPostalCode;
/// Deprecated.
/// @see collectPostalCode
@property(nonatomic, assign, readwrite, getter=collectPostalCode, setter=setCollectPostalCode:) BOOL collectZip __attribute__((deprecated("Use collectPostalCode instead.")));

/// Set to NO if you don't want the camera to try to scan the card expiration.
/// Applies only if collectExpiry is also YES.
/// Defaults to YES.
@property(nonatomic, assign, readwrite) BOOL scanExpiry;

/// Set to YES to show the card.io logo over the camera view instead of the PayPal logo. Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL useCardIOLogo;
Expand Down Expand Up @@ -167,13 +169,4 @@ extern NSString * const CardIOCurrentScanningOrientation;
/// Returned as an NSNumber wrapping an NSTimeInterval (i.e. a double).
extern NSString * const CardIOScanningOrientationAnimationDuration;


#pragma mark - Deprecated properties

/// Previous versions of card.io (prior to 3.2.3) provided an informative message when the user first launched card.io.
@property(nonatomic, assign, readwrite) BOOL showsFirstUseAlert __attribute__((deprecated("The former first-time alert is no more.")));

/// Previous versions of card.io (prior to 3.10.0) required you to obtain an "application token" from the card.io website.
@property(nonatomic, copy, readwrite) NSString *appToken __attribute__((deprecated("The former appToken is no longer required.")));

@end
2 changes: 1 addition & 1 deletion CardIO/CardIOPaymentViewControllerDelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOPaymentViewControllerDelegate.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down
2 changes: 1 addition & 1 deletion CardIO/CardIOUtilities.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOUtilities.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down
18 changes: 8 additions & 10 deletions CardIO/CardIOView.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOView.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down Expand Up @@ -44,6 +44,9 @@
/// Set to YES to show the card.io logo over the camera instead of the PayPal logo. Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL useCardIOLogo;

/// Hide the PayPal or card.io logo in the scan view. Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL hideCardIOLogo;

/// By default, in camera view the card guide and the buttons always rotate to match the device's orientation.
/// All four orientations are permitted, regardless of any app or viewcontroller constraints.
/// If you wish, the card guide and buttons can instead obey standard iOS constraints, including
Expand All @@ -55,9 +58,6 @@
/// Use newlines as desired to control the wrapping of text onto multiple lines.
@property(nonatomic, copy, readwrite) NSString *scanInstructions;

/// Hide the PayPal or card.io logo in the scan view. Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL hideCardIOLogo;

/// A custom view that will be overlaid atop the entire scan view. Defaults to nil.
/// If you set a scanOverlayView, be sure to:
///
Expand All @@ -74,6 +74,10 @@
/// * Minimize animations, redrawing, or any other CPU/GPU/memory intensive activities
@property(nonatomic, retain, readwrite) UIView *scanOverlayView;

/// Set to NO if you don't want the camera to try to scan the card expiration.
/// Defaults to YES.
@property(nonatomic, assign, readwrite) BOOL scanExpiry;

/// CardIODetectionModeCardImageAndNumber: the scanner must successfully identify the card number.
/// CardIODetectionModeCardImageOnly: don't scan the card, just detect a credit-card-shaped card.
/// CardIODetectionModeAutomatic: start as CardIODetectionModeCardImageAndNumber, but fall back to
Expand Down Expand Up @@ -118,10 +122,4 @@ extern NSString * const CardIOScanningOrientationAnimationDuration;
/// You might want to use this, for example, when adjusting your view controller's view layout.
@property(nonatomic, assign, readonly) CGRect cameraPreviewFrame;


#pragma mark - Deprecated properties

/// Previous versions of card.io (prior to 3.10.0) required you to obtain an "application token" from the card.io website.
@property(nonatomic, copy, readwrite) NSString *appToken __attribute__((deprecated("The former appToken is no longer required.")));

@end
2 changes: 1 addition & 1 deletion CardIO/CardIOViewDelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CardIOViewDelegate.h
// Version 4.0.2
// Version 5.0.0
//
// See the file "LICENSE.md" for the full license governing this code.
//
Expand Down
Binary file modified CardIO/libCardIO.a
Binary file not shown.
10 changes: 10 additions & 0 deletions release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
card.io iOS SDK release notes
=============================

5.0.0 (Tue 1/20/2015)

* Add automatic expiry-scanning.
You can disable this feature via the new `scanExpiry` property of either CardIOView or CardIOPaymentViewController.
Note: Expiry scans will not infrequently fail to obtain the correct expiry date.
We are continuing to work to improve expiry-scanning accuracy.
* Remove various deprecated properties.

--

4.0.2 (Tue 1/13/2015)

* Fix an iOS 8 display issue involving right-to-left languages. (https://github.com/card-io/card.io-iOS-SDK/issues/90)
Expand Down

0 comments on commit b651afc

Please sign in to comment.