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

Commit 620855c

Browse files
Release 6.1.1.
1 parent 9df803b commit 620855c

File tree

107 files changed

+1255
-1013
lines changed

Some content is hidden

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

107 files changed

+1255
-1013
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.4.1'
10-
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0'
9+
classpath 'com.android.tools.build:gradle:8.0.2'
10+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22'
1111
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
1212
}
1313
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
13+
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
1414

1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
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.0
21+
POM_VERSION=6.1.1
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-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

ingenicoconnect-sdk/build.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ plugins {
1111
}
1212

1313
android {
14+
namespace 'com.ingenico.connect.gateway.sdk.client.android.sdk'
15+
1416
compileSdkVersion 33
1517

1618
defaultConfig {
@@ -22,11 +24,11 @@ android {
2224
}
2325

2426
compileOptions {
25-
sourceCompatibility JavaVersion.VERSION_1_8
26-
targetCompatibility JavaVersion.VERSION_1_8
27+
sourceCompatibility JavaVersion.VERSION_17
28+
targetCompatibility JavaVersion.VERSION_17
2729
}
2830

29-
lintOptions {
31+
lint {
3032
abortOnError false
3133
lintConfig file('lint.xml')
3234
}
@@ -39,11 +41,11 @@ android {
3941
}
4042

4143
dependencies {
42-
implementation 'com.google.android.gms:play-services-wallet:19.1.0'
44+
implementation 'com.google.android.gms:play-services-wallet:19.2.0'
4345
implementation 'org.apache.commons:commons-lang3:3.12.0'
4446

4547
testImplementation 'junit:junit:4.13.2'
46-
testImplementation 'org.mockito:mockito-core:4.9.0'
48+
testImplementation 'org.mockito:mockito-core:5.4.0'
4749

4850
// RX
4951
implementation "io.reactivex.rxjava3:rxjava:3.1.6"
@@ -53,7 +55,7 @@ dependencies {
5355
// Network
5456
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
5557
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
56-
implementation("com.squareup.okhttp3:logging-interceptor:4.10.0")
58+
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
5759
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
5860
implementation 'com.google.code.gson:gson:2.10.1'
5961
}
@@ -69,14 +71,17 @@ task javadoc(type: Javadoc) {
6971
source = android.sourceSets.main.java.sourceFiles
7072
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
7173
classpath += configurations.implementation
72-
7374
}
75+
7476
task javadocJar(type: Jar, dependsOn: javadoc) {
7577
archiveClassifier.set("javadoc")
7678
from javadoc.destinationDir
7779
}
7880

7981
afterEvaluate {
82+
javadoc.classpath += files(android.libraryVariants.collect { variant ->
83+
variant.javaCompileProvider.get().classpath.files
84+
})
8085
publishing {
8186
publications {
8287
mavenJava(MavenPublication) {

ingenicoconnect-sdk/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
~ Copyright (c) 2022 Global Collect Services B.V
33
-->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="com.ingenico.connect.gateway.sdk.client.android.sdk">
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
76

87
<uses-permission android:name="android.permission.INTERNET" />
98
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

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

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import io.reactivex.rxjava3.disposables.Disposable
2020
import io.reactivex.rxjava3.schedulers.Schedulers
2121

2222
/**
23-
* Entrypoint for the ConnectSDK. Can only be used with a valid Client Session that was obtained via
24-
* the Server to Server Create Client Session API.
23+
* Entrypoint for the ConnectSDK.
24+
* Can only be used with a valid Client Session that was obtained via the Server to Server Create Client Session API.
2525
*/
2626
object ConnectSDK {
2727

@@ -37,11 +37,11 @@ object ConnectSDK {
3737
* Initializes the ConnectSDK.
3838
* This method has to be called before doing anything else with the SDK.
3939
*
40-
* @param connectSDKConfiguration The ConnectSDK configuration properties, such as communication
41-
* parameters obtained from the Server to Server Create Client Session API.
40+
* @param connectSDKConfiguration the ConnectSDK configuration properties,
41+
* such as communication parameters obtained from the Server to Server Create Client Session API
4242
*
43-
* @param paymentConfiguration The payment configuration properties, such as the amount for the
44-
* payment, countryCode and other settings.
43+
* @param paymentConfiguration the payment configuration properties,
44+
* such as the amount for the payment, countryCode and other settings
4545
*/
4646
fun initialize(
4747
connectSDKConfiguration: ConnectSDKConfiguration,
@@ -53,11 +53,11 @@ object ConnectSDK {
5353
}
5454

5555
/**
56-
* Returns an instance of ClientApi. Use the ClientApi class to make requests to the Connect
57-
* gateway.
56+
* Returns an instance of ClientApi. Use the ClientApi class to make requests to the Connect gateway.
5857
*
59-
* @return ClientApi instance.
60-
* @throws ClientApiNotInitializedException if ClientApi has not been initialized.
58+
* @return ClientApi instance
59+
*
60+
* @throws ClientApiNotInitializedException if ClientApi has not been initialized
6161
*/
6262
fun getClientApi(): ClientApi {
6363
if (this::clientApi.isInitialized) {
@@ -70,7 +70,8 @@ object ConnectSDK {
7070
/**
7171
* Returns the ConnectSDKConfiguration that was provided in the initialize method.
7272
*
73-
* @return ConnectSDKConfiguration instance.
73+
* @return ConnectSDKConfiguration instance
74+
*
7475
* @throws ConnectSDKNotInitializedException if the ConnectSDK has not been initialized.
7576
*/
7677
fun getConnectSdkConfiguration(): ConnectSDKConfiguration {
@@ -82,9 +83,10 @@ object ConnectSDK {
8283
}
8384

8485
/**
85-
* Returns the PaymentConfiguration that was provided in the initialize method.
86+
* Returns the [PaymentConfiguration] that was provided in the initialize method.
87+
*
88+
* @return [PaymentConfiguration] instance
8689
*
87-
* @return PaymentConfiguration instance.
8890
* @throws ConnectSDKNotInitializedException if the ConnectSDK has not been initialized.
8991
*/
9092
fun getPaymentConfiguration(): PaymentConfiguration {
@@ -96,11 +98,11 @@ object ConnectSDK {
9698
}
9799

98100
/**
99-
* Encrypts the data in the provided paymentRequest instance.
101+
* Encrypts the data in the provided [PaymentRequest] instance.
100102
*
101-
* @param paymentRequest The paymentRequest which contains the values that were entered by the user.
102-
* @param onSuccess Called when the payment request is successful encrypted.
103-
* @param onFailure Called when an unexpected error occurred.
103+
* @param paymentRequest the [PaymentRequest] which contains the values that were entered by the user
104+
* @param onSuccess called when the [PaymentRequest] is successfully encrypted
105+
* @param onFailure called when an unexpected error occurred
104106
*/
105107
fun encryptPaymentRequest(
106108
paymentRequest: PaymentRequest,

0 commit comments

Comments
 (0)