Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 5344918

Browse files
Release 6.2.0.
1 parent 4893441 commit 5344918

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+505
-614
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.0.2'
9+
classpath 'com.android.tools.build:gradle:8.2.1'
1010
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
1111
}
1212
}
1313

1414
plugins {
15-
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
15+
id 'org.jetbrains.kotlin.android' version '1.9.22' apply false
1616
}
1717

18-
task clean(type: Delete) {
18+
tasks.register('clean', Delete) {
1919
delete rootProject.buildDir
2020
}

documentation/Migration Guide v5 to v6.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ This is the full list of classes that have become deprecated related to the arch
131131
- `BasicPaymentProductGroupsAsyncTask`
132132
- `BasicPaymentProductsAsyncTask`
133133
- `ConvertAmountAsyncTask`
134-
- `CustomerDetailsAsyncTask`
135134
- `EncryptDataAsyncTask`
136135
- `IinLookupAsyncTask`
137136
- `LoadImageAsyncTask`
@@ -198,17 +197,11 @@ The following methods and constructors had their arguments or return types chang
198197
- Constructors in `AmountOfMoney`:
199198
- `AmountOfMoney(Long amount, CurrencyCode currencyCode)`
200199
- Methods in `Session`:
201-
- `getCustomerDetails(Context context, String productId, CountryCode countryCode, List<KeyValuePair> values, OnCustomerDetailsCallCompleteListener listener)`
202200
- `getDirectoryForPaymentProductId(String productId, CurrencyCode currencyCode, CountryCode countryCode, Context context, OnPaymentProductDirectoryCallCompleteListener listener)`
203201
- Methods in `C2sCommunicator`:
204-
- `getCustomerDetails(String productId, CountryCode countryCode, List<KeyValuePair> values, Context context)`
205202
- `getPaymentProductDirectory(String productId, CurrencyCode currencyCode, CountryCode countryCode, Context context)`
206203
- Constructor in `PaymentProductDirectoryAsyncTask`:
207204
- `PaymentProductDirectoryAsyncTask(String productId, CurrencyCode currencyCode, CountryCode countryCode, Context context, C2sCommunicator communicator, OnPaymentProductDirectoryCallCompleteListener listener)`
208-
- Constructor in `CustomerDetailsRequest`:
209-
- `CustomerDetailsRequest(CountryCode countryCode, List<KeyValuePair> values)`
210-
- Method in `CustomerDetailsRequest`:
211-
- `setCountryCode(CountryCode countryCode)`
212205
- Constructor in `PaymentItemCacheKey`:
213206
- `PaymentItemCacheKey(Long amount, CountryCode countryCode, CurrencyCode currencyCode, boolean isRecurring, String paymentProductId)`
214207

@@ -218,8 +211,6 @@ The following getters have been marked deprecated, and should no longer be used:
218211
- `getCurrencyCodeString()`
219212
- `IinDetailsResponse`:
220213
- `getCountryCodeString()`
221-
- `CustomerDetailsRequest`:
222-
- `getCountryCodeString()`
223214
- `PaymentContext`:
224215
- `getCountryCodeString()`
225216
- `PaymentItemCacheKey`:

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF
1818
# org.gradle.parallel=true
1919
POM_GROUP_ID=com.ingenico.connect.gateway
2020
POM_ARTIFACT_ID=connect-sdk-client-android
21-
POM_VERSION=6.1.5
21+
POM_VERSION=6.2.0
2222
POM_NAME=connect-sdk-client-android
2323
POM_DESCRIPTION=SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Client API
2424
POM_URL=https://github.com/Ingenico-ePayments/connect-sdk-client-android
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Sep 20 14:52:46 CEST 2019
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

ingenicoconnect-sdk/build.gradle

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ plugins {
1313
android {
1414
namespace 'com.ingenico.connect.gateway.sdk.client.android.sdk'
1515

16-
compileSdkVersion 33
17-
1816
defaultConfig {
1917
minSdkVersion 21
20-
targetSdkVersion 33
18+
compileSdk 34
19+
targetSdkVersion 34
2120
versionCode 1
22-
versionName "1.0"
21+
versionName "6.2.0"
2322
consumerProguardFiles 'consumer-rules.pro'
2423
}
2524

@@ -38,58 +37,40 @@ android {
3837
minifyEnabled false
3938
}
4039
}
40+
41+
publishing {
42+
singleVariant("release") {
43+
withSourcesJar()
44+
withJavadocJar()
45+
}
46+
}
4147
}
4248

4349
dependencies {
44-
implementation 'com.google.android.gms:play-services-wallet:19.2.0'
45-
implementation 'org.apache.commons:commons-lang3:3.12.0'
50+
implementation 'com.google.android.gms:play-services-wallet:19.2.1'
51+
implementation 'org.apache.commons:commons-lang3:3.13.0'
4652

4753
testImplementation 'junit:junit:4.13.2'
48-
testImplementation 'org.mockito:mockito-core:5.4.0'
54+
testImplementation 'org.mockito:mockito-core:5.9.0'
4955

5056
// RX
51-
implementation "io.reactivex.rxjava3:rxjava:3.1.6"
57+
implementation "io.reactivex.rxjava3:rxjava:3.1.8"
5258
implementation "io.reactivex.rxjava3:rxkotlin:3.0.1"
5359
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
5460

5561
// Network
5662
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
5763
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
58-
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
64+
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
5965
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
6066
implementation 'com.google.code.gson:gson:2.10.1'
6167
}
6268

63-
task sourcesJar(type: Jar) {
64-
from android.sourceSets.main.java.srcDirs
65-
archiveClassifier.set("sources")
66-
}
67-
68-
task javadoc(type: Javadoc) {
69-
dependsOn "generateReleaseRFile"
70-
dependsOn "compileReleaseKotlin"
71-
failOnError false
72-
configurations.implementation.setCanBeResolved(true)
73-
source = android.sourceSets.main.java.sourceFiles
74-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
75-
classpath += configurations.implementation
76-
}
77-
78-
task javadocJar(type: Jar, dependsOn: javadoc) {
79-
archiveClassifier.set("javadoc")
80-
from javadoc.destinationDir
81-
}
82-
8369
afterEvaluate {
84-
javadoc.classpath += files(android.libraryVariants.collect { variant ->
85-
variant.javaCompileProvider.get().classpath.files
86-
})
8770
publishing {
8871
publications {
8972
mavenJava(MavenPublication) {
9073
from components.release
91-
artifact sourcesJar
92-
artifact javadocJar
9374

9475
groupId = POM_GROUP_ID
9576
artifactId = POM_ARTIFACT_ID

ingenicoconnect-sdk/src/main/java/com/ingenico/connect/gateway/sdk/client/android/sdk/ClientApi.kt

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@ import android.graphics.drawable.Drawable
88
import com.ingenico.connect.gateway.sdk.client.android.sdk.configuration.ConnectSDKConfiguration
99
import com.ingenico.connect.gateway.sdk.client.android.sdk.configuration.PaymentConfiguration
1010
import com.ingenico.connect.gateway.sdk.client.android.sdk.drawable.GetDrawableFromUrl
11-
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.CustomerDetailsResponse
1211
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.PaymentProductDirectoryResponse
1312
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.PublicKeyResponse
1413
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.ThirdPartyStatus
1514
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.iin.IinDetailsResponse
1615
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.BasicPaymentItems
1716
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.BasicPaymentProducts
1817
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.BasicPaymentProductGroups
19-
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.KeyValuePair
2018
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.PaymentProduct
2119
import com.ingenico.connect.gateway.sdk.client.android.sdk.model.paymentproduct.PaymentProductGroup
2220
import com.ingenico.connect.gateway.sdk.client.android.sdk.network.ApiError
2321
import com.ingenico.connect.gateway.sdk.client.android.sdk.network.Failure
2422
import com.ingenico.connect.gateway.sdk.client.android.sdk.network.Success
2523
import com.ingenico.connect.gateway.sdk.client.android.sdk.network.extension.subscribeAndMapNetworkResponse
26-
import com.ingenico.connect.gateway.sdk.client.android.sdk.product.GetCustomerDetails
2724
import com.ingenico.connect.gateway.sdk.client.android.sdk.product.GetPaymentItems
2825
import com.ingenico.connect.gateway.sdk.client.android.sdk.product.GetPaymentProduct
2926
import com.ingenico.connect.gateway.sdk.client.android.sdk.product.GetPaymentProductDirectory
@@ -190,45 +187,6 @@ class ClientApi(
190187
compositeDisposable.add(disposable)
191188
}
192189

193-
/**
194-
* Gets the customer details as a [CustomerDetailsResponse] from the gateway.
195-
*
196-
* @param paymentProductId the paymentProductId of the product
197-
* for which the customer details need to be retrieved from the server
198-
* @param countryCode the code of the country where the customer resides
199-
* @param values a list of keys with a value used to retrieve the details of a customer.
200-
* Depending on the country code, different keys are required
201-
* @param onSuccess calls this parameter when customer details
202-
* are successfully fetched as a [CustomerDetailsResponse]
203-
* @param onApiError calls this parameter when an api error is returned by the server
204-
* @param onFailure calls this parameter when an unexpected error thrown
205-
*/
206-
@Suppress("LongParameterList")
207-
fun getCustomerDetails(
208-
paymentProductId: String,
209-
countryCode: String,
210-
values: List<KeyValuePair>,
211-
onSuccess: Success<CustomerDetailsResponse>,
212-
onApiError: ApiError,
213-
onFailure: Failure
214-
) {
215-
val disposable = GetCustomerDetails().invoke(
216-
connectSDKConfiguration,
217-
paymentProductId,
218-
countryCode,
219-
values
220-
)
221-
.subscribeOn(Schedulers.io())
222-
.observeOn(AndroidSchedulers.mainThread())
223-
.subscribeAndMapNetworkResponse(
224-
{ (onSuccess::success)(it) },
225-
{ (onApiError::apiError)(it) },
226-
{ (onFailure::failure)(it) }
227-
)
228-
229-
compositeDisposable.add(disposable)
230-
}
231-
232190
/**
233191
* Gets payment product directories as a [PaymentProductDirectoryResponse] from the gateway.
234192
* Mainly used for IDEAL payments.

ingenicoconnect-sdk/src/main/java/com/ingenico/connect/gateway/sdk/client/android/sdk/asynctask/CustomerDetailsAsyncTask.java

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)