OsVersions

@Serializable
data class OsVersions(semVer: String, buildNumber: String) : Comparable<Any> (source)

Container class for iOS versions. Necessary, iOS versions used to always be encoded into attestation statements using SemVer syntax. Newer iPhones, however, use a hex string representation of the build number instead. Since it makes rarely sense to only check for SemVer not for a hex-encoded build number (i.e only accept older iPhones), encapsulating both variants into a dedicated type ensures that either both or neither are set.

Constructors

Link copied to clipboard
constructor(semVer: String, buildNumber: String)

Properties

Link copied to clipboard

Parsed and normalised iOS build number. As per TidBITS.com:

Link copied to clipboard
@Transient
val semVerParsed: SemVer

SemVer-formatted iOS version number.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Any): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String