CodeKit
Android library packed with utils and kotlin extensions
Install / Use
/learn @plsankar/CodeKitREADME
CodeKit
Adding to your project
- Add the JitPack repository to your build.gradle at the end of repositories:
repositories {
...
maven { url 'https://jitpack.io' }
}
- Add the dependency
implementation 'com.github.ctrlbytes:CodeKit:LATEST_VERSION_HERE'
Usage
ConnectivityUtils
ConnectivityUtils.isInternetOn(context);
ConnectivityUtils.isMobileDataOn(context);
ConnectivityUtils.isWiFiOn(context);
AppsInDevice
AppsInDevice.isInstalled(context, packageName)
Context KTX
launchActivity(activityClass) { intent ->
putExtra()
}
openUrl(urlString)
toast(stringRes|string)
toast(stringRes|string, LENGTH_SHORT)
openAppInPlayStore() // will open current app
openAppInPlayStore(appPackageName) // will open the specified package
Fragment KTX
toast(stringRes|string)
toast(stringRes|string, LENGTH_SHORT)
TextInputLayout KTX
getValue()
setValue(string)
clear()
View KTX
hide() // visibility gone by default
hide(VISIBLE|GONE) // or specify
show() // visibility visible
Date KTX
format("dd-MM-yyy")
format("dd-MM-yyy", locale)
format(simpleDateFormat)
Cursor KTX
val items = dbCursor.toList {
it.getString(0)
}
Utils KTX
runSafe {
// do things that may throw error and don't care about the error (error will be printed to the console)
}
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
