From eb7e699439e737e4743e68e7c748247eb5bcef83 Mon Sep 17 00:00:00 2001 From: rvenky125 Date: Sun, 12 May 2024 16:52:36 +0530 Subject: [PATCH] recursion issue fix --- README.md | 4 ++-- device-info/build.gradle.kts | 2 +- .../kotlin/com/famas/kmp_device_info/DeviceInfo.android.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d969c5a..63734a3 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ val uniqueId = DeviceInfo.getUniqueId() build.gradle.kts: ```kotlin - api("io.github.rvenky125:kmp-device-info:0.0.16-alpha") + api("io.github.rvenky125:kmp-device-info:0.0.17-alpha") ``` @@ -39,7 +39,7 @@ val uniqueId = DeviceInfo.getUniqueId() build.gradle: ```kotlin - api "io.github.rvenky125:kmp-device-info:0.0.16-alpha" + api "io.github.rvenky125:kmp-device-info:0.0.17-alpha" ``` diff --git a/device-info/build.gradle.kts b/device-info/build.gradle.kts index de203e1..9204751 100644 --- a/device-info/build.gradle.kts +++ b/device-info/build.gradle.kts @@ -4,7 +4,7 @@ import com.vanniktech.maven.publish.SonatypeHost import org.jetbrains.dokka.gradle.DokkaTask import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.GradleKpmIosX64Variant -val libVersion = "0.0.16-alpha" +val libVersion = "0.0.17-alpha" val artifactId = "kmp-device-info" val groupId = "io.github.rvenky125" diff --git a/device-info/src/androidMain/kotlin/com/famas/kmp_device_info/DeviceInfo.android.kt b/device-info/src/androidMain/kotlin/com/famas/kmp_device_info/DeviceInfo.android.kt index 9ab02c1..59039d3 100644 --- a/device-info/src/androidMain/kotlin/com/famas/kmp_device_info/DeviceInfo.android.kt +++ b/device-info/src/androidMain/kotlin/com/famas/kmp_device_info/DeviceInfo.android.kt @@ -505,7 +505,7 @@ actual class DeviceInfo { private val packageInfo: PackageInfo get() = packageManager - .getPackageInfo(packageInfo.packageName, 0) + .getPackageInfo(context.packageName, 0) private val installerPackageNameSync: String get() {