- 🛠 Small bug fixes
- 🔀 Sync request fix
- 🚚 Unnecessary type conversions are removed
- 👍 RxJava support
- 🔀 Sync request support
- min sdk is 8 now
- FormUrlEncoded mime type added
- Field and FieldMap parameter annotations added
- 🤡 Mocks are delayed by 1 second as default
Request cancel option added
WaspRequest request = service.getFoo(); request.cancel();
RequestManager added in order to cancel all requests at once.
Path values are encoded automatically
🏗 Wasp.Image now uses the same httpstack as network, thus you can take advantage of everything you set with the builder.
Callback is changed, now it contains Response parameter
- 🤡 Mock create bug fix
- Network stack bug fix
- 👍 OkHttp's Interceptor support added
- ➕ Adds OkHttpLogInterceptor: An implementation of OkHttp's Interceptor for logging which can be used as an alternative for Wasp's default logging
- 🤡 Parser will throw RunTimeException in MOCK network mode and will call onError method of CallBack in LIVE network mode instead of silently logging error.
- 🛠 Fixes issues: 58, 68
- 🚚 ImageHandler is introduced, volley image loader is removed.
- Flicker issue for the recycled views is issued.
- 📜 Parser is reachable from Wasp.getParser() now.
- ♻️ Major refactoring for parser.
- 🚚 Parsing operation is moved to network stack from network handler. This will allow to make the parsing in the worker thread.
- WaspResponse is public, it will be reachable when there is a need.
🏗 NetworkMode added in order to avoid clearing mock annotations for real server, it can be set via setNetworkMode method of Wasp.Builder
NetworkMode.MOCK //Mocks response if mock annotation is present for request NetworkMode.LIVE //Retrieves response from server regardless of mock annotation
📜 Parse errors will no longer cause crashes but will give error for request
📜 WaspError improved, it provides methods for getting parsed object by providing a type and getting raw body
🌲 Logger will chunk messages that are longer than 4000 characters (i.e response bodies) since Android Log allow at most ~4076 bytes
🤡 MockFactory improved, it will return response body in case of http status code other than 2xx
RequestQueue is no longer static.
ApplicationContext is used as context even if the activity context is passed. This will decouple the wasp with the activities.
- 🌲 Rest API log output is improved
- 🌲 Wasp.Image log output is improved
LogLevel has more options now.
LogLevel.NONE // No logs are printed. This is default LogLevel.FULL // Print logs both for REST and Images request LogLevel.FULL_REST_ONLY // Print logs for REST LogLevel.FULL_IMAGE_ONLY // Print logs for Images
QueryMap annotation added. You can use this annotation to add multiple query parameters.
🛠 Query encode issue is fixed