-
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.
Fixes all missing public documentation in commonMain (#12)
* Fixes all missing public documentation in commonMain. * Activates detekt `comments` rules.
- Loading branch information
1 parent
8b83cef
commit dfe7ddd
Showing
27 changed files
with
231 additions
and
320 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
9 changes: 9 additions & 0 deletions
9
core/src/commonMain/kotlin/io/shortway/kobankat/DangerousSettings.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,5 +1,14 @@ | ||
package io.shortway.kobankat | ||
|
||
/** | ||
* Only use a Dangerous Setting if suggested by RevenueCat support team. | ||
*/ | ||
public data class DangerousSettings( | ||
/** | ||
* Disable or enable syncing purchases automatically. If this is disabled, RevenueCat will not | ||
* sync any purchase automatically, and you will have to call [syncPurchases] whenever a new | ||
* purchase is completed in order to send it to the RevenueCat's backend. Auto syncing of | ||
* purchases is enabled by default. | ||
*/ | ||
public val autoSyncPurchases: Boolean, | ||
) |
69 changes: 67 additions & 2 deletions
69
core/src/commonMain/kotlin/io/shortway/kobankat/EntitlementInfo.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
12 changes: 12 additions & 0 deletions
12
core/src/commonMain/kotlin/io/shortway/kobankat/EntitlementInfos.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
10 changes: 10 additions & 0 deletions
10
core/src/commonMain/kotlin/io/shortway/kobankat/EntitlementVerificationMode.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,6 +1,16 @@ | ||
package io.shortway.kobankat | ||
|
||
/** | ||
* Verification strictness levels for [EntitlementInfo]. | ||
*/ | ||
public enum class EntitlementVerificationMode { | ||
/** | ||
* The SDK will not perform any entitlement verification. | ||
*/ | ||
DISABLED, | ||
|
||
/** | ||
* Enable entitlement verification. | ||
*/ | ||
INFORMATIONAL, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package io.shortway.kobankat | ||
|
||
/** | ||
* The level to log at. | ||
*/ | ||
public expect enum class LogLevel { | ||
VERBOSE, | ||
DEBUG, | ||
|
14 changes: 14 additions & 0 deletions
14
core/src/commonMain/kotlin/io/shortway/kobankat/ProductType.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,7 +1,21 @@ | ||
package io.shortway.kobankat | ||
|
||
/** | ||
* Possible product types. | ||
*/ | ||
public expect enum class ProductType { | ||
/** | ||
* A subscription product. | ||
*/ | ||
SUBS, | ||
|
||
/** | ||
* An in-app purchase product. | ||
*/ | ||
INAPP, | ||
|
||
/** | ||
* The product type could not be determined. | ||
*/ | ||
UNKNOWN, | ||
} |
3 changes: 3 additions & 0 deletions
3
core/src/commonMain/kotlin/io/shortway/kobankat/PurchasesConfiguration.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
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
3 changes: 3 additions & 0 deletions
3
core/src/commonMain/kotlin/io/shortway/kobankat/PurchasesException.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
12 changes: 12 additions & 0 deletions
12
core/src/commonMain/kotlin/io/shortway/kobankat/PurchasesFactory.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
7 changes: 7 additions & 0 deletions
7
core/src/commonMain/kotlin/io/shortway/kobankat/PurchasesTransactionException.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,6 +1,13 @@ | ||
package io.shortway.kobankat | ||
|
||
/** | ||
* An exception indicating an error occurred during a transaction. Extends [PurchasesException] by | ||
* adding a [userCancelled] property. | ||
*/ | ||
public class PurchasesTransactionException( | ||
purchasesError: PurchasesError, | ||
/** | ||
* Whether the user cancelled the transaction. | ||
*/ | ||
public val userCancelled: Boolean, | ||
) : PurchasesException(purchasesError) |
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: 15 additions & 2 deletions
17
core/src/commonMain/kotlin/io/shortway/kobankat/i18n/Locale.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
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
3 changes: 3 additions & 0 deletions
3
core/src/commonMain/kotlin/io/shortway/kobankat/models/Price.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
7 changes: 0 additions & 7 deletions
7
core/src/commonMain/kotlin/io/shortway/kobankat/models/PurchaseState.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.