The library has util tools as below:
-
Bitmap
-
Collection
-
Color
-
Delegate
-
Display
-
Drawable
-
Fragment
-
Glide
-
Keyboard
-
Listener
-
Logs
-
Resolution
-
Screen
-
Uri
-
View
- ArrayList
- Instance
- Kits
- Observable
- Observer
- String
- Thread
- Time
- Casting
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.
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!!!
- Gson 2.8.5
- Glide 4.8.0
- RxJava 2.2.3
- 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.
I will add some useful tool modules for everyone and myself. If you have any ideas or problems. Please let me know, thank you!
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.