-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove expect/actual from enums without extra properties (#137)
- Loading branch information
1 parent
d0d6fa6
commit 1fb4e8d
Showing
37 changed files
with
284 additions
and
251 deletions.
There are no files selected for viewing
File renamed without changes.
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
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions
18
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/CacheFetchPolicyAPI.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/OwnershipTypeAPI.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PeriodTypeAPI.kt
This file was deleted.
Oops, something went wrong.
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.
22 changes: 0 additions & 22 deletions
22
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/StoreAPI.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.