fun getHashKey(context: Context) = try { val signature = when { Build.VERSION.SDK_INT >= Build.VERSION_CODES.P -> { context.packageManager.getPackageInfo(context.packageName, PackageManager.GET_SIGNING_CERTIFICATES).signingInfo.apkContentsSigners[0] } else -> { context.packageManager.getPackageInfo(context.packageName, PackageManager.GET_SIGNATURES).signatures[0] } } MessageDigest.getInstance("S..