Skip to content

Commit

Permalink
import issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rvenky125 committed May 7, 2024
1 parent 1b10da9 commit 99fdb92
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import android.provider.Settings
import android.provider.Settings.Secure
import android.telephony.TelephonyManager
import android.webkit.WebSettings
import com.famas.kmp_device_info.resolver.DeviceIdResolver
import com.famas.kmp_device_info.resolver.DeviceTypeResolver
import java.math.BigInteger
import java.net.InetAddress
Expand All @@ -41,7 +40,6 @@ import java.util.Collections
actual class DeviceInfo {
actual companion object {
private lateinit var deviceTypeResolver: DeviceTypeResolver
private lateinit var deviceIdResolver: DeviceIdResolver
private lateinit var context: Context
private lateinit var wifiManager: WifiManager
private lateinit var activityManager: ActivityManager
Expand All @@ -64,7 +62,6 @@ actual class DeviceInfo {
this.context = context

deviceTypeResolver = DeviceTypeResolver(context)
deviceIdResolver = DeviceIdResolver(context)
wifiManager = context.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager
activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
keyguardManager = context.getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
Expand Down Expand Up @@ -729,13 +726,6 @@ actual class DeviceInfo {
return totalMemorySync
}

private val instanceIdSync: String?
get() = deviceIdResolver.instanceIdSync

actual fun getInstanceId(): String? {
return instanceIdSync
}

private val baseOsSync: String
get() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
Build.VERSION.BASE_OS
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ expect class DeviceInfo {

fun getTotalMemory(): Double

fun getInstanceId(): String?

fun getBaseOs(): String

fun getPreviewSdkInt(): String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ actual class DeviceInfo {

}

actual fun getInstanceId(): String? {
throw NotAvailableToPlatformException
}

actual fun getBaseOs(): String {
throw NotAvailableToPlatformException
}
Expand Down
Binary file added secring.gpg
Binary file not shown.

0 comments on commit 99fdb92

Please sign in to comment.