8000 GitHub - AllanWang/KAU at 3.3.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AllanWang/KAU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KAU

An extensive collection of Kotlin Android Utils

This library contains small helper functions used throughout almost all of my other projects. The goal is to make common interactions executable in a single line.

Get it on Google Play

Changelog


KAU is available on JitPack

Build Status Awesome Kotlin Badge Stories in Ready GitHub license

To apply, add the following to your root build.gradle:

allprojects {
    repositories {
        ...
        jcenter()
        maven { url "https://jitpack.io" }
        maven { url "https://maven.google.com" }  //for gradle < 4.0
        google()                                  //for gradle >= 4.0
    }
}

And add the following dependencies (You can use a specific version, commit, or -SNAPSHOT):

Note that only core is required if you want the basic features. Note that if you use any particular su 8000 bmodule, it will automatically include all of its necessary dependencies.

dependencies {
    //All submodules extend this
    compile "ca.allanwang.kau:core:$KAU"
    //All submodules with extensive ui extend this
    compile "ca.allanwang.kau:core-ui:$KAU"
    
    compile "ca.allanwang.kau:about:$KAU"
    compile "ca.allanwang.kau:colorpicker:$KAU"
    compile "ca.allanwang.kau:kpref-activity:$KAU"
    compile "ca.allanwang.kau:mediapicker:$KAU"
    compile "ca.allanwang.kau:searchview:$KAU"
}

Submodules

Linked to their respective docs.
Included dependencies are only those with exposed APs; see new dependency configurations.
Implemented dependencies are wrapped in parentheses.

  • Collection of complex views and widgets
  • Includes :core, :adapter
  • Modularized overlaying about section. Comes with a main panel, automatic lib detection, and a FAQ parser; also includes the lib strings for KAU.
  • Includes :core-ui, :adapter, About Libraries
  • Kotlin bindings for the fast adapter, as well as modularized RecyclerView animations
  • Includes :core, Fast Adapter
  • Implementation of a color picker dialog with subtle transitions and a decoupled callback
  • Includes :core, (Material Dialogs (commons))
  • Fully programmatic implementation of a Preference Activity, backed by a RecyclerView
  • Includes :core, :adapter, :colorpicker
  • Fully functional image and video pickers, both as an overlay and as a requested activity.
  • Includes :core-ui, Glide, (Blurry)
  • Material searchview with kotlin bindings
  • Includes :core-ui, :adapter

Showcase

About Activity Gif Ink Indicator Gif Color Picker Gif Color Picker Custom Gif KPref Items Gif SearchView Gif Swipe Gif

Proguard/MultiDex

Given that the core module contains a lot of extension functions, you may run into a dex error (over 64k methods)

To resolve that, add multiDexEnabled true under your app.gradle > android > defaultConfig

Likewise, it is highly recommended to use proguard to clean up your project upon release. All KAU components support proguard out of the box. Some may have extra requirements for certain features, which will be detailed in their respective README.

0