Skip to content

Commit

Permalink
Moves miscellaneous types to the models package (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayShortway authored Sep 13, 2024
1 parent d08df80 commit e99236b
Show file tree
Hide file tree
Showing 19 changed files with 117 additions and 85 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.PurchasesAreCompletedBy
import com.revenuecat.purchases.kmp.models.PurchasesAreCompletedBy
import com.revenuecat.purchases.kmp.models.StoreKitVersion

@Suppress("unused", "UNUSED_VARIABLE")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.revenuecat.purchases.kmp.apitester

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.Purchases
import com.revenuecat.purchases.kmp.PurchasesAreCompletedBy
import com.revenuecat.purchases.kmp.PurchasesConfiguration
import com.revenuecat.purchases.kmp.PurchasesDelegate
import com.revenuecat.purchases.kmp.configure
Expand All @@ -19,10 +17,12 @@ import com.revenuecat.purchases.kmp.ktx.awaitOfferings
import com.revenuecat.purchases.kmp.ktx.awaitPurchase
import com.revenuecat.purchases.kmp.models.BillingFeature
import com.revenuecat.purchases.kmp.models.CustomerInfo
import com.revenuecat.purchases.kmp.models.DangerousSettings
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.PurchasesAreCompletedBy
import com.revenuecat.purchases.kmp.models.PurchasesError
import com.revenuecat.purchases.kmp.models.Store
import com.revenuecat.purchases.kmp.models.StoreKitVersion
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.ReplacementMode
import com.revenuecat.purchases.kmp.models.GoogleReplacementMode
import com.revenuecat.purchases.kmp.models.ReplacementMode

@Suppress("unused", "UNUSED_VARIABLE")
private class ReplacementModeAPI {
Expand Down
30 changes: 15 additions & 15 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public final class com/revenuecat/purchases/kmp/Purchases {
public final fun logIn (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)V
public final fun logOut (Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/Package;Lcom/revenuecat/purchases/kmp/models/PromotionalOffer;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/Package;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/Package;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lcom/revenuecat/purchases/kmp/models/PromotionalOffer;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/SubscriptionOption;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/Package;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;ILjava/lang/Object;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;ILjava/lang/Object;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/SubscriptionOption;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/ReplacementMode;ILjava/lang/Object;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;)V
public final fun purchase (Lcom/revenuecat/purchases/kmp/models/SubscriptionOption;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/Package;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;ILjava/lang/Object;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/StoreProduct;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;ILjava/lang/Object;)V
public static synthetic fun purchase$default (Lcom/revenuecat/purchases/kmp/Purchases;Lcom/revenuecat/purchases/kmp/models/SubscriptionOption;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Ljava/lang/Boolean;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/ReplacementMode;ILjava/lang/Object;)V
public final fun recordPurchase (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
public final fun restorePurchases (Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
public final fun setAd (Ljava/lang/String;)V
Expand Down Expand Up @@ -87,13 +87,13 @@ public final class com/revenuecat/purchases/kmp/Purchases$Companion {
}

public final class com/revenuecat/purchases/kmp/PurchasesConfiguration {
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/PurchasesAreCompletedBy;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/StoreKitVersion;ZLcom/revenuecat/purchases/kmp/models/Store;ZLcom/revenuecat/purchases/kmp/DangerousSettings;Lcom/revenuecat/purchases/kmp/models/EntitlementVerificationMode;Ljava/lang/Boolean;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/PurchasesAreCompletedBy;Ljava/lang/String;Lcom/revenuecat/purchases/kmp/models/StoreKitVersion;ZLcom/revenuecat/purchases/kmp/models/Store;ZLcom/revenuecat/purchases/kmp/models/DangerousSettings;Lcom/revenuecat/purchases/kmp/models/EntitlementVerificationMode;Ljava/lang/Boolean;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getApiKey ()Ljava/lang/String;
public final fun getAppUserId ()Ljava/lang/String;
public final fun getDangerousSettings ()Lcom/revenuecat/purchases/kmp/DangerousSettings;
public final fun getDangerousSettings ()Lcom/revenuecat/purchases/kmp/models/DangerousSettings;
public final fun getDiagnosticsEnabled ()Z
public final fun getPendingTransactionsForPrepaidPlansEnabled ()Ljava/lang/Boolean;
public final fun getPurchasesAreCompletedBy ()Lcom/revenuecat/purchases/kmp/PurchasesAreCompletedBy;
public final fun getPurchasesAreCompletedBy ()Lcom/revenuecat/purchases/kmp/models/PurchasesAreCompletedBy;
public final fun getShowInAppMessagesAutomatically ()Z
public final fun getStore ()Lcom/revenuecat/purchases/kmp/models/Store;
public final fun getStoreKitVersion ()Lcom/revenuecat/purchases/kmp/models/StoreKitVersion;
Expand All @@ -107,27 +107,27 @@ public final class com/revenuecat/purchases/kmp/PurchasesConfiguration$Builder {
public final fun apiKey (Ljava/lang/String;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun appUserId (Ljava/lang/String;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun build ()Lcom/revenuecat/purchases/kmp/PurchasesConfiguration;
public final fun dangerousSettings (Lcom/revenuecat/purchases/kmp/DangerousSettings;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun dangerousSettings (Lcom/revenuecat/purchases/kmp/models/DangerousSettings;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun diagnosticsEnabled (Z)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun getApiKey ()Ljava/lang/String;
public final fun getAppUserId ()Ljava/lang/String;
public final fun getDangerousSettings ()Lcom/revenuecat/purchases/kmp/DangerousSettings;
public final fun getDangerousSettings ()Lcom/revenuecat/purchases/kmp/models/DangerousSettings;
public final fun getDiagnosticsEnabled ()Z
public final fun getPendingTransactionsForPrepaidPlansEnabled ()Ljava/lang/Boolean;
public final fun getPurchasesAreCompletedBy ()Lcom/revenuecat/purchases/kmp/PurchasesAreCompletedBy;
public final fun getPurchasesAreCompletedBy ()Lcom/revenuecat/purchases/kmp/models/PurchasesAreCompletedBy;
public final fun getShowInAppMessagesAutomatically ()Z
public final fun getStore ()Lcom/revenuecat/purchases/kmp/models/Store;
public final fun getStoreKitVersion ()Lcom/revenuecat/purchases/kmp/models/StoreKitVersion;
public final fun getUserDefaultsSuiteName ()Ljava/lang/String;
public final fun getVerificationMode ()Lcom/revenuecat/purchases/kmp/models/EntitlementVerificationMode;
public final fun pendingTransactionsForPrepaidPlansEnabled (Z)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun purchasesAreCompletedBy (Lcom/revenuecat/purchases/kmp/PurchasesAreCompletedBy;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final fun purchasesAreCompletedBy (Lcom/revenuecat/purchases/kmp/models/PurchasesAreCompletedBy;)Lcom/revenuecat/purchases/kmp/PurchasesConfiguration$Builder;
public final synthetic fun setApiKey (Ljava/lang/String;)V
public final synthetic fun setAppUserId (Ljava/lang/String;)V
public final synthetic fun setDangerousSettings (Lcom/revenuecat/purchases/kmp/DangerousSettings;)V
public final synthetic fun setDangerousSettings (Lcom/revenuecat/purchases/kmp/models/DangerousSettings;)V
public final synthetic fun setDiagnosticsEnabled (Z)V
public final synthetic fun setPendingTransactionsForPrepaidPlansEnabled (Ljava/lang/Boolean;)V
public final synthetic fun setPurchasesAreCompletedBy (Lcom/revenuecat/purchases/kmp/PurchasesAreCompletedBy;)V
public final synthetic fun setPurchasesAreCompletedBy (Lcom/revenuecat/purchases/kmp/models/PurchasesAreCompletedBy;)V
public final synthetic fun setShowInAppMessagesAutomatically (Z)V
public final synthetic fun setStore (Lcom/revenuecat/purchases/kmp/models/Store;)V
public final synthetic fun setStoreKitVersion (Lcom/revenuecat/purchases/kmp/models/StoreKitVersion;)V
Expand Down
Loading

0 comments on commit e99236b

Please sign in to comment.