Skip to content

pokk/KotlinKnifer

Repository files navigation

KotlinKnifer

license

KotlinKnifer Maven Central
KotlinShaver Maven Central

The library has util tools as below:

KotlinKnifer

  1. Bitmap

  2. Collection

  3. Color

  4. Delegate

  5. Display

  6. Drawable

  7. Fragment

  8. Glide

  9. Keyboard

  10. Listener

  11. Logs

  12. Resolution

  13. Screen

  14. Uri

  15. View

  16. ArrayList

  17. Bitmap

  18. Color

  19. Delegate

  20. Drawable

  21. Fragment

  22. Glide

  23. Keyboard

  24. Listener

  25. Log

  26. Observable of RxJava

  27. Observer of RxJava

  28. RecyclerView.ItemDecorator

  29. RxMvvm

  30. String

  31. Thread

  32. Time

  33. View

KotlinShaver

  1. ArrayList
  2. Instance
  3. Kits
  4. Observable
  5. Observer
  6. String
  7. Thread
  8. Time
  9. Casting

NOTE

THE NEW VERSION.

I've separated a library to two difference libraries. One is the same kotlinkinfer, another is kotlinshaver. the reason is when you have a pure kotlin/java module, this library couldn't be imported into. That's why I should split this into two.

  • kotlinknifer is for android library.
  • kotlinshaver is for pure kotlin/java library.

After kotlinknifer v1.5.0 won't include the pure kotlin/java library. If you'd like to use both, please import kotlinshaver together.

Import To Your Project

Gradle

First you have to make sure your project bundle.gradle as below:

allprojects {
    repositories {
        mavenCentral()
    }
}

And add our dependency to your app bundle.gradle.

implementation 'studio.pokkbaby:kotlinknifer:[last_version]'
implementation 'studio.pokkbaby:kotlinshaver:[last_version]'

Then you can use it!!!

Also Included Library

kotlinknifer

  1. Gson 2.8.5
  2. Glide 4.8.0

kotlinshaver

For Androidx

  1. RxJava 2.2.3
  2. RxKotlin 2.3.0

If you'd not like to use them to your project, you can add the exclude as like below

implementation('studio.pokkbaby:kotlinknifer:[last_version]', {
  exclude group: 'com.google.code.gson', module: 'gson'
  exclude group: 'com.github.bumptech.glide', module: 'glide'
})
implementation('studio.pokkbaby:kotlinshaverr:[last_version]', {
  exclude group: 'io.reactivex.rxjava2', module: 'rxjava'
  exclude group: 'io.reactivex.rxjava2', module: 'rxkotlin'
})

Then you're able to add the version of a library what you need.

Feature

I will add some useful tool modules for everyone and myself. If you have any ideas or problems. Please let me know, thank you!

License

Copyright (C) 2021 Jieyi Wu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.