Skip to content

Latest commit

 

History

History

compatibility

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Compatibility

Maven Central

Helper class that helps you to check device information. For example, if the device runs MIUI.

Download

dependencies {
    implementation "dev.rikka.rikkax.compatibility:compatibility:<version>"
}

Dependencies included (If you have concerns about file size)

  • androidx.annotation:annotation
  • dev.rikka.rikkax.lazy:lazy

Usage

This library contains only one class rikka.compatibility.DeviceCompatibility.

// Check if the device runs MIUI, other methods are as simple as this
boolean isMiui = DeviceCompatibility.isMiui();