From 32a923149dfa557ccbea64ac5f2ad01213dcca63 Mon Sep 17 00:00:00 2001 From: Emre <39571861+memishood@users.noreply.github.com> Date: Mon, 16 Nov 2020 22:22:29 +0300 Subject: [PATCH] Update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 42f778c..2cf0328 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ #### 2.Add this dependency in your app level `build.gradle`: dependencies { ... - def latestVersion = "1.0.1" + def latestVersion = "1.0.3" implementation "com.github.memishood:Android-Device-ID:$latestVersion" } @@ -39,15 +39,17 @@ ### Kotlin Remember to check READ_PHONE_STATE permission before using ```kotlin -DeviceInfo.imei(this)?.let { imei -> +val deviceInfo = DeviceInfo(this) + +deviceInfo.imei?.let { imei -> // your code.. } - -DeviceInfo.simSerialNumber(this)?.let { simSerialNumber -> + +deviceInfo.simSerialNumber?.let { simSerialNumber -> // your code.. } -DeviceInfo.secureId(this)?.let { secureId -> +deviceInfo.secureId?.let { secureId -> // your code.. } ```