-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Wrote a lot of documentation to improve docs overall - Improved Custom Exceptions to show errors - Added missing @JvmStatic - Added missing @jvmoverloads Signed-off-by: Ahmed Moussa <ahmed.moussa@iohk.io>
- Loading branch information
Showing
136 changed files
with
4,692 additions
and
498 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
29 changes: 28 additions & 1 deletion
29
...-prism-sdk/src/androidMain/kotlin/io/iohk/atala/prism/walletsdk/domain/models/Platform.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,8 +1,35 @@ | ||
package io.iohk.atala.prism.walletsdk.domain.models | ||
|
||
/** | ||
* The `Platform` object represents the platform on which the code is running. | ||
*/ | ||
actual object Platform { | ||
/** | ||
* This variable represents the operating system on which the code is currently running. | ||
* | ||
* On Android, it returns a string with the Android version followed by the SDK level. | ||
* For example: "Android 10" | ||
* | ||
* @return The operating system of the device. | ||
*/ | ||
actual val OS: String | ||
get() = "Android" | ||
get() = "Android ${android.os.Build.VERSION.SDK_INT}" | ||
|
||
/** | ||
* Represents the platform type. | ||
* | ||
* This actual property represents the current platform type. It is used to determine the type of the platform on which | ||
* the application is being executed. The possible platform types are JVM, ANDROID, IOS, and WEB. | ||
* | ||
* This property is read-only and can be accessed using the `type` property of the `PlatformType` class. | ||
* | ||
* Example usage: | ||
* ``` | ||
* val platformType = PlatformType.ANDROID | ||
* ``` | ||
* | ||
* @see PlatformType | ||
*/ | ||
actual val type: PlatformType | ||
get() = PlatformType.ANDROID | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...sm-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/apollo/helpers/ByteArrayExt.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
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.