make sure Version Code is a long everywhere
-
PackageInfo.versionCode
->PackageInfo.getLongVersionCode()
PackageInfo.setLongVersionCode()
As far as I understand it, the Kotlin libs already use the Long version of Version Code.
"This field was deprecated in API level 28." https://developer.android.com/reference/android/content/pm/PackageInfo.html#versionCode