v1.5
- 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.