Skip to content

Commit

Permalink
Moves errors to the models package (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayShortway authored Sep 13, 2024
1 parent e0b64cd commit d08df80
Show file tree
Hide file tree
Showing 31 changed files with 256 additions and 212 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading

0 comments on commit d08df80

Please sign in to comment.