-
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.
Temporarily reverts "Remove expect/actual from enums without extra pr…
…operties (#137)" (#141) Revert "Remove expect/actual from enums without extra properties (#137)" This reverts commit 1fb4e8d.
- Loading branch information
1 parent
1fb4e8d
commit 0b5629f
Showing
37 changed files
with
251 additions
and
284 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
...er/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/DiscountPaymentModeAPI.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/DiscountTypeAPI.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
18 changes: 0 additions & 18 deletions
18
apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/LogLevelAPI.kt
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/CacheFetchPolicyAPI.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.CacheFetchPolicy | ||
|
||
@Suppress("unused") | ||
private class CacheFetchPolicyAPI { | ||
|
||
fun check(fetchPolicy: CacheFetchPolicy) { | ||
when (fetchPolicy) { | ||
CacheFetchPolicy.CACHE_ONLY, | ||
CacheFetchPolicy.FETCH_CURRENT, | ||
CacheFetchPolicy.CACHED_OR_FETCHED, | ||
CacheFetchPolicy.NOT_STALE_CACHED_OR_CURRENT, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/OwnershipTypeAPI.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.OwnershipType | ||
|
||
@Suppress("unused") | ||
private class OwnershipTypeAPI { | ||
fun check(type: OwnershipType) { | ||
when (type) { | ||
OwnershipType.PURCHASED, | ||
OwnershipType.FAMILY_SHARED, | ||
OwnershipType.UNKNOWN, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/PeriodTypeAPI.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.PeriodType | ||
|
||
@Suppress("unused") | ||
private class PeriodTypeAPI { | ||
fun check(type: PeriodType) { | ||
when (type) { | ||
PeriodType.NORMAL, | ||
PeriodType.INTRO, | ||
PeriodType.TRIAL, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...r/src/iosMain/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,15 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.PurchasesAreCompletedBy | ||
|
||
@Suppress("unused") | ||
private class PurchasesAreCompletedByAPI { | ||
fun check(mode: PurchasesAreCompletedBy) { | ||
when (mode) { | ||
PurchasesAreCompletedBy.REVENUECAT, | ||
PurchasesAreCompletedBy.MY_APP, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
apiTester/src/iosMain/kotlin/com/revenuecat/purchases/kmp/apitester/StoreAPI.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,22 @@ | ||
package com.revenuecat.purchases.kmp.apitester | ||
|
||
import com.revenuecat.purchases.kmp.Store | ||
|
||
@Suppress("unused") | ||
private class StoreAPI { | ||
fun check(store: Store) { | ||
when (store) { | ||
Store.APP_STORE, | ||
Store.MAC_APP_STORE, | ||
Store.PLAY_STORE, | ||
Store.STRIPE, | ||
Store.PROMOTIONAL, | ||
Store.UNKNOWN_STORE, | ||
Store.AMAZON, | ||
Store.RC_BILLING, | ||
Store.EXTERNAL, | ||
-> { | ||
} | ||
}.exhaustive | ||
} | ||
} |
Oops, something went wrong.