项目作者: hspbc666
项目描述 :
Frequently used utils in kotlin such as toast, encryption.
高级语言: Kotlin
项目地址: git://github.com/hspbc666/kotlinUtils.git
kotlinUtils
Frequently used utils in kotlin.
Import library
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
implementation 'com.github.cxyzy1
1.0.10'
Feature list and detailed usage
- ToastExt
Toast utils to simplify showing toast.
eg.toast("hello")
- IntentExt
Intent utils, simplify activity transitions.
eg.startActivity<TestActivity>()
- LogUtils
Utils to simplify android log.
eg.verbose("test")
debug("test")
info("test")
warn("test")
try {
throw Exception("test")
} catch (e: Exception) {
error(e)
}
- EncryptUtils
support encryption and decryption by aes and so on. - SizeUtils
Size convert utils such as px and dp. - PathUtils
Path related utils such as get external sd card path. - DeviceUtils
Utils to get information about device manufacturer and so on. - LocationUtils
Get location by gps(beidou) or network.