Using a version before v1.1.0 of this dependency can be used and will suffice, as it will already contain Networking, Room and the EmptyStateRecyclerView.
implementation 'com.github.appwise-labs:AndroidCore:<Latest-Version>'
Since v1.1.0 the library has grown to use multiple modules for specific use-cases. The core module contains a lot of functionality that some of the other modules may use.
In the core module a lot of general extension functions can be found, as well as some BaseClasses regarding the ViewModels, Fragments, and Activities. Also a lot of dependencies are already added to core which are 'made public' so they can be used through Core.
The core can be added by using this dependency. It contains BaseClasses for ViewModel, Fragments, and Activities. Also a lot of extension functions can be found.
implementation 'com.github.appwise-labs.AndroidCore:core:<Latest-Version>'
Don't forget to also add the "navigation-safe-args" plugin to the project level build.gradle
dependencies {
...
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:<Latest-Navigation-Version>"
}
Networking Samples and Information
Using this module will enable you to use the BaseRestClient object with some default values regarding the RestClient and Interceptors, a lot of which is costumizable.
implementation 'com.github.appwise-labs.AndroidCore:networking:<Latest-Version>'
With this Room module you will have access to a BaseRoomDao in which a lot of queries are premade. The BaseRoomDao will expect a BaseEntity, so make sure that your Room Entity extends that.
implementation 'com.github.appwise-labs.AndroidCore:room:<Latest-Version>'
kapt 'androidx.room:room-compiler:<Latest-Room-Version>'
implementation 'com.github.appwise-labs.AndroidCore:realm:<Latest-Version>'
Paging Samples and Information
implementation 'com.github.appwise-labs.AndroidCore:paging:<Latest-Version>'
EmptyStateRecyclerView Samples and Information
This module contains a custom view extending from the RecyclerView which can handle different states like Loading, Normal, and Empty.
implementation 'com.github.appwise-labs.AndroidCore:emptyRecyclerView:<Latest-Version>'
All contributors are welcome. Take a look at CONTRIBUTING.md for more information.
See the CHANGELOG.md for more information regarding new updates and more.
See the LICENSE file for more info