VersionProvider

object VersionProvider

版本数据提供者

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getSelfPackageInfo
Link copied to clipboard
private fun getSelfPackageInfo(context: Context): PackageInfo?
getVersionCode
Link copied to clipboard
fun getVersionCode(context: Context): Long
获取版本号
getVersionName
Link copied to clipboard
fun getVersionName(context: Context): String?
获取版本名称
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

appVersionCode
Link copied to clipboard
private var appVersionCode: Long
appVersionName
Link copied to clipboard
private var appVersionName: String?
FALLBACK_VERSION_CODE
Link copied to clipboard
private const val FALLBACK_VERSION_CODE: Long
FALLBACK_VERSION_NAME
Link copied to clipboard
private val FALLBACK_VERSION_NAME: Nothing? = null