Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Release 2.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Patel committed Feb 9, 2018
1 parent f24cc96 commit 1b20ff7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
PayPal Android SDK release notes
================================

2.16.0
------
* Return transactionId on success [#402](https://github.com/paypal/PayPal-Android-SDK/issues/402).
* Update translations.
* Update SSL pinning cerificates.

2.15.3
------
* Update risk-component to 3.5.7.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The PayPal Android SDK makes it easy to add PayPal payments to mobile apps.
The PayPal Android SDK is now available at [Maven Repository](https://repo1.maven.org/maven2/com/paypal/sdk/paypal-android-sdk/). The latest version is available via `mavenCentral()`:

```groovy
compile 'com.paypal.sdk:paypal-android-sdk:2.15.3'
compile 'com.paypal.sdk:paypal-android-sdk:2.16.0'
```


Expand Down Expand Up @@ -126,7 +126,7 @@ The SDK supports multiple currencies. See [the REST API country and currency doc
Disabling Direct Credit Card Payments is now preferred. To completely disable Direct Credit Card (DCC) payments, exclude the card.io library in your application `build.gradle`:
```groovy
dependencies {
compile('com.paypal.sdk:paypal-android-sdk:2.15.3') {
compile('com.paypal.sdk:paypal-android-sdk:2.16.0') {
exclude group: 'io.card'
}
}
Expand Down
8 changes: 4 additions & 4 deletions SampleApp-Kotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.0.4'
ext.kotlin_version = '1.1.50'
repositories {
jcenter()
mavenCentral()
Expand All @@ -19,12 +19,12 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 24
compileSdkVersion 26
buildToolsVersion '24.0.1'

defaultConfig {
minSdkVersion 18
targetSdkVersion 24
targetSdkVersion 26
}

signingConfigs {
Expand Down Expand Up @@ -80,7 +80,7 @@ dependencies {
if (parent != null) {
compile project(path: ':androidSDK', configuration: 'generalDebug')
} else {
compile('com.paypal.sdk:paypal-android-sdk:2.15.3')
compile('com.paypal.sdk:paypal-android-sdk:2.16.0')
}
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,17 @@ class SampleActivity : Activity() {
}

protected fun displayResultText(result: String) {
(findViewById(R.id.txtResult) as TextView).text = "Result : " + result
var resultView:TextView = findViewById(R.id.txtResult)
resultView.text = "Result : " + result
Toast.makeText(
applicationContext,
result, Toast.LENGTH_LONG).show()
}

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (requestCode == REQUEST_CODE_PAYMENT) {
if (resultCode == Activity.RESULT_OK) {
val confirm = data.getParcelableExtra<PaymentConfirmation>(PaymentActivity.EXTRA_RESULT_CONFIRMATION)
val confirm = data?.getParcelableExtra<PaymentConfirmation>(PaymentActivity.EXTRA_RESULT_CONFIRMATION)
if (confirm != null) {
try {
Log.i(TAG, confirm.toJSONObject().toString(4))
Expand Down Expand Up @@ -197,7 +198,7 @@ class SampleActivity : Activity() {
}
} else if (requestCode == REQUEST_CODE_FUTURE_PAYMENT) {
if (resultCode == Activity.RESULT_OK) {
val auth = data.getParcelableExtra<PayPalAuthorization>(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION)
val auth = data?.getParcelableExtra<PayPalAuthorization>(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION)
if (auth != null) {
try {
Log.i("FuturePaymentExample", auth.toJSONObject().toString(4))
Expand All @@ -222,7 +223,7 @@ class SampleActivity : Activity() {
}
} else if (requestCode == REQUEST_CODE_PROFILE_SHARING) {
if (resultCode == Activity.RESULT_OK) {
val auth = data.getParcelableExtra<PayPalAuthorization>(PayPalProfileSharingActivity.EXTRA_RESULT_AUTHORIZATION)
val auth = data?.getParcelableExtra<PayPalAuthorization>(PayPalProfileSharingActivity.EXTRA_RESULT_AUTHORIZATION)
if (auth != null) {
try {
Log.i("ProfileSharingExample", auth.toJSONObject().toString(4))
Expand Down
6 changes: 3 additions & 3 deletions SampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ repositories {
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
compileSdkVersion 26
buildToolsVersion '24.0.1'

defaultConfig {
minSdkVersion 18
targetSdkVersion 24
targetSdkVersion 26
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}

Expand Down Expand Up @@ -89,7 +89,7 @@ dependencies {
generalCompile project(path: ':androidSDK', configuration: 'generalDebug')
partnerCompile project(path: ':androidSDK', configuration: 'partnerDebug')
} else {
compile('com.paypal.sdk:paypal-android-sdk:2.15.3')
compile('com.paypal.sdk:paypal-android-sdk:2.16.0')
}
compile 'com.google.android.gms:play-services-wallet:8.4.0'

Expand Down
Binary file removed aars/PayPalAndroidSDK-2.15.3.aar
Binary file not shown.
Binary file added aars/PayPalAndroidSDK-2.16.0.aar
Binary file not shown.

0 comments on commit 1b20ff7

Please sign in to comment.