A lightweight and easy-to-use library that allows developers to retrieve essential information about the user's device, including brand, model, manufacturer, and more. Minimum Android SDK = 21
Go to settings.gradle.kts
(for project with Kotlin DSL) or build.gradle
in project level (for project with Groovy) and add jitpack as maven URL.
dependencyResolutionManagement {
repositories {
maven { setUrl("https://jitpack.io") }
}
}
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.giovankabisano:AndroidUtilities:1.0.4'
import com.giovankov.deviceInformation.model
val x = model()
print(x) //m2012k11ag
import com.giovankov.deviceInformation.manufacturer
val x = manufacturer()
print(x) //Xiaomi
import com.giovankov.deviceInformation.brand
val x = brand()
print(x) //POCO
Coming soon in version 1.1.0