-
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
Showing
275 changed files
with
3,956 additions
and
3,904 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,6 +329,7 @@ GEM | |
|
||
PLATFORMS | ||
arm64-darwin-21 | ||
arm64-darwin-22 | ||
arm64-darwin-23 | ||
|
||
DEPENDENCIES | ||
|
22 changes: 0 additions & 22 deletions
22
apiTester/src/androidMain/kotlin/com/revenuecat/purchases/kmp/apitester/PackageTypeAPI.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
File renamed without changes.
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
17 changes: 17 additions & 0 deletions
17
...er/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/DiscountPaymentModeAPI.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.models.DiscountPaymentMode | ||
|
||
@Suppress("unused") | ||
private class DiscountPaymentModeAPI { | ||
|
||
fun check(mode: DiscountPaymentMode) { | ||
when (mode) { | ||
DiscountPaymentMode.FREE_TRIAL, | ||
DiscountPaymentMode.PAY_AS_YOU_GO, | ||
DiscountPaymentMode.PAY_UP_FRONT, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/DiscountTypeAPI.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.models.DiscountType | ||
|
||
@Suppress("unused") | ||
private class DiscountTypeAPI { | ||
|
||
fun check(type: DiscountType) { | ||
when (type) { | ||
DiscountType.INTRODUCTORY, | ||
DiscountType.PROMOTIONAL, | ||
-> { | ||
} | ||
}.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
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
File renamed without changes.
8 changes: 1 addition & 7 deletions
8
...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
18 changes: 18 additions & 0 deletions
18
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/LogLevelAPI.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,18 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.LogLevel | ||
|
||
@Suppress("unused") | ||
private class LogLevelAPI { | ||
fun check(logLevel: LogLevel) { | ||
when (logLevel) { | ||
LogLevel.VERBOSE, | ||
LogLevel.DEBUG, | ||
LogLevel.INFO, | ||
LogLevel.WARN, | ||
LogLevel.ERROR, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
File renamed without changes.
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
File renamed without changes.
12 changes: 4 additions & 8 deletions
12
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/PackageAPI.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 |
---|---|---|
@@ -1,22 +1,18 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.Package | ||
import com.revenuecat.purchases.kmp.PackageType | ||
import com.revenuecat.purchases.kmp.PresentedOfferingContext | ||
import com.revenuecat.purchases.kmp.identifier | ||
import com.revenuecat.purchases.kmp.models.StoreProduct | ||
import com.revenuecat.purchases.kmp.packageType | ||
import com.revenuecat.purchases.kmp.presentedOfferingContext | ||
import com.revenuecat.purchases.kmp.storeProduct | ||
|
||
@Suppress("unused", "UNUSED_VARIABLE") | ||
private class PackageAPI { | ||
fun check(p: Package) { | ||
with(p) { | ||
val identifier: String = identifier | ||
val packageType: PackageType = packageType | ||
// FIXME re-enable in SDK-3529 | ||
// val packageType: PackageType = packageType | ||
val product: StoreProduct = storeProduct | ||
val presentedOfferingContext: PresentedOfferingContext = presentedOfferingContext | ||
// FIXME re-enable in SDK-3529 | ||
// val presentedOfferingContext: PresentedOfferingContext = presentedOfferingContext | ||
} | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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: 15 additions & 0 deletions
15
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/ReplacementModeAPI.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,15 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.ReplacementMode | ||
import com.revenuecat.purchases.kmp.models.GoogleReplacementMode | ||
|
||
@Suppress("unused", "UNUSED_VARIABLE") | ||
private class ReplacementModeAPI { | ||
fun check(mode: ReplacementMode, googleReplacementMode: GoogleReplacementMode) { | ||
val name: String = mode.name | ||
val googleMode: ReplacementMode = googleReplacementMode | ||
val newMode = object : ReplacementMode { | ||
override val name: String = "newMode" | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.