From f85f3396b843b50bfa828085f03ad470be5c578b Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 15 Aug 2022 15:33:29 +0800 Subject: [PATCH] Stripe SDK version update --- .../android/ui/base/UIMessageResolver.kt | 26 +++++++++---------- build.gradle | 3 ++- libs/cardreader/build.gradle | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/base/UIMessageResolver.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/base/UIMessageResolver.kt index 411701577d05..7507eba2d9f0 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/base/UIMessageResolver.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/base/UIMessageResolver.kt @@ -203,18 +203,18 @@ interface UIMessageResolver { } snackbar.show() } +} - private fun getIndefiniteSnackbarWithAction( - view: View, - msg: String, - actionString: String, - actionListener: View.OnClickListener - ) = Snackbar.make(view, msg, BaseTransientBottomBar.LENGTH_INDEFINITE).setAction(actionString, actionListener) +private fun getIndefiniteSnackbarWithAction( + view: View, + msg: String, + actionString: String, + actionListener: View.OnClickListener +) = Snackbar.make(view, msg, BaseTransientBottomBar.LENGTH_INDEFINITE).setAction(actionString, actionListener) - private fun getSnackbarWithAction( - view: View, - msg: String, - actionString: String, - actionListener: View.OnClickListener - ) = Snackbar.make(view, msg, BaseTransientBottomBar.LENGTH_LONG).setAction(actionString, actionListener) -} +private fun getSnackbarWithAction( + view: View, + msg: String, + actionString: String, + actionListener: View.OnClickListener +) = Snackbar.make(view, msg, BaseTransientBottomBar.LENGTH_LONG).setAction(actionString, actionListener) diff --git a/build.gradle b/build.gradle index efb3954ed41c..48530b766af0 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,8 @@ allprojects { // TODO fix all the warnings and change to true before end of 2022 allWarningsAsErrors = false freeCompilerArgs += [ - "-Xopt-in=kotlin.RequiresOptIn" + "-Xopt-in=kotlin.RequiresOptIn", + "-Xjvm-default=all-compatibility", ] } } diff --git a/libs/cardreader/build.gradle b/libs/cardreader/build.gradle index 75759acb38e2..eba4a4156914 100644 --- a/libs/cardreader/build.gradle +++ b/libs/cardreader/build.gradle @@ -38,7 +38,7 @@ dependencies { androidTestImplementation "androidx.test.ext:junit:$jUnitExtVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion" - implementation "com.stripe:stripeterminal:2.10.0" + implementation "com.stripe:stripeterminal:2.12.0" // Coroutines implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"