get Suggested Version
fun <T : PackageVersion> getSuggestedVersion(versions: List<T>, preferredSigner: String?, releaseChannels: List<String>? = null, preferencesGetter: () -> PackagePreference?? = null): T?
Returns the PackageVersion that is suggested for a new installation or null if there is no suitable candidate in versions.
Parameters
versions
a sorted list of PackageVersion with highest version code first.
preferred Signer
The SHA-256 hash of the signing certificate in lower-case hex. Only versions from this signer will be considered for installation.
release Channels
optional list of release channels to consider on top of stable. If this is null or empty, only versions without channel (stable) will be considered.
preferences Getter
an optional way to consider additional per app preferences