-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dd907b
commit 402b688
Showing
41 changed files
with
908 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...c/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesAreCompletedByAPI.kt
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...ester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/InstallmentsInfoAPI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.PresentedOfferingContext | ||
import com.revenuecat.purchases.kmp.StoreKitVersion | ||
import com.revenuecat.purchases.kmp.models.InstallmentsInfo | ||
import com.revenuecat.purchases.kmp.models.PricingPhase | ||
import com.revenuecat.purchases.kmp.models.SubscriptionOption | ||
import com.revenuecat.purchases.kmp.models.isBasePlan | ||
import com.revenuecat.purchases.kmp.models.isPrepaid | ||
|
||
@Suppress("unused") | ||
private class InstallmentsInfoAPI { | ||
fun checkInstallmentsInfo(installmentsInfo: InstallmentsInfo) { | ||
val commitmentPaymentsCount: Int = installmentsInfo.commitmentPaymentsCount | ||
val renewalCommitmentPaymentsCount: Int = installmentsInfo.renewalCommitmentPaymentsCount | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...rc/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesAreCompletedByAPI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.PurchasesAreCompletedBy | ||
import com.revenuecat.purchases.kmp.StoreKitVersion | ||
|
||
@Suppress("unused") | ||
private class PurchasesAreCompletedByAPI { | ||
fun check(mode: PurchasesAreCompletedBy) { | ||
when (mode) { | ||
is PurchasesAreCompletedBy.RevenueCat -> { } | ||
is PurchasesAreCompletedBy.MyApp -> { | ||
val storeKitVersion: StoreKitVersion = mode.storeKitVersion | ||
} | ||
}.exhaustive | ||
} | ||
|
||
fun checkStoreKitValueInPurchasesAreCompletedByMyApp() { | ||
PurchasesAreCompletedBy.MyApp(storeKitVersion = StoreKitVersion.STOREKIT_2) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/StoreKitVersionAPI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.StoreKitVersion | ||
|
||
@Suppress("unused") | ||
private class StoreKitVersionAPI { | ||
fun check(skVersion: StoreKitVersion) { | ||
when (skVersion) { | ||
StoreKitVersion.STOREKIT_1, | ||
StoreKitVersion.STOREKIT_2, | ||
StoreKitVersion.DEFAULT, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...r/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PurchasesAreCompletedByAPI.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.