From d08df80915c7317f050dd7e1528a9e7857ef5fb0 Mon Sep 17 00:00:00 2001 From: JayShortway <29483617+JayShortway@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:11:23 +0200 Subject: [PATCH] Moves errors to the models package (#191) --- .../kmp/apitester/PurchasesErrorCodeAPI.kt | 2 +- .../kmp/apitester/PaywallListenerAPI.kt | 4 +- .../kmp/apitester/PurchasesCommonAPI.kt | 6 +- .../kmp/apitester/PurchasesErrorAPI.kt | 4 +- .../kmp/apitester/PurchasesExceptionAPI.kt | 6 +- .../PurchasesTransactionExceptionAPI.kt | 6 +- .../kmp/apitester/PurchasesErrorCodeAPI.kt | 2 +- .../purchases/kmp/sample/MainScreen.kt | 6 +- .../sample/rememberLoggingPaywallListener.kt | 4 +- core/api/core.klib.api | 30 ++-- .../purchases/kmp/Purchases.android.kt | 2 + .../revenuecat/purchases/kmp/MovedModels.kt | 37 +++++ .../com/revenuecat/purchases/kmp/Purchases.kt | 1 + .../purchases/kmp/ktx/Coroutines.kt | 8 +- .../revenuecat/purchases/kmp/Purchases.ios.kt | 2 + either/api/either.api | 2 +- either/api/either.klib.api | 20 +-- .../revenuecat/purchases/kmp/either/Either.kt | 6 +- .../purchases/kmp/mappings/errors.android.kt | 4 +- .../purchases/kmp/mappings/errors.ios.kt | 4 +- models/api/models.api | 134 ++++++++-------- models/api/models.klib.api | 146 +++++++++--------- .../kmp/PurchasesDelegate.android.kt | 1 + .../purchases/kmp/PurchasesDelegate.kt | 1 + .../kmp/{ => models}/PurchasesException.kt | 2 +- .../PurchasesTransactionException.kt | 2 +- .../purchases/kmp/{ => models}/errors.kt | 2 +- .../revenuecat/purchases/kmp/result/Result.kt | 8 +- revenuecatui/api/revenuecatui.api | 8 +- revenuecatui/api/revenuecatui.klib.api | 4 +- .../kmp/ui/revenuecatui/PaywallListener.kt | 4 +- 31 files changed, 256 insertions(+), 212 deletions(-) rename models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/{ => models}/PurchasesException.kt (89%) rename models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/{ => models}/PurchasesTransactionException.kt (89%) rename models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/{ => models}/errors.kt (99%) diff --git a/apiTester/src/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt b/apiTester/src/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt index 665c40cc..c5d1b247 100644 --- a/apiTester/src/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt +++ b/apiTester/src/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt @@ -1,6 +1,6 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode @Suppress("unused") private class PurchasesErrorCodeAPI { diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PaywallListenerAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PaywallListenerAPI.kt index 08848143..0aa591fa 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PaywallListenerAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PaywallListenerAPI.kt @@ -1,8 +1,8 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.models.Package -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.Package +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreTransaction import com.revenuecat.purchases.kmp.ui.revenuecatui.PaywallListener diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesCommonAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesCommonAPI.kt index bc446a53..12aebfab 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesCommonAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesCommonAPI.kt @@ -4,13 +4,10 @@ import arrow.core.Either import com.revenuecat.purchases.kmp.DangerousSettings import com.revenuecat.purchases.kmp.LogHandler import com.revenuecat.purchases.kmp.LogLevel -import com.revenuecat.purchases.kmp.models.Offerings -import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.Purchases import com.revenuecat.purchases.kmp.PurchasesAreCompletedBy import com.revenuecat.purchases.kmp.PurchasesConfiguration import com.revenuecat.purchases.kmp.PurchasesDelegate -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.configure import com.revenuecat.purchases.kmp.either.FailedPurchase import com.revenuecat.purchases.kmp.either.awaitGetProductsEither @@ -24,6 +21,9 @@ import com.revenuecat.purchases.kmp.models.BillingFeature import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.EntitlementVerificationMode import com.revenuecat.purchases.kmp.models.GoogleReplacementMode +import com.revenuecat.purchases.kmp.models.Offerings +import com.revenuecat.purchases.kmp.models.Package +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.Store import com.revenuecat.purchases.kmp.models.StoreKitVersion import com.revenuecat.purchases.kmp.models.StoreProduct diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorAPI.kt index 32c9f3f7..0377fea3 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorAPI.kt @@ -1,7 +1,7 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.PurchasesError -import com.revenuecat.purchases.kmp.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode @Suppress("unused", "UNUSED_VARIABLE") private class PurchasesErrorAPI { diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesExceptionAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesExceptionAPI.kt index a113e16d..98cf15d0 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesExceptionAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesExceptionAPI.kt @@ -1,8 +1,8 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.PurchasesError -import com.revenuecat.purchases.kmp.PurchasesErrorCode -import com.revenuecat.purchases.kmp.PurchasesException +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesException @Suppress("unused", "UNUSED_VARIABLE") private class PurchasesExceptionAPI { diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesTransactionExceptionAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesTransactionExceptionAPI.kt index 2d67f29f..e17a132d 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesTransactionExceptionAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesTransactionExceptionAPI.kt @@ -1,8 +1,8 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.PurchasesError -import com.revenuecat.purchases.kmp.PurchasesErrorCode -import com.revenuecat.purchases.kmp.PurchasesTransactionException +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesTransactionException @Suppress("unused", "UNUSED_VARIABLE") private class PurchasesTransactionExceptionAPI { diff --git a/apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt b/apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt index 665c40cc..c5d1b247 100644 --- a/apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt +++ b/apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesErrorCodeAPI.kt @@ -1,6 +1,6 @@ package com.revenuecat.purchases.kmp.apitester -import com.revenuecat.purchases.kmp.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode @Suppress("unused") private class PurchasesErrorCodeAPI { diff --git a/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/MainScreen.kt b/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/MainScreen.kt index 7a4039d5..4245f519 100644 --- a/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/MainScreen.kt +++ b/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/MainScreen.kt @@ -31,15 +31,15 @@ import androidx.compose.ui.text.font.FontFamily import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import arrow.core.Either -import com.revenuecat.purchases.kmp.models.Offering -import com.revenuecat.purchases.kmp.models.Offerings import com.revenuecat.purchases.kmp.Purchases import com.revenuecat.purchases.kmp.PurchasesConfiguration import com.revenuecat.purchases.kmp.PurchasesDelegate -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.either.awaitOfferingsEither import com.revenuecat.purchases.kmp.ktx.awaitCustomerInfo import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.Offering +import com.revenuecat.purchases.kmp.models.Offerings +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreTransaction import com.revenuecat.purchases.kmp.sample.components.CustomerInfoSection diff --git a/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/rememberLoggingPaywallListener.kt b/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/rememberLoggingPaywallListener.kt index 8ac2b193..659d782d 100644 --- a/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/rememberLoggingPaywallListener.kt +++ b/composeApp/src/commonMain/kotlin/com/revenuecat/purchases/kmp/sample/rememberLoggingPaywallListener.kt @@ -2,9 +2,9 @@ package com.revenuecat.purchases.kmp.sample import androidx.compose.runtime.Composable import androidx.compose.runtime.remember -import com.revenuecat.purchases.kmp.models.Package -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.Package +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreTransaction import com.revenuecat.purchases.kmp.ui.revenuecatui.PaywallListener diff --git a/core/api/core.klib.api b/core/api/core.klib.api index ce1d6d3e..dd603f5f 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -23,20 +23,20 @@ final class com.revenuecat.purchases.kmp.ktx/SuccessfulPurchase { // com.revenue final class com.revenuecat.purchases.kmp/Purchases { // com.revenuecat.purchases.kmp/Purchases|null[0] final fun close() // com.revenuecat.purchases.kmp/Purchases.close|close(){}[0] final fun collectDeviceIdentifiers() // com.revenuecat.purchases.kmp/Purchases.collectDeviceIdentifiers|collectDeviceIdentifiers(){}[0] - final fun getCustomerInfo(com.revenuecat.purchases.kmp.models/CacheFetchPolicy =..., kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getCustomerInfo|getCustomerInfo(com.revenuecat.purchases.kmp.models.CacheFetchPolicy;kotlin.Function1;kotlin.Function1){}[0] - final fun getOfferings(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getOfferings|getOfferings(kotlin.Function1;kotlin.Function1){}[0] - final fun getProducts(kotlin.collections/List, kotlin/Function1, kotlin/Function1, kotlin/Unit>) // com.revenuecat.purchases.kmp/Purchases.getProducts|getProducts(kotlin.collections.List;kotlin.Function1;kotlin.Function1,kotlin.Unit>){}[0] - final fun getPromotionalOffer(com.revenuecat.purchases.kmp.models/StoreProductDiscount, com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getPromotionalOffer|getPromotionalOffer(com.revenuecat.purchases.kmp.models.StoreProductDiscount;com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function1;kotlin.Function1){}[0] + final fun getCustomerInfo(com.revenuecat.purchases.kmp.models/CacheFetchPolicy =..., kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getCustomerInfo|getCustomerInfo(com.revenuecat.purchases.kmp.models.CacheFetchPolicy;kotlin.Function1;kotlin.Function1){}[0] + final fun getOfferings(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getOfferings|getOfferings(kotlin.Function1;kotlin.Function1){}[0] + final fun getProducts(kotlin.collections/List, kotlin/Function1, kotlin/Function1, kotlin/Unit>) // com.revenuecat.purchases.kmp/Purchases.getProducts|getProducts(kotlin.collections.List;kotlin.Function1;kotlin.Function1,kotlin.Unit>){}[0] + final fun getPromotionalOffer(com.revenuecat.purchases.kmp.models/StoreProductDiscount, com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.getPromotionalOffer|getPromotionalOffer(com.revenuecat.purchases.kmp.models.StoreProductDiscount;com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function1;kotlin.Function1){}[0] final fun invalidateCustomerInfoCache() // com.revenuecat.purchases.kmp/Purchases.invalidateCustomerInfoCache|invalidateCustomerInfoCache(){}[0] - final fun logIn(kotlin/String, kotlin/Function1, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.logIn|logIn(kotlin.String;kotlin.Function1;kotlin.Function2){}[0] - final fun logOut(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.logOut|logOut(kotlin.Function1;kotlin.Function1){}[0] - final fun purchase(com.revenuecat.purchases.kmp.models/Package, com.revenuecat.purchases.kmp.models/PromotionalOffer, kotlin/Function2, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.Package;com.revenuecat.purchases.kmp.models.PromotionalOffer;kotlin.Function2;kotlin.Function2){}[0] - final fun purchase(com.revenuecat.purchases.kmp.models/Package, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.Package;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] - final fun purchase(com.revenuecat.purchases.kmp.models/StoreProduct, com.revenuecat.purchases.kmp.models/PromotionalOffer, kotlin/Function2, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.StoreProduct;com.revenuecat.purchases.kmp.models.PromotionalOffer;kotlin.Function2;kotlin.Function2){}[0] - final fun purchase(com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] - final fun purchase(com.revenuecat.purchases.kmp.models/SubscriptionOption, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.SubscriptionOption;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] - final fun recordPurchase(kotlin/String, kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.recordPurchase|recordPurchase(kotlin.String;kotlin.Function1;kotlin.Function1){}[0] - final fun restorePurchases(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.restorePurchases|restorePurchases(kotlin.Function1;kotlin.Function1){}[0] + final fun logIn(kotlin/String, kotlin/Function1, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.logIn|logIn(kotlin.String;kotlin.Function1;kotlin.Function2){}[0] + final fun logOut(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.logOut|logOut(kotlin.Function1;kotlin.Function1){}[0] + final fun purchase(com.revenuecat.purchases.kmp.models/Package, com.revenuecat.purchases.kmp.models/PromotionalOffer, kotlin/Function2, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.Package;com.revenuecat.purchases.kmp.models.PromotionalOffer;kotlin.Function2;kotlin.Function2){}[0] + final fun purchase(com.revenuecat.purchases.kmp.models/Package, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.Package;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] + final fun purchase(com.revenuecat.purchases.kmp.models/StoreProduct, com.revenuecat.purchases.kmp.models/PromotionalOffer, kotlin/Function2, kotlin/Function2) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.StoreProduct;com.revenuecat.purchases.kmp.models.PromotionalOffer;kotlin.Function2;kotlin.Function2){}[0] + final fun purchase(com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] + final fun purchase(com.revenuecat.purchases.kmp.models/SubscriptionOption, kotlin/Function2, kotlin/Function2, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp/ReplacementMode? =...) // com.revenuecat.purchases.kmp/Purchases.purchase|purchase(com.revenuecat.purchases.kmp.models.SubscriptionOption;kotlin.Function2;kotlin.Function2;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.ReplacementMode?){}[0] + final fun recordPurchase(kotlin/String, kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.recordPurchase|recordPurchase(kotlin.String;kotlin.Function1;kotlin.Function1){}[0] + final fun restorePurchases(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.restorePurchases|restorePurchases(kotlin.Function1;kotlin.Function1){}[0] final fun setAd(kotlin/String?) // com.revenuecat.purchases.kmp/Purchases.setAd|setAd(kotlin.String?){}[0] final fun setAdGroup(kotlin/String?) // com.revenuecat.purchases.kmp/Purchases.setAdGroup|setAdGroup(kotlin.String?){}[0] final fun setAdjustID(kotlin/String?) // com.revenuecat.purchases.kmp/Purchases.setAdjustID|setAdjustID(kotlin.String?){}[0] @@ -60,8 +60,8 @@ final class com.revenuecat.purchases.kmp/Purchases { // com.revenuecat.purchases final fun setPushToken(kotlin/String?) // com.revenuecat.purchases.kmp/Purchases.setPushToken|setPushToken(kotlin.String?){}[0] final fun showInAppMessagesIfNeeded(kotlin.collections/List =...) // com.revenuecat.purchases.kmp/Purchases.showInAppMessagesIfNeeded|showInAppMessagesIfNeeded(kotlin.collections.List){}[0] final fun syncAmazonPurchase(kotlin/String, kotlin/String, kotlin/String, kotlin/String?, kotlin/Double?) // com.revenuecat.purchases.kmp/Purchases.syncAmazonPurchase|syncAmazonPurchase(kotlin.String;kotlin.String;kotlin.String;kotlin.String?;kotlin.Double?){}[0] - final fun syncAttributesAndOfferingsIfNeeded(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.syncAttributesAndOfferingsIfNeeded|syncAttributesAndOfferingsIfNeeded(kotlin.Function1;kotlin.Function1){}[0] - final fun syncPurchases(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.syncPurchases|syncPurchases(kotlin.Function1;kotlin.Function1){}[0] + final fun syncAttributesAndOfferingsIfNeeded(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.syncAttributesAndOfferingsIfNeeded|syncAttributesAndOfferingsIfNeeded(kotlin.Function1;kotlin.Function1){}[0] + final fun syncPurchases(kotlin/Function1, kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.syncPurchases|syncPurchases(kotlin.Function1;kotlin.Function1){}[0] final object Companion { // com.revenuecat.purchases.kmp/Purchases.Companion|null[0] final fun canMakePayments(kotlin.collections/List =..., kotlin/Function1) // com.revenuecat.purchases.kmp/Purchases.Companion.canMakePayments|canMakePayments(kotlin.collections.List;kotlin.Function1){}[0] final fun configure(com.revenuecat.purchases.kmp/PurchasesConfiguration): com.revenuecat.purchases.kmp/Purchases // com.revenuecat.purchases.kmp/Purchases.Companion.configure|configure(com.revenuecat.purchases.kmp.PurchasesConfiguration){}[0] diff --git a/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Purchases.android.kt b/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Purchases.android.kt index 9b686140..11e023c8 100644 --- a/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Purchases.android.kt +++ b/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Purchases.android.kt @@ -35,6 +35,8 @@ import com.revenuecat.purchases.kmp.models.GoogleReplacementMode import com.revenuecat.purchases.kmp.models.Offerings import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode import com.revenuecat.purchases.kmp.models.Store import com.revenuecat.purchases.kmp.models.StoreMessageType import com.revenuecat.purchases.kmp.models.StoreProduct diff --git a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/MovedModels.kt b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/MovedModels.kt index 6fffddcc..7f7bd83c 100644 --- a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/MovedModels.kt +++ b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/MovedModels.kt @@ -135,6 +135,43 @@ public typealias PresentedOfferingTargetingContext = ) public typealias ProductType = com.revenuecat.purchases.kmp.models.ProductType +@Deprecated( + message = "This type has moved to the models package.", + replaceWith = ReplaceWith( + expression = "PurchasesError", + imports = ["com.revenuecat.purchases.kmp.models.PurchasesError"] + ) +) +public typealias PurchasesError = com.revenuecat.purchases.kmp.models.PurchasesError + +@Deprecated( + message = "This type has moved to the models package.", + replaceWith = ReplaceWith( + expression = "PurchasesErrorCode", + imports = ["com.revenuecat.purchases.kmp.models.PurchasesErrorCode"] + ) +) +public typealias PurchasesErrorCode = com.revenuecat.purchases.kmp.models.PurchasesErrorCode + +@Deprecated( + message = "This type has moved to the models package.", + replaceWith = ReplaceWith( + expression = "PurchasesException", + imports = ["com.revenuecat.purchases.kmp.models.PurchasesException"] + ) +) +public typealias PurchasesException = com.revenuecat.purchases.kmp.models.PurchasesException + +@Deprecated( + message = "This type has moved to the models package.", + replaceWith = ReplaceWith( + expression = "PurchasesTransactionException", + imports = ["com.revenuecat.purchases.kmp.models.PurchasesTransactionException"] + ) +) +public typealias PurchasesTransactionException = + com.revenuecat.purchases.kmp.models.PurchasesTransactionException + @Deprecated( message = "This type has moved to the models package.", replaceWith = ReplaceWith( diff --git a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Purchases.kt b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Purchases.kt index 45a63bfd..bcc490bd 100644 --- a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Purchases.kt +++ b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Purchases.kt @@ -7,6 +7,7 @@ import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.Offerings import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.Store import com.revenuecat.purchases.kmp.models.StoreMessageType import com.revenuecat.purchases.kmp.models.StoreProduct diff --git a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ktx/Coroutines.kt b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ktx/Coroutines.kt index fd51fae5..720b90ae 100644 --- a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ktx/Coroutines.kt +++ b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ktx/Coroutines.kt @@ -1,14 +1,14 @@ package com.revenuecat.purchases.kmp.ktx -import com.revenuecat.purchases.kmp.models.Offerings -import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.Purchases -import com.revenuecat.purchases.kmp.PurchasesException -import com.revenuecat.purchases.kmp.PurchasesTransactionException import com.revenuecat.purchases.kmp.models.CacheFetchPolicy import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.GoogleReplacementMode +import com.revenuecat.purchases.kmp.models.Offerings +import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesException +import com.revenuecat.purchases.kmp.models.PurchasesTransactionException import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreProductDiscount import com.revenuecat.purchases.kmp.models.StoreTransaction diff --git a/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Purchases.ios.kt b/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Purchases.ios.kt index 1a992f59..706aa7ad 100644 --- a/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Purchases.ios.kt +++ b/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Purchases.ios.kt @@ -32,6 +32,8 @@ import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.Offerings import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode import com.revenuecat.purchases.kmp.models.Store import com.revenuecat.purchases.kmp.models.StoreMessageType import com.revenuecat.purchases.kmp.models.StoreProduct diff --git a/either/api/either.api b/either/api/either.api index e5a458ea..74ffb5e4 100644 --- a/either/api/either.api +++ b/either/api/either.api @@ -20,7 +20,7 @@ public final class com/revenuecat/purchases/kmp/either/EitherKt { } public final class com/revenuecat/purchases/kmp/either/FailedPurchase { - public final fun getError ()Lcom/revenuecat/purchases/kmp/PurchasesError; + public final fun getError ()Lcom/revenuecat/purchases/kmp/models/PurchasesError; public final fun getUserCancelled ()Z } diff --git a/either/api/either.klib.api b/either/api/either.klib.api index 0c517709..d1483d85 100644 --- a/either/api/either.klib.api +++ b/either/api/either.klib.api @@ -8,21 +8,21 @@ // Library unique name: final class com.revenuecat.purchases.kmp.either/FailedPurchase { // com.revenuecat.purchases.kmp.either/FailedPurchase|null[0] final val error // com.revenuecat.purchases.kmp.either/FailedPurchase.error|{}error[0] - final fun (): com.revenuecat.purchases.kmp/PurchasesError // com.revenuecat.purchases.kmp.either/FailedPurchase.error.|(){}[0] + final fun (): com.revenuecat.purchases.kmp.models/PurchasesError // com.revenuecat.purchases.kmp.either/FailedPurchase.error.|(){}[0] final val userCancelled // com.revenuecat.purchases.kmp.either/FailedPurchase.userCancelled|{}userCancelled[0] final fun (): kotlin/Boolean // com.revenuecat.purchases.kmp.either/FailedPurchase.userCancelled.|(){}[0] } -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitCustomerInfoEither(com.revenuecat.purchases.kmp.models/CacheFetchPolicy =...): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitCustomerInfoEither|awaitCustomerInfoEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.CacheFetchPolicy){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitGetProductsEither(kotlin.collections/List): arrow.core/Either> // com.revenuecat.purchases.kmp.either/awaitGetProductsEither|awaitGetProductsEither@com.revenuecat.purchases.kmp.Purchases(kotlin.collections.List){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitLogInEither(kotlin/String): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitLogInEither|awaitLogInEither@com.revenuecat.purchases.kmp.Purchases(kotlin.String){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitLogOutEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitLogOutEither|awaitLogOutEither@com.revenuecat.purchases.kmp.Purchases(){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitOfferingsEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitOfferingsEither|awaitOfferingsEither@com.revenuecat.purchases.kmp.Purchases(){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPromotionalOfferEither(com.revenuecat.purchases.kmp.models/StoreProductDiscount, com.revenuecat.purchases.kmp.models/StoreProduct): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPromotionalOfferEither|awaitPromotionalOfferEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.StoreProductDiscount;com.revenuecat.purchases.kmp.models.StoreProduct){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitCustomerInfoEither(com.revenuecat.purchases.kmp.models/CacheFetchPolicy =...): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitCustomerInfoEither|awaitCustomerInfoEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.CacheFetchPolicy){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitGetProductsEither(kotlin.collections/List): arrow.core/Either> // com.revenuecat.purchases.kmp.either/awaitGetProductsEither|awaitGetProductsEither@com.revenuecat.purchases.kmp.Purchases(kotlin.collections.List){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitLogInEither(kotlin/String): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitLogInEither|awaitLogInEither@com.revenuecat.purchases.kmp.Purchases(kotlin.String){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitLogOutEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitLogOutEither|awaitLogOutEither@com.revenuecat.purchases.kmp.Purchases(){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitOfferingsEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitOfferingsEither|awaitOfferingsEither@com.revenuecat.purchases.kmp.Purchases(){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPromotionalOfferEither(com.revenuecat.purchases.kmp.models/StoreProductDiscount, com.revenuecat.purchases.kmp.models/StoreProduct): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPromotionalOfferEither|awaitPromotionalOfferEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.StoreProductDiscount;com.revenuecat.purchases.kmp.models.StoreProduct){}[0] final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPurchaseEither(com.revenuecat.purchases.kmp.models/Package, com.revenuecat.purchases.kmp.models/PromotionalOffer): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPurchaseEither|awaitPurchaseEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.Package;com.revenuecat.purchases.kmp.models.PromotionalOffer){}[0] final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPurchaseEither(com.revenuecat.purchases.kmp.models/Package, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp.models/GoogleReplacementMode =...): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPurchaseEither|awaitPurchaseEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.Package;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.models.GoogleReplacementMode){}[0] final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPurchaseEither(com.revenuecat.purchases.kmp.models/StoreProduct, com.revenuecat.purchases.kmp.models/PromotionalOffer): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPurchaseEither|awaitPurchaseEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.StoreProduct;com.revenuecat.purchases.kmp.models.PromotionalOffer){}[0] final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPurchaseEither(com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp.models/GoogleReplacementMode =...): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPurchaseEither|awaitPurchaseEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.models.GoogleReplacementMode){}[0] final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitPurchaseEither(com.revenuecat.purchases.kmp.models/SubscriptionOption, kotlin/Boolean? =..., kotlin/String? =..., com.revenuecat.purchases.kmp.models/GoogleReplacementMode =...): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitPurchaseEither|awaitPurchaseEither@com.revenuecat.purchases.kmp.Purchases(com.revenuecat.purchases.kmp.models.SubscriptionOption;kotlin.Boolean?;kotlin.String?;com.revenuecat.purchases.kmp.models.GoogleReplacementMode){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitRestoreEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitRestoreEither|awaitRestoreEither@com.revenuecat.purchases.kmp.Purchases(){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitSyncAttributesAndOfferingsIfNeededEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitSyncAttributesAndOfferingsIfNeededEither|awaitSyncAttributesAndOfferingsIfNeededEither@com.revenuecat.purchases.kmp.Purchases(){}[0] -final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitSyncPurchasesEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitSyncPurchasesEither|awaitSyncPurchasesEither@com.revenuecat.purchases.kmp.Purchases(){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitRestoreEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitRestoreEither|awaitRestoreEither@com.revenuecat.purchases.kmp.Purchases(){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitSyncAttributesAndOfferingsIfNeededEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitSyncAttributesAndOfferingsIfNeededEither|awaitSyncAttributesAndOfferingsIfNeededEither@com.revenuecat.purchases.kmp.Purchases(){}[0] +final suspend fun (com.revenuecat.purchases.kmp/Purchases).com.revenuecat.purchases.kmp.either/awaitSyncPurchasesEither(): arrow.core/Either // com.revenuecat.purchases.kmp.either/awaitSyncPurchasesEither|awaitSyncPurchasesEither@com.revenuecat.purchases.kmp.Purchases(){}[0] diff --git a/either/src/commonMain/kotlin/com/revenuecat/purchases/kmp/either/Either.kt b/either/src/commonMain/kotlin/com/revenuecat/purchases/kmp/either/Either.kt index b0033b59..845a19be 100644 --- a/either/src/commonMain/kotlin/com/revenuecat/purchases/kmp/either/Either.kt +++ b/either/src/commonMain/kotlin/com/revenuecat/purchases/kmp/either/Either.kt @@ -3,10 +3,7 @@ package com.revenuecat.purchases.kmp.either import arrow.core.Either import arrow.core.left import arrow.core.right -import com.revenuecat.purchases.kmp.models.Offerings -import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.Purchases -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.ktx.SuccessfulLogin import com.revenuecat.purchases.kmp.ktx.SuccessfulPurchase import com.revenuecat.purchases.kmp.ktx.awaitPromotionalOffer @@ -14,7 +11,10 @@ import com.revenuecat.purchases.kmp.ktx.awaitPurchase import com.revenuecat.purchases.kmp.models.CacheFetchPolicy import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.GoogleReplacementMode +import com.revenuecat.purchases.kmp.models.Offerings +import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreProductDiscount import com.revenuecat.purchases.kmp.models.StoreTransaction diff --git a/mappings/src/androidMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.android.kt b/mappings/src/androidMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.android.kt index d082e6ce..df998b76 100644 --- a/mappings/src/androidMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.android.kt +++ b/mappings/src/androidMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.android.kt @@ -1,7 +1,7 @@ package com.revenuecat.purchases.kmp.mappings -import com.revenuecat.purchases.kmp.PurchasesError -import com.revenuecat.purchases.kmp.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode import com.revenuecat.purchases.PurchasesError as RcPurchasesError import com.revenuecat.purchases.PurchasesErrorCode as RcPurchasesErrorCode diff --git a/mappings/src/iosMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.ios.kt b/mappings/src/iosMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.ios.kt index 17200ef0..cf54d33e 100644 --- a/mappings/src/iosMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.ios.kt +++ b/mappings/src/iosMain/kotlin/com/revenuecat/purchases/kmp/mappings/errors.ios.kt @@ -1,7 +1,7 @@ package com.revenuecat.purchases.kmp.mappings -import com.revenuecat.purchases.kmp.PurchasesError -import com.revenuecat.purchases.kmp.PurchasesErrorCode +import com.revenuecat.purchases.kmp.models.PurchasesError +import com.revenuecat.purchases.kmp.models.PurchasesErrorCode import platform.Foundation.NSError diff --git a/models/api/models.api b/models/api/models.api index 7f97b850..db2f96dd 100644 --- a/models/api/models.api +++ b/models/api/models.api @@ -44,73 +44,6 @@ public abstract interface class com/revenuecat/purchases/kmp/PurchasesDelegate { public abstract fun onPurchasePromoProduct (Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lkotlin/jvm/functions/Function2;)V } -public final class com/revenuecat/purchases/kmp/PurchasesError { - public fun (Lcom/revenuecat/purchases/kmp/PurchasesErrorCode;Ljava/lang/String;)V - public synthetic fun (Lcom/revenuecat/purchases/kmp/PurchasesErrorCode;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun getCode ()Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public final fun getMessage ()Ljava/lang/String; - public final fun getUnderlyingErrorMessage ()Ljava/lang/String; - public fun toString ()Ljava/lang/String; -} - -public final class com/revenuecat/purchases/kmp/PurchasesErrorCode : java/lang/Enum { - public static final field ApiEndpointBlocked Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field BeginRefundRequestError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ConfigurationError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field CustomerInfoError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field EmptySubscriberAttributesError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field FeatureNotAvailableInCustomEntitlementsComputationMode Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field IneligibleError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InsufficientPermissionsError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidAppUserIdError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidAppleSubscriptionKeyError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidCredentialsError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidPromotionalOfferError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidReceiptError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field InvalidSubscriberAttributesError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field LogOutWithAnonymousUserError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field MissingReceiptFileError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field NetworkError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field OfflineConnectionError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field OperationAlreadyInProgressError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field PaymentPendingError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ProductAlreadyPurchasedError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ProductDiscountMissingIdentifierError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ProductDiscountMissingSubscriptionGroupIdentifierError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ProductNotAvailableForPurchaseError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ProductRequestTimedOut Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field PurchaseCancelledError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field PurchaseInvalidError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field PurchaseNotAllowedError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ReceiptAlreadyInUseError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field ReceiptInUseByOtherSubscriberError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field SignatureVerificationError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field StoreProblemError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field SystemInfoError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field UnexpectedBackendResponseError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field UnknownBackendError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field UnknownError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static final field UnsupportedError Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public final fun getCode ()I - public final fun getDescription ()Ljava/lang/String; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public static fun valueOf (Ljava/lang/String;)Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public static fun values ()[Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; -} - -public class com/revenuecat/purchases/kmp/PurchasesException : java/lang/Exception { - public fun (Lcom/revenuecat/purchases/kmp/PurchasesError;)V - public final fun getCode ()Lcom/revenuecat/purchases/kmp/PurchasesErrorCode; - public final fun getError ()Lcom/revenuecat/purchases/kmp/PurchasesError; - public fun getMessage ()Ljava/lang/String; - public final fun getUnderlyingErrorMessage ()Ljava/lang/String; -} - -public final class com/revenuecat/purchases/kmp/PurchasesTransactionException : com/revenuecat/purchases/kmp/PurchasesException { - public fun (Lcom/revenuecat/purchases/kmp/PurchasesError;Z)V - public final fun getUserCancelled ()Z -} - public abstract interface class com/revenuecat/purchases/kmp/ReplacementMode { public abstract fun getName ()Ljava/lang/String; } @@ -380,6 +313,73 @@ public abstract interface class com/revenuecat/purchases/kmp/models/PromotionalO public abstract fun getDiscount ()Lcom/revenuecat/purchases/kmp/models/StoreProductDiscount; } +public final class com/revenuecat/purchases/kmp/models/PurchasesError { + public fun (Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode;Ljava/lang/String;)V + public synthetic fun (Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun getCode ()Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public final fun getMessage ()Ljava/lang/String; + public final fun getUnderlyingErrorMessage ()Ljava/lang/String; + public fun toString ()Ljava/lang/String; +} + +public final class com/revenuecat/purchases/kmp/models/PurchasesErrorCode : java/lang/Enum { + public static final field ApiEndpointBlocked Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field BeginRefundRequestError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ConfigurationError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field CustomerInfoError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field EmptySubscriberAttributesError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field FeatureNotAvailableInCustomEntitlementsComputationMode Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field IneligibleError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InsufficientPermissionsError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidAppUserIdError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidAppleSubscriptionKeyError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidCredentialsError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidPromotionalOfferError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidReceiptError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field InvalidSubscriberAttributesError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field LogOutWithAnonymousUserError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field MissingReceiptFileError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field NetworkError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field OfflineConnectionError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field OperationAlreadyInProgressError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field PaymentPendingError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ProductAlreadyPurchasedError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ProductDiscountMissingIdentifierError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ProductDiscountMissingSubscriptionGroupIdentifierError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ProductNotAvailableForPurchaseError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ProductRequestTimedOut Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field PurchaseCancelledError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field PurchaseInvalidError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field PurchaseNotAllowedError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ReceiptAlreadyInUseError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field ReceiptInUseByOtherSubscriberError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field SignatureVerificationError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field StoreProblemError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field SystemInfoError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field UnexpectedBackendResponseError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field UnknownBackendError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field UnknownError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static final field UnsupportedError Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public final fun getCode ()I + public final fun getDescription ()Ljava/lang/String; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public static fun valueOf (Ljava/lang/String;)Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public static fun values ()[Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; +} + +public class com/revenuecat/purchases/kmp/models/PurchasesException : java/lang/Exception { + public fun (Lcom/revenuecat/purchases/kmp/models/PurchasesError;)V + public final fun getCode ()Lcom/revenuecat/purchases/kmp/models/PurchasesErrorCode; + public final fun getError ()Lcom/revenuecat/purchases/kmp/models/PurchasesError; + public fun getMessage ()Ljava/lang/String; + public final fun getUnderlyingErrorMessage ()Ljava/lang/String; +} + +public final class com/revenuecat/purchases/kmp/models/PurchasesTransactionException : com/revenuecat/purchases/kmp/models/PurchasesException { + public fun (Lcom/revenuecat/purchases/kmp/models/PurchasesError;Z)V + public final fun getUserCancelled ()Z +} + public abstract interface class com/revenuecat/purchases/kmp/models/PurchasingData { public abstract fun getProductId ()Ljava/lang/String; public abstract fun getProductType ()Lcom/revenuecat/purchases/kmp/models/ProductType; diff --git a/models/api/models.klib.api b/models/api/models.klib.api index 9352fb38..73383d09 100644 --- a/models/api/models.klib.api +++ b/models/api/models.klib.api @@ -131,7 +131,7 @@ abstract interface com.revenuecat.purchases.kmp/LogHandler { // com.revenuecat.p } abstract interface com.revenuecat.purchases.kmp/PurchasesDelegate { // com.revenuecat.purchases.kmp/PurchasesDelegate|null[0] abstract fun onCustomerInfoUpdated(com.revenuecat.purchases.kmp.models/CustomerInfo) // com.revenuecat.purchases.kmp/PurchasesDelegate.onCustomerInfoUpdated|onCustomerInfoUpdated(com.revenuecat.purchases.kmp.models.CustomerInfo){}[0] - abstract fun onPurchasePromoProduct(com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function2, kotlin/Function2, kotlin/Unit>) // com.revenuecat.purchases.kmp/PurchasesDelegate.onPurchasePromoProduct|onPurchasePromoProduct(com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function2,kotlin.Function2,kotlin.Unit>){}[0] + abstract fun onPurchasePromoProduct(com.revenuecat.purchases.kmp.models/StoreProduct, kotlin/Function2, kotlin/Function2, kotlin/Unit>) // com.revenuecat.purchases.kmp/PurchasesDelegate.onPurchasePromoProduct|onPurchasePromoProduct(com.revenuecat.purchases.kmp.models.StoreProduct;kotlin.Function2,kotlin.Function2,kotlin.Unit>){}[0] } abstract interface com.revenuecat.purchases.kmp/ReplacementMode { // com.revenuecat.purchases.kmp/ReplacementMode|null[0] abstract val name // com.revenuecat.purchases.kmp/ReplacementMode.name|{}name[0] @@ -272,6 +272,21 @@ final class com.revenuecat.purchases.kmp.models/PricingPhase { // com.revenuecat final val recurrenceMode // com.revenuecat.purchases.kmp.models/PricingPhase.recurrenceMode|{}recurrenceMode[0] final fun (): com.revenuecat.purchases.kmp.models/RecurrenceMode // com.revenuecat.purchases.kmp.models/PricingPhase.recurrenceMode.|(){}[0] } +final class com.revenuecat.purchases.kmp.models/PurchasesError { // com.revenuecat.purchases.kmp.models/PurchasesError|null[0] + constructor (com.revenuecat.purchases.kmp.models/PurchasesErrorCode, kotlin/String? =...) // com.revenuecat.purchases.kmp.models/PurchasesError.|(com.revenuecat.purchases.kmp.models.PurchasesErrorCode;kotlin.String?){}[0] + final fun toString(): kotlin/String // com.revenuecat.purchases.kmp.models/PurchasesError.toString|toString(){}[0] + final val code // com.revenuecat.purchases.kmp.models/PurchasesError.code|{}code[0] + final fun (): com.revenuecat.purchases.kmp.models/PurchasesErrorCode // com.revenuecat.purchases.kmp.models/PurchasesError.code.|(){}[0] + final val message // com.revenuecat.purchases.kmp.models/PurchasesError.message|{}message[0] + final fun (): kotlin/String // com.revenuecat.purchases.kmp.models/PurchasesError.message.|(){}[0] + final val underlyingErrorMessage // com.revenuecat.purchases.kmp.models/PurchasesError.underlyingErrorMessage|{}underlyingErrorMessage[0] + final fun (): kotlin/String? // com.revenuecat.purchases.kmp.models/PurchasesError.underlyingErrorMessage.|(){}[0] +} +final class com.revenuecat.purchases.kmp.models/PurchasesTransactionException : com.revenuecat.purchases.kmp.models/PurchasesException { // com.revenuecat.purchases.kmp.models/PurchasesTransactionException|null[0] + constructor (com.revenuecat.purchases.kmp.models/PurchasesError, kotlin/Boolean) // com.revenuecat.purchases.kmp.models/PurchasesTransactionException.|(com.revenuecat.purchases.kmp.models.PurchasesError;kotlin.Boolean){}[0] + final val userCancelled // com.revenuecat.purchases.kmp.models/PurchasesTransactionException.userCancelled|{}userCancelled[0] + final fun (): kotlin/Boolean // com.revenuecat.purchases.kmp.models/PurchasesTransactionException.userCancelled.|(){}[0] +} final class com.revenuecat.purchases.kmp.models/StoreTransaction { // com.revenuecat.purchases.kmp.models/StoreTransaction|null[0] constructor (kotlin/String?, kotlin.collections/List, kotlin/Long) // com.revenuecat.purchases.kmp.models/StoreTransaction.|(kotlin.String?;kotlin.collections.List;kotlin.Long){}[0] final val productIds // com.revenuecat.purchases.kmp.models/StoreTransaction.productIds|{}productIds[0] @@ -295,21 +310,6 @@ final class com.revenuecat.purchases.kmp/DangerousSettings { // com.revenuecat.p final val autoSyncPurchases // com.revenuecat.purchases.kmp/DangerousSettings.autoSyncPurchases|{}autoSyncPurchases[0] final fun (): kotlin/Boolean // com.revenuecat.purchases.kmp/DangerousSettings.autoSyncPurchases.|(){}[0] } -final class com.revenuecat.purchases.kmp/PurchasesError { // com.revenuecat.purchases.kmp/PurchasesError|null[0] - constructor (com.revenuecat.purchases.kmp/PurchasesErrorCode, kotlin/String? =...) // com.revenuecat.purchases.kmp/PurchasesError.|(com.revenuecat.purchases.kmp.PurchasesErrorCode;kotlin.String?){}[0] - final fun toString(): kotlin/String // com.revenuecat.purchases.kmp/PurchasesError.toString|toString(){}[0] - final val code // com.revenuecat.purchases.kmp/PurchasesError.code|{}code[0] - final fun (): com.revenuecat.purchases.kmp/PurchasesErrorCode // com.revenuecat.purchases.kmp/PurchasesError.code.|(){}[0] - final val message // com.revenuecat.purchases.kmp/PurchasesError.message|{}message[0] - final fun (): kotlin/String // com.revenuecat.purchases.kmp/PurchasesError.message.|(){}[0] - final val underlyingErrorMessage // com.revenuecat.purchases.kmp/PurchasesError.underlyingErrorMessage|{}underlyingErrorMessage[0] - final fun (): kotlin/String? // com.revenuecat.purchases.kmp/PurchasesError.underlyingErrorMessage.|(){}[0] -} -final class com.revenuecat.purchases.kmp/PurchasesTransactionException : com.revenuecat.purchases.kmp/PurchasesException { // com.revenuecat.purchases.kmp/PurchasesTransactionException|null[0] - constructor (com.revenuecat.purchases.kmp/PurchasesError, kotlin/Boolean) // com.revenuecat.purchases.kmp/PurchasesTransactionException.|(com.revenuecat.purchases.kmp.PurchasesError;kotlin.Boolean){}[0] - final val userCancelled // com.revenuecat.purchases.kmp/PurchasesTransactionException.userCancelled|{}userCancelled[0] - final fun (): kotlin/Boolean // com.revenuecat.purchases.kmp/PurchasesTransactionException.userCancelled.|(){}[0] -} final enum class com.revenuecat.purchases.kmp.models/BillingFeature : kotlin/Enum { // com.revenuecat.purchases.kmp.models/BillingFeature|null[0] enum entry PRICE_CHANGE_CONFIRMATION // com.revenuecat.purchases.kmp.models/BillingFeature.PRICE_CHANGE_CONFIRMATION|null[0] enum entry SUBSCRIPTIONS // com.revenuecat.purchases.kmp.models/BillingFeature.SUBSCRIPTIONS|null[0] @@ -438,6 +438,53 @@ final enum class com.revenuecat.purchases.kmp.models/ProductType : kotlin/Enum(): kotlin.enums/EnumEntries // com.revenuecat.purchases.kmp.models/ProductType.entries.|#static(){}[0] } +final enum class com.revenuecat.purchases.kmp.models/PurchasesErrorCode : kotlin/Enum { // com.revenuecat.purchases.kmp.models/PurchasesErrorCode|null[0] + enum entry ApiEndpointBlocked // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ApiEndpointBlocked|null[0] + enum entry BeginRefundRequestError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.BeginRefundRequestError|null[0] + enum entry ConfigurationError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ConfigurationError|null[0] + enum entry CustomerInfoError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.CustomerInfoError|null[0] + enum entry EmptySubscriberAttributesError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.EmptySubscriberAttributesError|null[0] + enum entry FeatureNotAvailableInCustomEntitlementsComputationMode // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.FeatureNotAvailableInCustomEntitlementsComputationMode|null[0] + enum entry IneligibleError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.IneligibleError|null[0] + enum entry InsufficientPermissionsError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InsufficientPermissionsError|null[0] + enum entry InvalidAppUserIdError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidAppUserIdError|null[0] + enum entry InvalidAppleSubscriptionKeyError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidAppleSubscriptionKeyError|null[0] + enum entry InvalidCredentialsError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidCredentialsError|null[0] + enum entry InvalidPromotionalOfferError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidPromotionalOfferError|null[0] + enum entry InvalidReceiptError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidReceiptError|null[0] + enum entry InvalidSubscriberAttributesError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.InvalidSubscriberAttributesError|null[0] + enum entry LogOutWithAnonymousUserError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.LogOutWithAnonymousUserError|null[0] + enum entry MissingReceiptFileError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.MissingReceiptFileError|null[0] + enum entry NetworkError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.NetworkError|null[0] + enum entry OfflineConnectionError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.OfflineConnectionError|null[0] + enum entry OperationAlreadyInProgressError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.OperationAlreadyInProgressError|null[0] + enum entry PaymentPendingError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.PaymentPendingError|null[0] + enum entry ProductAlreadyPurchasedError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ProductAlreadyPurchasedError|null[0] + enum entry ProductDiscountMissingIdentifierError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ProductDiscountMissingIdentifierError|null[0] + enum entry ProductDiscountMissingSubscriptionGroupIdentifierError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ProductDiscountMissingSubscriptionGroupIdentifierError|null[0] + enum entry ProductNotAvailableForPurchaseError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ProductNotAvailableForPurchaseError|null[0] + enum entry ProductRequestTimedOut // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ProductRequestTimedOut|null[0] + enum entry PurchaseCancelledError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.PurchaseCancelledError|null[0] + enum entry PurchaseInvalidError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.PurchaseInvalidError|null[0] + enum entry PurchaseNotAllowedError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.PurchaseNotAllowedError|null[0] + enum entry ReceiptAlreadyInUseError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ReceiptAlreadyInUseError|null[0] + enum entry ReceiptInUseByOtherSubscriberError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.ReceiptInUseByOtherSubscriberError|null[0] + enum entry SignatureVerificationError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.SignatureVerificationError|null[0] + enum entry StoreProblemError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.StoreProblemError|null[0] + enum entry SystemInfoError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.SystemInfoError|null[0] + enum entry UnexpectedBackendResponseError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.UnexpectedBackendResponseError|null[0] + enum entry UnknownBackendError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.UnknownBackendError|null[0] + enum entry UnknownError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.UnknownError|null[0] + enum entry UnsupportedError // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.UnsupportedError|null[0] + final fun valueOf(kotlin/String): com.revenuecat.purchases.kmp.models/PurchasesErrorCode // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.valueOf|valueOf#static(kotlin.String){}[0] + final fun values(): kotlin/Array // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.values|values#static(){}[0] + final val code // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.code|{}code[0] + final fun (): kotlin/Int // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.code.|(){}[0] + final val description // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.description|(){}[0] + final fun (): kotlin/String // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.description.|(){}[0] + final val entries // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.entries|#static{}entries[0] + final fun (): kotlin.enums/EnumEntries // com.revenuecat.purchases.kmp.models/PurchasesErrorCode.entries.|#static(){}[0] +} final enum class com.revenuecat.purchases.kmp.models/RecurrenceMode : kotlin/Enum { // com.revenuecat.purchases.kmp.models/RecurrenceMode|null[0] enum entry FINITE_RECURRING // com.revenuecat.purchases.kmp.models/RecurrenceMode.FINITE_RECURRING|null[0] enum entry INFINITE_RECURRING // com.revenuecat.purchases.kmp.models/RecurrenceMode.INFINITE_RECURRING|null[0] @@ -504,53 +551,6 @@ final enum class com.revenuecat.purchases.kmp/LogLevel : kotlin/Enum(): kotlin.enums/EnumEntries // com.revenuecat.purchases.kmp/LogLevel.entries.|#static(){}[0] } -final enum class com.revenuecat.purchases.kmp/PurchasesErrorCode : kotlin/Enum { // com.revenuecat.purchases.kmp/PurchasesErrorCode|null[0] - enum entry ApiEndpointBlocked // com.revenuecat.purchases.kmp/PurchasesErrorCode.ApiEndpointBlocked|null[0] - enum entry BeginRefundRequestError // com.revenuecat.purchases.kmp/PurchasesErrorCode.BeginRefundRequestError|null[0] - enum entry ConfigurationError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ConfigurationError|null[0] - enum entry CustomerInfoError // com.revenuecat.purchases.kmp/PurchasesErrorCode.CustomerInfoError|null[0] - enum entry EmptySubscriberAttributesError // com.revenuecat.purchases.kmp/PurchasesErrorCode.EmptySubscriberAttributesError|null[0] - enum entry FeatureNotAvailableInCustomEntitlementsComputationMode // com.revenuecat.purchases.kmp/PurchasesErrorCode.FeatureNotAvailableInCustomEntitlementsComputationMode|null[0] - enum entry IneligibleError // com.revenuecat.purchases.kmp/PurchasesErrorCode.IneligibleError|null[0] - enum entry InsufficientPermissionsError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InsufficientPermissionsError|null[0] - enum entry InvalidAppUserIdError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidAppUserIdError|null[0] - enum entry InvalidAppleSubscriptionKeyError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidAppleSubscriptionKeyError|null[0] - enum entry InvalidCredentialsError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidCredentialsError|null[0] - enum entry InvalidPromotionalOfferError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidPromotionalOfferError|null[0] - enum entry InvalidReceiptError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidReceiptError|null[0] - enum entry InvalidSubscriberAttributesError // com.revenuecat.purchases.kmp/PurchasesErrorCode.InvalidSubscriberAttributesError|null[0] - enum entry LogOutWithAnonymousUserError // com.revenuecat.purchases.kmp/PurchasesErrorCode.LogOutWithAnonymousUserError|null[0] - enum entry MissingReceiptFileError // com.revenuecat.purchases.kmp/PurchasesErrorCode.MissingReceiptFileError|null[0] - enum entry NetworkError // com.revenuecat.purchases.kmp/PurchasesErrorCode.NetworkError|null[0] - enum entry OfflineConnectionError // com.revenuecat.purchases.kmp/PurchasesErrorCode.OfflineConnectionError|null[0] - enum entry OperationAlreadyInProgressError // com.revenuecat.purchases.kmp/PurchasesErrorCode.OperationAlreadyInProgressError|null[0] - enum entry PaymentPendingError // com.revenuecat.purchases.kmp/PurchasesErrorCode.PaymentPendingError|null[0] - enum entry ProductAlreadyPurchasedError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ProductAlreadyPurchasedError|null[0] - enum entry ProductDiscountMissingIdentifierError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ProductDiscountMissingIdentifierError|null[0] - enum entry ProductDiscountMissingSubscriptionGroupIdentifierError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ProductDiscountMissingSubscriptionGroupIdentifierError|null[0] - enum entry ProductNotAvailableForPurchaseError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ProductNotAvailableForPurchaseError|null[0] - enum entry ProductRequestTimedOut // com.revenuecat.purchases.kmp/PurchasesErrorCode.ProductRequestTimedOut|null[0] - enum entry PurchaseCancelledError // com.revenuecat.purchases.kmp/PurchasesErrorCode.PurchaseCancelledError|null[0] - enum entry PurchaseInvalidError // com.revenuecat.purchases.kmp/PurchasesErrorCode.PurchaseInvalidError|null[0] - enum entry PurchaseNotAllowedError // com.revenuecat.purchases.kmp/PurchasesErrorCode.PurchaseNotAllowedError|null[0] - enum entry ReceiptAlreadyInUseError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ReceiptAlreadyInUseError|null[0] - enum entry ReceiptInUseByOtherSubscriberError // com.revenuecat.purchases.kmp/PurchasesErrorCode.ReceiptInUseByOtherSubscriberError|null[0] - enum entry SignatureVerificationError // com.revenuecat.purchases.kmp/PurchasesErrorCode.SignatureVerificationError|null[0] - enum entry StoreProblemError // com.revenuecat.purchases.kmp/PurchasesErrorCode.StoreProblemError|null[0] - enum entry SystemInfoError // com.revenuecat.purchases.kmp/PurchasesErrorCode.SystemInfoError|null[0] - enum entry UnexpectedBackendResponseError // com.revenuecat.purchases.kmp/PurchasesErrorCode.UnexpectedBackendResponseError|null[0] - enum entry UnknownBackendError // com.revenuecat.purchases.kmp/PurchasesErrorCode.UnknownBackendError|null[0] - enum entry UnknownError // com.revenuecat.purchases.kmp/PurchasesErrorCode.UnknownError|null[0] - enum entry UnsupportedError // com.revenuecat.purchases.kmp/PurchasesErrorCode.UnsupportedError|null[0] - final fun valueOf(kotlin/String): com.revenuecat.purchases.kmp/PurchasesErrorCode // com.revenuecat.purchases.kmp/PurchasesErrorCode.valueOf|valueOf#static(kotlin.String){}[0] - final fun values(): kotlin/Array // com.revenuecat.purchases.kmp/PurchasesErrorCode.values|values#static(){}[0] - final val code // com.revenuecat.purchases.kmp/PurchasesErrorCode.code|{}code[0] - final fun (): kotlin/Int // com.revenuecat.purchases.kmp/PurchasesErrorCode.code.|(){}[0] - final val description // com.revenuecat.purchases.kmp/PurchasesErrorCode.description|(){}[0] - final fun (): kotlin/String // com.revenuecat.purchases.kmp/PurchasesErrorCode.description.|(){}[0] - final val entries // com.revenuecat.purchases.kmp/PurchasesErrorCode.entries|#static{}entries[0] - final fun (): kotlin.enums/EnumEntries // com.revenuecat.purchases.kmp/PurchasesErrorCode.entries.|#static(){}[0] -} final val com.revenuecat.purchases.kmp.models/billingPeriod // com.revenuecat.purchases.kmp.models/billingPeriod|@com.revenuecat.purchases.kmp.models.SubscriptionOption{}billingPeriod[0] final fun (com.revenuecat.purchases.kmp.models/SubscriptionOption).(): com.revenuecat.purchases.kmp.models/Period? // com.revenuecat.purchases.kmp.models/billingPeriod.|@com.revenuecat.purchases.kmp.models.SubscriptionOption(){}[0] final val com.revenuecat.purchases.kmp.models/freePhase // com.revenuecat.purchases.kmp.models/freePhase|@com.revenuecat.purchases.kmp.models.SubscriptionOption{}freePhase[0] @@ -563,16 +563,16 @@ final val com.revenuecat.purchases.kmp.models/isBasePlan // com.revenuecat.purch final fun (com.revenuecat.purchases.kmp.models/SubscriptionOption).(): kotlin/Boolean // com.revenuecat.purchases.kmp.models/isBasePlan.|@com.revenuecat.purchases.kmp.models.SubscriptionOption(){}[0] final val com.revenuecat.purchases.kmp.models/isPrepaid // com.revenuecat.purchases.kmp.models/isPrepaid|@com.revenuecat.purchases.kmp.models.SubscriptionOption{}isPrepaid[0] final fun (com.revenuecat.purchases.kmp.models/SubscriptionOption).(): kotlin/Boolean // com.revenuecat.purchases.kmp.models/isPrepaid.|@com.revenuecat.purchases.kmp.models.SubscriptionOption(){}[0] -open class com.revenuecat.purchases.kmp/PurchasesException : kotlin/Exception { // com.revenuecat.purchases.kmp/PurchasesException|null[0] - constructor (com.revenuecat.purchases.kmp/PurchasesError) // com.revenuecat.purchases.kmp/PurchasesException.|(com.revenuecat.purchases.kmp.PurchasesError){}[0] - final val code // com.revenuecat.purchases.kmp/PurchasesException.code|{}code[0] - final fun (): com.revenuecat.purchases.kmp/PurchasesErrorCode // com.revenuecat.purchases.kmp/PurchasesException.code.|(){}[0] - final val error // com.revenuecat.purchases.kmp/PurchasesException.error|{}error[0] - final fun (): com.revenuecat.purchases.kmp/PurchasesError // com.revenuecat.purchases.kmp/PurchasesException.error.|(){}[0] - final val underlyingErrorMessage // com.revenuecat.purchases.kmp/PurchasesException.underlyingErrorMessage|{}underlyingErrorMessage[0] - final fun (): kotlin/String? // com.revenuecat.purchases.kmp/PurchasesException.underlyingErrorMessage.|(){}[0] - open val message // com.revenuecat.purchases.kmp/PurchasesException.message|{}message[0] - open fun (): kotlin/String // com.revenuecat.purchases.kmp/PurchasesException.message.|(){}[0] +open class com.revenuecat.purchases.kmp.models/PurchasesException : kotlin/Exception { // com.revenuecat.purchases.kmp.models/PurchasesException|null[0] + constructor (com.revenuecat.purchases.kmp.models/PurchasesError) // com.revenuecat.purchases.kmp.models/PurchasesException.|(com.revenuecat.purchases.kmp.models.PurchasesError){}[0] + final val code // com.revenuecat.purchases.kmp.models/PurchasesException.code|{}code[0] + final fun (): com.revenuecat.purchases.kmp.models/PurchasesErrorCode // com.revenuecat.purchases.kmp.models/PurchasesException.code.|(){}[0] + final val error // com.revenuecat.purchases.kmp.models/PurchasesException.error|{}error[0] + final fun (): com.revenuecat.purchases.kmp.models/PurchasesError // com.revenuecat.purchases.kmp.models/PurchasesException.error.|(){}[0] + final val underlyingErrorMessage // com.revenuecat.purchases.kmp.models/PurchasesException.underlyingErrorMessage|{}underlyingErrorMessage[0] + final fun (): kotlin/String? // com.revenuecat.purchases.kmp.models/PurchasesException.underlyingErrorMessage.|(){}[0] + open val message // com.revenuecat.purchases.kmp.models/PurchasesException.message|{}message[0] + open fun (): kotlin/String // com.revenuecat.purchases.kmp.models/PurchasesException.message.|(){}[0] } sealed interface com.revenuecat.purchases.kmp/PurchasesAreCompletedBy { // com.revenuecat.purchases.kmp/PurchasesAreCompletedBy|null[0] final class MyApp : com.revenuecat.purchases.kmp/PurchasesAreCompletedBy { // com.revenuecat.purchases.kmp/PurchasesAreCompletedBy.MyApp|null[0] diff --git a/models/src/androidMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.android.kt b/models/src/androidMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.android.kt index df6339ca..0ec8bd1e 100644 --- a/models/src/androidMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.android.kt +++ b/models/src/androidMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.android.kt @@ -1,6 +1,7 @@ package com.revenuecat.purchases.kmp import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreTransaction diff --git a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.kt b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.kt index 8d54a4c8..bfa03c7b 100644 --- a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.kt +++ b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesDelegate.kt @@ -1,6 +1,7 @@ package com.revenuecat.purchases.kmp import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreTransaction diff --git a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesException.kt b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesException.kt similarity index 89% rename from models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesException.kt rename to models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesException.kt index 8f70d5a8..a4324347 100644 --- a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesException.kt +++ b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesException.kt @@ -1,4 +1,4 @@ -package com.revenuecat.purchases.kmp +package com.revenuecat.purchases.kmp.models /** * An exception wrapping a [PurchasesError]. diff --git a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesTransactionException.kt b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesTransactionException.kt similarity index 89% rename from models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesTransactionException.kt rename to models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesTransactionException.kt index 8d1b7b87..bf497af4 100644 --- a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/PurchasesTransactionException.kt +++ b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasesTransactionException.kt @@ -1,4 +1,4 @@ -package com.revenuecat.purchases.kmp +package com.revenuecat.purchases.kmp.models /** * An exception indicating an error occurred during a transaction. Extends [PurchasesException] by diff --git a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/errors.kt b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/errors.kt similarity index 99% rename from models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/errors.kt rename to models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/errors.kt index 00407a15..33aba020 100644 --- a/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/errors.kt +++ b/models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/errors.kt @@ -1,4 +1,4 @@ -package com.revenuecat.purchases.kmp +package com.revenuecat.purchases.kmp.models /** * This class represents an error diff --git a/result/src/commonMain/kotlin/com/revenuecat/purchases/kmp/result/Result.kt b/result/src/commonMain/kotlin/com/revenuecat/purchases/kmp/result/Result.kt index 34e59248..8c54e131 100644 --- a/result/src/commonMain/kotlin/com/revenuecat/purchases/kmp/result/Result.kt +++ b/result/src/commonMain/kotlin/com/revenuecat/purchases/kmp/result/Result.kt @@ -1,10 +1,6 @@ package com.revenuecat.purchases.kmp.result -import com.revenuecat.purchases.kmp.models.Offerings -import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.Purchases -import com.revenuecat.purchases.kmp.PurchasesException -import com.revenuecat.purchases.kmp.PurchasesTransactionException import com.revenuecat.purchases.kmp.ktx.SuccessfulLogin import com.revenuecat.purchases.kmp.ktx.SuccessfulPurchase import com.revenuecat.purchases.kmp.ktx.awaitPromotionalOffer @@ -12,7 +8,11 @@ import com.revenuecat.purchases.kmp.ktx.awaitPurchase import com.revenuecat.purchases.kmp.models.CacheFetchPolicy import com.revenuecat.purchases.kmp.models.CustomerInfo import com.revenuecat.purchases.kmp.models.GoogleReplacementMode +import com.revenuecat.purchases.kmp.models.Offerings +import com.revenuecat.purchases.kmp.models.Package import com.revenuecat.purchases.kmp.models.PromotionalOffer +import com.revenuecat.purchases.kmp.models.PurchasesException +import com.revenuecat.purchases.kmp.models.PurchasesTransactionException import com.revenuecat.purchases.kmp.models.StoreProduct import com.revenuecat.purchases.kmp.models.StoreProductDiscount import com.revenuecat.purchases.kmp.models.StoreTransaction diff --git a/revenuecatui/api/revenuecatui.api b/revenuecatui/api/revenuecatui.api index 577ae264..1f1a198e 100644 --- a/revenuecatui/api/revenuecatui.api +++ b/revenuecatui/api/revenuecatui.api @@ -9,20 +9,20 @@ public final class com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallKt { public abstract interface class com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener { public abstract fun onPurchaseCancelled ()V public abstract fun onPurchaseCompleted (Lcom/revenuecat/purchases/kmp/models/CustomerInfo;Lcom/revenuecat/purchases/kmp/models/StoreTransaction;)V - public abstract fun onPurchaseError (Lcom/revenuecat/purchases/kmp/PurchasesError;)V + public abstract fun onPurchaseError (Lcom/revenuecat/purchases/kmp/models/PurchasesError;)V public abstract fun onPurchaseStarted (Lcom/revenuecat/purchases/kmp/models/Package;)V public abstract fun onRestoreCompleted (Lcom/revenuecat/purchases/kmp/models/CustomerInfo;)V - public abstract fun onRestoreError (Lcom/revenuecat/purchases/kmp/PurchasesError;)V + public abstract fun onRestoreError (Lcom/revenuecat/purchases/kmp/models/PurchasesError;)V public abstract fun onRestoreStarted ()V } public final class com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener$DefaultImpls { public static fun onPurchaseCancelled (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;)V public static fun onPurchaseCompleted (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/models/CustomerInfo;Lcom/revenuecat/purchases/kmp/models/StoreTransaction;)V - public static fun onPurchaseError (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/PurchasesError;)V + public static fun onPurchaseError (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/models/PurchasesError;)V public static fun onPurchaseStarted (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/models/Package;)V public static fun onRestoreCompleted (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/models/CustomerInfo;)V - public static fun onRestoreError (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/PurchasesError;)V + public static fun onRestoreError (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;Lcom/revenuecat/purchases/kmp/models/PurchasesError;)V public static fun onRestoreStarted (Lcom/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener;)V } diff --git a/revenuecatui/api/revenuecatui.klib.api b/revenuecatui/api/revenuecatui.klib.api index e753fed8..10f6d0b4 100644 --- a/revenuecatui/api/revenuecatui.klib.api +++ b/revenuecatui/api/revenuecatui.klib.api @@ -9,10 +9,10 @@ abstract interface com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener { // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener|null[0] open fun onPurchaseCancelled() // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onPurchaseCancelled|onPurchaseCancelled(){}[0] open fun onPurchaseCompleted(com.revenuecat.purchases.kmp.models/CustomerInfo, com.revenuecat.purchases.kmp.models/StoreTransaction) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onPurchaseCompleted|onPurchaseCompleted(com.revenuecat.purchases.kmp.models.CustomerInfo;com.revenuecat.purchases.kmp.models.StoreTransaction){}[0] - open fun onPurchaseError(com.revenuecat.purchases.kmp/PurchasesError) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onPurchaseError|onPurchaseError(com.revenuecat.purchases.kmp.PurchasesError){}[0] + open fun onPurchaseError(com.revenuecat.purchases.kmp.models/PurchasesError) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onPurchaseError|onPurchaseError(com.revenuecat.purchases.kmp.models.PurchasesError){}[0] open fun onPurchaseStarted(com.revenuecat.purchases.kmp.models/Package) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onPurchaseStarted|onPurchaseStarted(com.revenuecat.purchases.kmp.models.Package){}[0] open fun onRestoreCompleted(com.revenuecat.purchases.kmp.models/CustomerInfo) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onRestoreCompleted|onRestoreCompleted(com.revenuecat.purchases.kmp.models.CustomerInfo){}[0] - open fun onRestoreError(com.revenuecat.purchases.kmp/PurchasesError) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onRestoreError|onRestoreError(com.revenuecat.purchases.kmp.PurchasesError){}[0] + open fun onRestoreError(com.revenuecat.purchases.kmp.models/PurchasesError) // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onRestoreError|onRestoreError(com.revenuecat.purchases.kmp.models.PurchasesError){}[0] open fun onRestoreStarted() // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallListener.onRestoreStarted|onRestoreStarted(){}[0] } final class com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallOptions { // com.revenuecat.purchases.kmp.ui.revenuecatui/PaywallOptions|null[0] diff --git a/revenuecatui/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener.kt b/revenuecatui/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener.kt index d2a50900..f48eac2f 100644 --- a/revenuecatui/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener.kt +++ b/revenuecatui/src/commonMain/kotlin/com/revenuecat/purchases/kmp/ui/revenuecatui/PaywallListener.kt @@ -1,8 +1,8 @@ package com.revenuecat.purchases.kmp.ui.revenuecatui -import com.revenuecat.purchases.kmp.models.Package -import com.revenuecat.purchases.kmp.PurchasesError import com.revenuecat.purchases.kmp.models.CustomerInfo +import com.revenuecat.purchases.kmp.models.Package +import com.revenuecat.purchases.kmp.models.PurchasesError import com.revenuecat.purchases.kmp.models.StoreTransaction /**