Awesome
TwinKill
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-Sans
with it's 3 variants, ie Regular, Medium and Bold. You can set the default font while initializing theTwinKill
TwinKill.builder() .setDefaultFont(Font.GoogleSansRegular) .build()
-
Encryption
With
TwinKill
, encrypting and decrypting strings are made easy. Use theDarkKnight
class 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
TwinKill
comes with aCurlInterceptor
forOkHttp
. By default, it's not attached. You can add the interceptor and many other using theTwinKill
builder.TwinKill.builder() .addOkHttpInterceptor(CurlInterceptor()) .build()
-
AuthorizationInterceptor
-
coming soon
-
-
-
Dagger Modules
-
BaseNetworkModule
-
HttpLoggingInterceptor
-
OkHttpClient
-
Retrofit
-
more coming soon
-
-
Features
- coming soon