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

Commit 9173709

Browse files
author
Bryant Luk
committed
Release 5.2.0
1 parent 3beb062 commit 9173709

16 files changed

+85
-14
lines changed

CardIO.podspec

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'CardIO'
3-
spec.version = '5.1.1'
3+
spec.version = '5.2.0'
44
spec.license = { type: 'MIT', file: 'LICENSE.md' }
55
spec.homepage = 'https://www.card.io'
66
spec.authors = { 'CardIO' => '[email protected]' }
@@ -14,4 +14,8 @@ Pod::Spec.new do |spec|
1414
spec.frameworks = 'AVFoundation', 'AudioToolbox', 'CoreMedia', 'CoreVideo', 'MobileCoreServices', 'OpenGLES', 'QuartzCore', 'Security', 'UIKit'
1515
spec.libraries = 'c++'
1616
spec.vendored_libraries = 'CardIO/libCardIO.a'
17-
end
17+
spec.prepare_command = <<-CMD
18+
[ -f CardIO/libCardIO.a ] && rm CardIO/libCardIO.a
19+
unzip -d CardIO/ CardIO/libCardIO.a.zip
20+
CMD
21+
end

CardIO/CardIO.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIO.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOCreditCardInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOCreditCardInfo.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIODetectionMode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIODetectionMode.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOPaymentViewController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOPaymentViewController.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOPaymentViewControllerDelegate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOPaymentViewControllerDelegate.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOUtilities.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOUtilities.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOView.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOView.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/CardIOViewDelegate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CardIOViewDelegate.h
3-
// Version 5.1.1
3+
// Version 5.2.0
44
//
55
// See the file "LICENSE.md" for the full license governing this code.
66
//

CardIO/libCardIO.a

-13.2 MB
Binary file not shown.

CardIO/libCardIO.a.zip

89.9 MB
Binary file not shown.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pod 'CardIO'
6262
##### If you don't use CocoaPods, then:
6363

6464
1. Download the latest version of the SDK.
65-
2. Add the CardIO directory (containing several .h files and libCardIO.a) to your Xcode project.
65+
2. Add the CardIO directory (containing several .h files and libCardIO.a) to your Xcode project. You will need to unzip `libCardIO.a.zip` to get the `libCardIO.a`.
6666
3. In your project's Build Settings (in the `TARGETS` section, not the `PROJECTS` section), add `-lc++` to `Other Linker Flags`.
6767
4. *Either:*
6868
* Add these frameworks to your project.

SampleApp-Swift/SampleApp-Swift.xcodeproj/project.pbxproj

+28
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
isa = PBXNativeTarget;
151151
buildConfigurationList = D534F1E01A324F64003C3AB4 /* Build configuration list for PBXNativeTarget "SampleApp-Swift" */;
152152
buildPhases = (
153+
A5DFB2B31BBC985E00AA810C /* Unzip libCardIO.a.zip */,
153154
D534F1BD1A324F63003C3AB4 /* Sources */,
154155
D534F1BE1A324F63003C3AB4 /* Frameworks */,
155156
D534F1BF1A324F63003C3AB4 /* Resources */,
@@ -187,6 +188,8 @@
187188
D534F1B91A324F63003C3AB4 /* Project object */ = {
188189
isa = PBXProject;
189190
attributes = {
191+
LastSwiftMigration = 0700;
192+
LastSwiftUpdateCheck = 0700;
190193
LastUpgradeCheck = 0610;
191194
ORGANIZATIONNAME = "Punskyy, Roman";
192195
TargetAttributes = {
@@ -238,6 +241,23 @@
238241
};
239242
/* End PBXResourcesBuildPhase section */
240243

244+
/* Begin PBXShellScriptBuildPhase section */
245+
A5DFB2B31BBC985E00AA810C /* Unzip libCardIO.a.zip */ = {
246+
isa = PBXShellScriptBuildPhase;
247+
buildActionMask = 2147483647;
248+
files = (
249+
);
250+
inputPaths = (
251+
);
252+
name = "Unzip libCardIO.a.zip";
253+
outputPaths = (
254+
);
255+
runOnlyForDeploymentPostprocessing = 0;
256+
shellPath = /bin/sh;
257+
shellScript = "[ -f ../CardIO/libCardIO.a ] && rm ../CardIO/libCardIO.a\nunzip -d ../CardIO/ ../CardIO/libCardIO.a.zip";
258+
};
259+
/* End PBXShellScriptBuildPhase section */
260+
241261
/* Begin PBXSourcesBuildPhase section */
242262
D534F1BD1A324F63003C3AB4 /* Sources */ = {
243263
isa = PBXSourcesBuildPhase;
@@ -379,6 +399,10 @@
379399
"$(inherited)",
380400
../CardIO,
381401
);
402+
OTHER_LDFLAGS = (
403+
"-lc++",
404+
"-ObjC",
405+
);
382406
PRODUCT_NAME = "$(TARGET_NAME)";
383407
};
384408
name = Debug;
@@ -393,6 +417,10 @@
393417
"$(inherited)",
394418
../CardIO,
395419
);
420+
OTHER_LDFLAGS = (
421+
"-lc++",
422+
"-ObjC",
423+
);
396424
PRODUCT_NAME = "$(TARGET_NAME)";
397425
};
398426
name = Release;

SampleApp-Swift/SampleApp-Swift/ViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ViewController: UIViewController, CardIOPaymentViewControllerDelegate {
2222
}
2323

2424
@IBAction func scanCard(sender: AnyObject) {
25-
var cardIOVC = CardIOPaymentViewController(paymentDelegate: self)
25+
let cardIOVC = CardIOPaymentViewController(paymentDelegate: self)
2626
cardIOVC.modalPresentationStyle = .FormSheet
2727
presentViewController(cardIOVC, animated: true, completion: nil)
2828
}

SampleApp/ScanExample.xcodeproj/project.pbxproj

+28-2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
isa = PBXNativeTarget;
169169
buildConfigurationList = 0A2C90541564175A000727BC /* Build configuration list for PBXNativeTarget "ScanExample" */;
170170
buildPhases = (
171+
A5DFB2B41BBC994400AA810C /* Unzip libCardIO.a.zip */,
171172
0A2C902F1564175A000727BC /* Sources */,
172173
0A2C90301564175A000727BC /* Frameworks */,
173174
0A2C90311564175A000727BC /* Resources */,
@@ -221,6 +222,23 @@
221222
};
222223
/* End PBXResourcesBuildPhase section */
223224

225+
/* Begin PBXShellScriptBuildPhase section */
226+
A5DFB2B41BBC994400AA810C /* Unzip libCardIO.a.zip */ = {
227+
isa = PBXShellScriptBuildPhase;
228+
buildActionMask = 2147483647;
229+
files = (
230+
);
231+
inputPaths = (
232+
);
233+
name = "Unzip libCardIO.a.zip";
234+
outputPaths = (
235+
);
236+
runOnlyForDeploymentPostprocessing = 0;
237+
shellPath = /bin/sh;
238+
shellScript = "[ -f ../CardIO/libCardIO.a ] && rm ../CardIO/libCardIO.a\nunzip -d ../CardIO/ ../CardIO/libCardIO.a.zip";
239+
};
240+
/* End PBXShellScriptBuildPhase section */
241+
224242
/* Begin PBXSourcesBuildPhase section */
225243
0A2C902F1564175A000727BC /* Sources */ = {
226244
isa = PBXSourcesBuildPhase;
@@ -295,6 +313,7 @@
295313
GCC_WARN_UNUSED_VARIABLE = YES;
296314
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
297315
ONLY_ACTIVE_ARCH = YES;
316+
OTHER_LDFLAGS = "-ObjC";
298317
SDKROOT = iphoneos;
299318
TARGETED_DEVICE_FAMILY = "1,2";
300319
};
@@ -327,6 +346,7 @@
327346
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
328347
ONLY_ACTIVE_ARCH = NO;
329348
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
349+
OTHER_LDFLAGS = "-ObjC";
330350
SDKROOT = iphoneos;
331351
TARGETED_DEVICE_FAMILY = "1,2";
332352
VALIDATE_PRODUCT = YES;
@@ -344,7 +364,10 @@
344364
"$(inherited)",
345365
"$(SRCROOT)/../CardIO",
346366
);
347-
OTHER_LDFLAGS = "-lc++";
367+
OTHER_LDFLAGS = (
368+
"-lc++",
369+
"-ObjC",
370+
);
348371
PRODUCT_NAME = "$(TARGET_NAME)";
349372
WRAPPER_EXTENSION = app;
350373
};
@@ -361,7 +384,10 @@
361384
"$(inherited)",
362385
"$(SRCROOT)/../CardIO",
363386
);
364-
OTHER_LDFLAGS = "-lc++";
387+
OTHER_LDFLAGS = (
388+
"-lc++",
389+
"-ObjC",
390+
);
365391
PRODUCT_NAME = "$(TARGET_NAME)";
366392
WRAPPER_EXTENSION = app;
367393
};

release_notes.txt

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
card.io iOS SDK release notes
22
=============================
33

4+
5.2.0 (Wed 9/30/2015)
5+
6+
* Enable Bitcode
7+
(https://github.com/card-io/card.io-iOS-SDK/issues/119)
8+
The library is now built with Xcode 7.0. It has Bitcode enabled which
9+
does significantly increase the static library. However, when an app
10+
is compiled and distributed by the App Store, the app size should not
11+
significantly increase compared to before Bitcode enablement. You must also
12+
use Xcode 7 since previous versions of Xcode are not fully compatible
13+
with Bitcode enabled libraries.
14+
15+
--
16+
417
5.1.1 (Wed 8/26/2015)
518

619
* Update CocoaPods podspec to use `vendored_libraries`.

0 commit comments

Comments
 (0)