Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 690 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 690 Bytes

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();