Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves miscellaneous types to the models package #192

Merged
merged 42 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3aa3115
Moves most enums to the models package.
JayShortway Sep 11, 2024
fedb76d
Updates the public API dump.
JayShortway Sep 11, 2024
34a7a41
Moves CustomerInfo and dependencies.
JayShortway Sep 11, 2024
eec60d1
Updates the public API dump.
JayShortway Sep 11, 2024
677e00d
Adds type aliases for EntitlementInfo enums.
JayShortway Sep 11, 2024
a10fb81
Moves Offerings and dependencies.
JayShortway Sep 11, 2024
3163e21
Updates the public API dump.
JayShortway Sep 11, 2024
5a8829b
Deprecation message says 'type' instead of 'class'.
JayShortway Sep 11, 2024
6746df7
Merge branch 'models-enums' into models-customerinfo
JayShortway Sep 11, 2024
19e3bf0
Deprecation message says 'type' instead of 'class'.
JayShortway Sep 11, 2024
cf34e8d
Merge branch 'models-customerinfo' into models-offering
JayShortway Sep 11, 2024
96b9746
Moves the error types.
JayShortway Sep 11, 2024
f53cf2e
Updates the public API dump.
JayShortway Sep 11, 2024
042688b
Deletes TestStuff.kt.
JayShortway Sep 11, 2024
34a91fd
Merge branch 'models-enums' into models-customerinfo
JayShortway Sep 11, 2024
7a7b6bb
Merge branch 'models-customerinfo' into models-offering
JayShortway Sep 11, 2024
9b68566
Merge branch 'models-offering' into models-errors
JayShortway Sep 11, 2024
07ef16d
Moves PurchasesAreCompletedBy, DangerousSettings and ReplacementMode.
JayShortway Sep 11, 2024
1a389bb
Updates the public API dump.
JayShortway Sep 11, 2024
bf06570
Merge branch 'main' into models-enums
JayShortway Sep 12, 2024
21c3ded
Merge branch 'models-enums' into models-customerinfo
JayShortway Sep 12, 2024
655126f
Merge branch 'models-customerinfo' into models-offering
JayShortway Sep 12, 2024
debcda2
Merge branch 'models-offering' into models-errors
JayShortway Sep 12, 2024
a8e13e0
Merge branch 'models-errors' into models-misc
JayShortway Sep 12, 2024
991f3c1
Merge branch 'main' into models-enums
JayShortway Sep 13, 2024
4766548
Merge branch 'models-enums' into models-customerinfo
JayShortway Sep 13, 2024
ee2a02f
Merge branch 'models-customerinfo' into models-offering
JayShortway Sep 13, 2024
adb0718
Merge branch 'models-offering' into models-errors
JayShortway Sep 13, 2024
a1f79ac
Merge branch 'models-errors' into models-misc
JayShortway Sep 13, 2024
f462734
Merge branch 'main' into models-customerinfo
JayShortway Sep 13, 2024
ef53081
Merge branch 'models-customerinfo' into models-offering
JayShortway Sep 13, 2024
7577fd7
Merge branch 'models-offering' into models-errors
JayShortway Sep 13, 2024
c4b73b8
Merge branch 'models-errors' into models-misc
JayShortway Sep 13, 2024
7bff723
Merge branch 'main' into models-offering
JayShortway Sep 13, 2024
0376223
Merge branch 'models-offering' into models-errors
JayShortway Sep 13, 2024
8662e8e
Merge branch 'models-errors' into models-misc
JayShortway Sep 13, 2024
7fdb4fc
Fixes the public API dump.
JayShortway Sep 13, 2024
e285952
Merge branch 'models-offering' into models-errors
JayShortway Sep 13, 2024
372b5df
Merge branch 'models-errors' into models-misc
JayShortway Sep 13, 2024
289002a
Merge branch 'main' into models-errors
JayShortway Sep 13, 2024
45c0534
Merge branch 'models-errors' into models-misc
JayShortway Sep 13, 2024
c4d9b53
Merge branch 'main' into models-misc
JayShortway Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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