[android-components](../../index.md) / [org.mozilla.telemetry.util](../index.md) / [ContextUtils](index.md) / [getVersionCode](./get-version-code.md)

# getVersionCode

`open static fun getVersionCode(context: Context): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/ContextUtils.java#L19)