Created
April 14, 2018 18:37
-
-
Save henrykvdb/c498b23e5aec2626c1c26719ec9038ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deviceInfo = ("\n /** please do not remove this block, technical info: " | |
+ "os version: ${System.getProperty("os.version")}(${android.os.Build.VERSION.INCREMENTAL})" | |
+ ", API: ${android.os.Build.VERSION.SDK_INT}") | |
try { | |
val pInfo = packageManager.getPackageInfo(packageName, 0) | |
deviceInfo += ", app version: ${pInfo.versionName}" | |
} catch (e: PackageManager.NameNotFoundException) { | |
//Add nothing | |
} | |
deviceInfo += "**/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment