Wolmo Networking v2.0.0 Release Candidate 1
Pre-releaseSummary
Update wolmo-networking
to make it compatible with dagger and wolmo v2.0.0
.
- Add dagger dependencies as provided.
- Create new
NetworkComponent
to build and configureRetrofitServices
and other dependencies. - Add
GsonModule
to provide aGson
instance and dependencies to build it. - Add
NetworkingModule
to provide aRetrofit
instance. - Add
OkHttpClientModule
to provideOkHttpClient
, and add interceptors to it. - Remove
NetworkingApplication
that's not needed anymore. - Update
RetrofitServices
to move all the creation and configuration to the specific modules.
Description
Applications that need to use wolmo-network
doesn't need anymore to extend NetworkingApplication
.
This version provides the modules to build and configure the dependencies of Retrofit
, Gson
and OkHttp
, it also provides a default NetworkingComponent
to simplify the creation and reduce configuration on common scenarios. For it to work you only need to provide it the baseUrl
, an optional list of interceptors to add to okHttp
and an optional list of gson
type adapters.
We can find the following modules:
- GsonModule:
- OkHttpClientModule
- NetworkingModule
NetworkingComponent
is a template component for simple uses, if the clients want to further customize it they can make a new Component
and include the modules provided with this library or make their own.
Changelog
- Removed networking application
- Refactor RetrofitServices to extract dependencies to dagger modules
- Add GsonTypeAdapter to configure Gson and missing License
- Move LoggingInterceptors to util class
- Update build.gradle config
- Remove joda-time proguard options
- Update proguard rules and remove unused properties
- Remove LoggingUtils and dependencies
- Update dagger version
- Add testing libraries and jacoco plugin
- Fix bugs in modules and make methods static
- Fix some issues and documentation in serializers and interceptors
- Add unit tests and javadocs for missing classes
- Add coverage badge
- Add new tests to default modules
TODO
Before officially releasing v2.0.0 we need to tackle this list of TODOs:
- Update
Readme.md
and add more tutorials in how to use this library. - Wait for
wolmo-core-android
to be stable.