TwinKill
August 10, 2019 ยท View on GitHub
Utility package wrapped around android JetPack components
Installation
// Core Module
implementation 'com.theapache64.twinkill:core:latest.version'
Usage
- Basic Initialization
Init TwinKill in your Application class
class App : Application() {
override fun onCreate() {
super.onCreate()
TwinKill.init(
TwinKill.builder()
.setDefaultFont(GoogleFonts.GoogleSansRegular)
.build()
)
}
}
Components
-
Fonts
With
TwinKill, you'll getGoogle-Sanswith it's 3 variants, ie Regular, Medium and Bold. You can set the default font while initializing theTwinKillTwinKill.builder() .setDefaultFont(Font.GoogleSansRegular) .build() -
Encryption
With
TwinKill, encrypting and decrypting strings are made easy. Use theDarkKnightclass to do the same.val encString = DarkKnight.getEncrypted("Hello TwinKill") val decString = DarkKnight.getDecrypted(encString) println(decString) // Hello TwinKill
Sub-Components
Components that are dependant on another components
-
OkHttpInterceptors
-
CurlInterceptor
TwinKillcomes with aCurlInterceptorforOkHttp. By default, it's not attached. You can add the interceptor and many other using theTwinKillbuilder.TwinKill.builder() .addOkHttpInterceptor(CurlInterceptor()) .build() -
AuthorizationInterceptor
- coming soon
-
-
Dagger Modules
-
BaseNetworkModule
- HttpLoggingInterceptor
- OkHttpClient
- Retrofit
- more coming soon
-
Features
- coming soon