Skip to content

Commit

Permalink
Release 7.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect committed Nov 12, 2024
1 parent 9aea39a commit 3c48406
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF
# org.gradle.parallel=true
POM_GROUP_ID=com.worldline-solutions.connect
POM_ARTIFACT_ID=connect-sdk-client-android
POM_VERSION=7.0.2
POM_VERSION=7.0.3
POM_NAME=connect-sdk-client-android
POM_DESCRIPTION=SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Client API
POM_URL=https://github.com/Worldline-Global-Collect/connect-sdk-client-android
Expand Down
16 changes: 10 additions & 6 deletions worldline-connect-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
compileSdk 34
targetSdkVersion 34
versionCode 1
versionName "7.0.2"
versionName "7.0.3"
consumerProguardFiles 'consumer-rules.pro'
}

Expand All @@ -27,6 +27,10 @@ android {
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = "17"
}

lint {
abortOnError false
lintConfig file('lint.xml')
Expand All @@ -47,18 +51,18 @@ android {
}

dependencies {
implementation 'com.google.android.gms:play-services-wallet:19.3.0'
implementation 'com.google.android.gms:play-services-wallet:19.4.0'
// The following dependency will be removed in the future, so its version can be ignored.
//noinspection GradleDependency
implementation 'org.apache.commons:commons-lang3:3.13.0'

testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.11.0'
testImplementation 'org.robolectric:robolectric:4.12.1'
testImplementation 'androidx.test:core:1.5.0'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation 'org.robolectric:robolectric:4.13'
testImplementation 'androidx.test:core:1.6.1'

// RX
implementation "io.reactivex.rxjava3:rxjava:3.1.8"
implementation "io.reactivex.rxjava3:rxjava:3.1.9"
implementation "io.reactivex.rxjava3:rxkotlin:3.0.1"
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class Constants {

/** SDK version **/
public final static String SDK_IDENTIFIER = "AndroidClientSDK/v7.0.2";
public final static String SDK_IDENTIFIER = "AndroidClientSDK/v7.0.3";

/** SDK creator **/
public final static String SDK_CREATOR = "Worldline Global Collect";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,24 @@ public class PaymentContext implements Serializable {
private boolean isRecurring;
private Boolean forceBasicFlow;
private Locale locale;
private boolean isInstallments;

public PaymentContext() {}

public PaymentContext(AmountOfMoney amountOfMoney, String countryCode, boolean isRecurring) {
this(amountOfMoney, countryCode, isRecurring, null);
this(amountOfMoney, countryCode, isRecurring, null, false);
}

public PaymentContext(AmountOfMoney amountOfMoney, String countryCode, boolean isRecurring, Locale locale) {
this(amountOfMoney, countryCode, isRecurring, locale, false);
}

public PaymentContext(AmountOfMoney amountOfMoney, String countryCode, boolean isRecurring, Locale locale, boolean isInstallments) {
this.countryCode = countryCode;
this.isRecurring = isRecurring;
this.amountOfMoney = amountOfMoney;
this.locale = locale;
this.isInstallments = isInstallments;
}

public AmountOfMoney getAmountOfMoney() {
Expand Down Expand Up @@ -78,6 +84,13 @@ public void setLocale(Locale locale) {
this.locale = locale;
}

public boolean isInstallments() {
return isInstallments;
}
public void setIsInstallments(boolean isInstallments) {
this.isInstallments = isInstallments;
}

public Map<String, String> convertToNetworkRequestParameters() {
HashMap<String, String> parameters = new HashMap<>();
parameters.put("countryCode", countryCode);
Expand Down

0 comments on commit 3c48406

Please sign in to comment.