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

Commit 1b20ff7

Browse files
author
Patel
committed
Release 2.16.0
1 parent f24cc96 commit 1b20ff7

File tree

7 files changed

+21
-14
lines changed

7 files changed

+21
-14
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
PayPal Android SDK release notes
22
================================
33

4+
2.16.0
5+
------
6+
* Return transactionId on success [#402](https://github.com/paypal/PayPal-Android-SDK/issues/402).
7+
* Update translations.
8+
* Update SSL pinning cerificates.
9+
410
2.15.3
511
------
612
* Update risk-component to 3.5.7.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The PayPal Android SDK makes it easy to add PayPal payments to mobile apps.
2929
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()`:
3030

3131
```groovy
32-
compile 'com.paypal.sdk:paypal-android-sdk:2.15.3'
32+
compile 'com.paypal.sdk:paypal-android-sdk:2.16.0'
3333
```
3434

3535

@@ -126,7 +126,7 @@ The SDK supports multiple currencies. See [the REST API country and currency doc
126126
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`:
127127
```groovy
128128
dependencies {
129-
compile('com.paypal.sdk:paypal-android-sdk:2.15.3') {
129+
compile('com.paypal.sdk:paypal-android-sdk:2.16.0') {
130130
exclude group: 'io.card'
131131
}
132132
}

SampleApp-Kotlin/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.0.4'
2+
ext.kotlin_version = '1.1.50'
33
repositories {
44
jcenter()
55
mavenCentral()
@@ -19,12 +19,12 @@ apply plugin: 'com.android.application'
1919
apply plugin: 'kotlin-android'
2020

2121
android {
22-
compileSdkVersion 24
22+
compileSdkVersion 26
2323
buildToolsVersion '24.0.1'
2424

2525
defaultConfig {
2626
minSdkVersion 18
27-
targetSdkVersion 24
27+
targetSdkVersion 26
2828
}
2929

3030
signingConfigs {
@@ -80,7 +80,7 @@ dependencies {
8080
if (parent != null) {
8181
compile project(path: ':androidSDK', configuration: 'generalDebug')
8282
} else {
83-
compile('com.paypal.sdk:paypal-android-sdk:2.15.3')
83+
compile('com.paypal.sdk:paypal-android-sdk:2.16.0')
8484
}
8585
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
8686
}

SampleApp-Kotlin/src/main/java/com/paypal/example/paypalandroidsdkexample/SampleActivity.kt

+6-5
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,17 @@ class SampleActivity : Activity() {
157157
}
158158

159159
protected fun displayResultText(result: String) {
160-
(findViewById(R.id.txtResult) as TextView).text = "Result : " + result
160+
var resultView:TextView = findViewById(R.id.txtResult)
161+
resultView.text = "Result : " + result
161162
Toast.makeText(
162163
applicationContext,
163164
result, Toast.LENGTH_LONG).show()
164165
}
165166

166-
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
167+
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
167168
if (requestCode == REQUEST_CODE_PAYMENT) {
168169
if (resultCode == Activity.RESULT_OK) {
169-
val confirm = data.getParcelableExtra<PaymentConfirmation>(PaymentActivity.EXTRA_RESULT_CONFIRMATION)
170+
val confirm = data?.getParcelableExtra<PaymentConfirmation>(PaymentActivity.EXTRA_RESULT_CONFIRMATION)
170171
if (confirm != null) {
171172
try {
172173
Log.i(TAG, confirm.toJSONObject().toString(4))
@@ -197,7 +198,7 @@ class SampleActivity : Activity() {
197198
}
198199
} else if (requestCode == REQUEST_CODE_FUTURE_PAYMENT) {
199200
if (resultCode == Activity.RESULT_OK) {
200-
val auth = data.getParcelableExtra<PayPalAuthorization>(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION)
201+
val auth = data?.getParcelableExtra<PayPalAuthorization>(PayPalFuturePaymentActivity.EXTRA_RESULT_AUTHORIZATION)
201202
if (auth != null) {
202203
try {
203204
Log.i("FuturePaymentExample", auth.toJSONObject().toString(4))
@@ -222,7 +223,7 @@ class SampleActivity : Activity() {
222223
}
223224
} else if (requestCode == REQUEST_CODE_PROFILE_SHARING) {
224225
if (resultCode == Activity.RESULT_OK) {
225-
val auth = data.getParcelableExtra<PayPalAuthorization>(PayPalProfileSharingActivity.EXTRA_RESULT_AUTHORIZATION)
226+
val auth = data?.getParcelableExtra<PayPalAuthorization>(PayPalProfileSharingActivity.EXTRA_RESULT_AUTHORIZATION)
226227
if (auth != null) {
227228
try {
228229
Log.i("ProfileSharingExample", auth.toJSONObject().toString(4))

SampleApp/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ repositories {
2020
apply plugin: 'com.android.application'
2121

2222
android {
23-
compileSdkVersion 24
23+
compileSdkVersion 26
2424
buildToolsVersion '24.0.1'
2525

2626
defaultConfig {
2727
minSdkVersion 18
28-
targetSdkVersion 24
28+
targetSdkVersion 26
2929
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
3030
}
3131

@@ -89,7 +89,7 @@ dependencies {
8989
generalCompile project(path: ':androidSDK', configuration: 'generalDebug')
9090
partnerCompile project(path: ':androidSDK', configuration: 'partnerDebug')
9191
} else {
92-
compile('com.paypal.sdk:paypal-android-sdk:2.15.3')
92+
compile('com.paypal.sdk:paypal-android-sdk:2.16.0')
9393
}
9494
compile 'com.google.android.gms:play-services-wallet:8.4.0'
9595

aars/PayPalAndroidSDK-2.15.3.aar

-673 KB
Binary file not shown.

aars/PayPalAndroidSDK-2.16.0.aar

676 KB
Binary file not shown.

0 commit comments

Comments
 (0)