mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-25 12:11:04 +00:00
19 lines
349 B
Kotlin
19 lines
349 B
Kotlin
package app.revanced.library
|
|
|
|
/**
|
|
* Utils for the library.
|
|
*/
|
|
@Suppress("unused")
|
|
object Utils {
|
|
/**
|
|
* True if the environment is Android.
|
|
*/
|
|
val isAndroidEnvironment =
|
|
try {
|
|
Class.forName("android.app.Application")
|
|
true
|
|
} catch (e: ClassNotFoundException) {
|
|
false
|
|
}
|
|
}
|