From 00238f57a072ddd7085d2c3a48597477da84f5d8 Mon Sep 17 00:00:00 2001 From: Seyyed davud hosseiny Date: Sun, 12 Nov 2023 13:37:03 +0330 Subject: [PATCH] Add jvm overloads (#91) * Add Jvm overloads * Some refactoring --- poolakey/src/main/java/ir/cafebazaar/poolakey/Payment.kt | 2 +- .../ir/cafebazaar/poolakey/config/PaymentConfiguration.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poolakey/src/main/java/ir/cafebazaar/poolakey/Payment.kt b/poolakey/src/main/java/ir/cafebazaar/poolakey/Payment.kt index 7d8bc85..031ac7e 100644 --- a/poolakey/src/main/java/ir/cafebazaar/poolakey/Payment.kt +++ b/poolakey/src/main/java/ir/cafebazaar/poolakey/Payment.kt @@ -21,7 +21,7 @@ import ir.cafebazaar.poolakey.thread.PoolakeyThread class Payment( context: Context, - private val config: PaymentConfiguration + config: PaymentConfiguration ) { private val backgroundThread: PoolakeyThread = BackgroundThread() diff --git a/poolakey/src/main/java/ir/cafebazaar/poolakey/config/PaymentConfiguration.kt b/poolakey/src/main/java/ir/cafebazaar/poolakey/config/PaymentConfiguration.kt index 1eb389f..1d9c989 100644 --- a/poolakey/src/main/java/ir/cafebazaar/poolakey/config/PaymentConfiguration.kt +++ b/poolakey/src/main/java/ir/cafebazaar/poolakey/config/PaymentConfiguration.kt @@ -1,6 +1,6 @@ package ir.cafebazaar.poolakey.config -data class PaymentConfiguration( +data class PaymentConfiguration @JvmOverloads constructor( val localSecurityCheck: SecurityCheck, val shouldSupportSubscription: Boolean = true -) +) \ No newline at end of file