Utility package wrapped around android JetPack components
// Core Module
implementation 'com.theapache64.twinkill:core:latest.version'- Basic Initialization
Init TwinKill in your Application class
class App : Application() {
override fun onCreate() {
super.onCreate()
TwinKill.init(
TwinKill.builder()
.setDefaultFont(GoogleFonts.GoogleSansRegular)
.build()
)
}
}-
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
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
-
- coming soon