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

Commit

Permalink
Update library to 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Brateman committed Dec 15, 2015
1 parent a3f3d32 commit 101b9e6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All releases follow [semantic versioning](http://semver.org/).
The latest version is available via `mavenCentral()`. Just add the following dependency:

```
compile 'io.card:android-sdk:5.1.2'
compile 'io.card:android-sdk:5.2.0'
```

You can receive updates about new versions via a few different channels:
Expand Down Expand Up @@ -46,7 +46,7 @@ A manual entry fallback mode is provided for devices that do not meet these requ
##### If you use gradle, then add the following dependency from `mavenCentral()`:

```
compile 'io.card:android-sdk:5.1.2'
compile 'io.card:android-sdk:5.2.0'
```

##### If you use something other than gradle, then:
Expand Down
4 changes: 2 additions & 2 deletions SampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.android.tools.build:gradle:1.5.0'
}
}

Expand Down Expand Up @@ -52,7 +52,7 @@ dependencies {
if (parent != null) {
compile project(':card.io')
} else {
compile 'io.card:android-sdk:5.1.2'
compile 'io.card:android-sdk:5.2.0'
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void onScanPress(View v) {
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: false
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false); // default: false
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false); // default: false
scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CARDHOLDER_NAME, false); // default: false

// hides the manual entry button
// if set, developers should provide their own manual entry mechanism in the app
Expand Down Expand Up @@ -91,6 +92,10 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (scanResult.postalCode != null) {
resultStr += "Postal Code: " + scanResult.postalCode + "\n";
}

if (scanResult.cardholderName != null) {
resultStr += "Cardholder Name : " + scanResult.cardholderName + "\n";
}
} else {
resultStr = "Scan was canceled.";
}
Expand Down
Binary file renamed aars/card.io-5.1.2.aar → aars/card.io-5.2.0.aar
Binary file not shown.
7 changes: 7 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
card.io Android SDK change log and release notes
================================================

5.2.0
-----
* Add Cardholder Name to list of available manual entry fields, enabled via `CardIOActivity.EXTRA_REQUIRE_CARDHOLDER_NAME`. (Thank you Dan Nizri and Zach Sweigart!)
* Fix issue where certain devices would show the camera preview upside down [#91](https://github.com/card-io/card.io-Android-SDK/issues/91).
* Fix issue where null could be set in the return bundle value for `CardIOActivity.EXTRA_SCAN_RESULT`.
* Upgrade build tools.

5.1.2
-----
* Fix bug where denying the camera permission on Android 23 results in invalid data [#37-source](https://github.com/card-io/card.io-Android-source/issues/37).
Expand Down

0 comments on commit 101b9e6

Please sign in to comment.