-
public class VersionInfoVersionInfo exposes SDK release metadata at runtime.
The string is wired through
BuildConfig.SDK_VERSION, whichbuild.gradle.ktssets from the samesdkVersionconstant it uses for the Maven coordinates. Bumping the version inbuild.gradle.ktsupdates this automatically.major, minor and patch are derived from versionString for code that needs to gate behaviour on the SDK version (e.g.
if (VersionInfo.major > 0 || (VersionInfo.major == 0 && VersionInfo.minor >= 5)) { … }).
-
-
Field Summary
Fields Modifier and Type Field Description private final StringversionStringprivate final Integermajorprivate final Integerminorprivate final Integerpatchpublic final static VersionInfoINSTANCE
-
Method Summary
-
-
Method Detail
-
getVersionString
final String getVersionString()
Full version string, e.g. "0.5.1".
-
-
-
-