Skip to content

A simple library, a collection of utlity classes wrapped around JetPack components

Notifications You must be signed in to change notification settings

theapache64/twinkill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 get Google-Sans with it's 3 variants, ie Regular, Medium and Bold. You can set the default font while initializing the TwinKill

       TwinKill.builder()
                .setDefaultFont(Font.GoogleSansRegular)
                .build() 
  • Encryption

    With TwinKill, encrypting and decrypting strings are made easy. Use the DarkKnight 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 a CurlInterceptor for OkHttp. By default, it's not attached. You can add the interceptor and many other using the TwinKill builder.

      TwinKill.builder()
              .addOkHttpInterceptor(CurlInterceptor())
              .build()
      
    • AuthorizationInterceptor

      • coming soon
  • Dagger Modules

    • BaseNetworkModule

      1. HttpLoggingInterceptor
      2. OkHttpClient
      3. Retrofit
      • more coming soon

Features

  • coming soon

About

A simple library, a collection of utlity classes wrapped around JetPack components

Resources

Stars

Watchers

Forks

Packages

No packages published