package com.costular.kotlin_utils.versions

import android.content.Context

/**
 * Created by costular on 14/08/17.
 */
fun Context.getVersionCode(): Int = packageManager.getPackageInfo(packageName, 0).versionCode

fun Context.getVersionName(): String = packageManager.getPackageInfo(packageName, 0).versionName


UPDATE version code and name from device
UPDATE version code and name from device

costular/kotlin-android-utils,costular/kotlin-android-utils