Skip to content

Releases: 98kmc/network-caller

v1.1.0

11 May 23:47
Compare
Choose a tag to compare

Description:

In this latest release of the Networking library, we've focused on eliminating legacy code and deprecated features, while also optimizing internal code for improved performance and abstraction. Additionally, significant changes have been made to the request building functions, such as 'withBody()' and 'withHeaders()', which now accept varargs Pair<K,V> instead of Map<K,V>. Moreover, when making requests to a URL different from the baseURL, you must now call the request or safeRequest functions with a url argument of type URL. These changes provide a more streamlined and efficient experience for users of the library.

Key Changes:

  • Removal of legacy code and deprecated features: We've eliminated all legacy code and deprecated functionalities from the library, ensuring a modern and efficient codebase.
  • Enhanced request building functions: The functions for constructing requests, such as 'withBody()' and 'withHeaders()', now accept varargs Pair<K,V> instead of Map<K,V>, offering improved flexibility and readability.
  • URL parameter for non-baseURL requests: When making requests to a URL different from the baseURL, users must now pass a URL argument to the request or safeRequest functions, ensuring proper URL handling.
  • Internal optimizations and abstractions: We've implemented numerous optimizations and abstractions internally, enhancing performance and maintainability of the codebase.

Upgrading from Previous Versions:

  • Ensure that all deprecated features and functions are replaced with their latest implementations as per the updated API.
  • Update request building code to use varargs Pair<K,V> instead of Map<K,V> for improved functionality.
  • When making requests to non-baseURL endpoints, pass a URL argument to the request or safeRequest functions.

We're excited about these changes and believe they will greatly enhance the usability and performance of the Networking library. As always, we welcome feedback and contributions from the community to further improve the library.

v1.0.1

01 May 05:52
Compare
Choose a tag to compare

Description:

Welcome to this update of the Networking library! In this release, we've focused on optimizing key aspects of the library to enhance performance and improve usability. Our goal is to provide developers with an even smoother experience when handling network requests in Android applications.

Key Features:

  • Optimized Networking Class: We've fine-tuned the core Networking class to boost efficiency and streamline network operations. This optimization ensures faster response times and improved resource utilization.

  • Enhanced Retrofit Instance Management: We've revamped the management of Retrofit instances within the library, leading to better resource utilization and more reliable networking performance.

  • Refined Request Building with Builder Pattern: We've introduced a more robust implementation of request building using the builder pattern. This enhancement offers developers greater flexibility and readability when constructing network requests, making the process more intuitive and straightforward.

  • Improved Module Structure: We've made significant improvements to the overall structure of the module, resulting in a cleaner and more organized codebase. These enhancements facilitate easier maintenance and scalability of the library.

  • Deprecation of NetworkService Interface: In this release, we've deprecated the NetworkService interface along with its request and safeRequest methods. While previously useful, we've found more efficient alternatives for integrating the library into your Android projects. We recommend migrating to the latest implementations for improved functionality and performance.

  • We're excited about these updates and believe they will greatly benefit developers using the Networking library. As always, we welcome your feedback and suggestions for future improvements. Happy coding!

v1.0.0

01 Mar 19:12
Compare
Choose a tag to compare

Release 1.0.0

Description:

Introducing the initial release of the Networking library, a versatile and concise tool for handling network requests in Android applications. This library leverages the power of Retrofit to provide a clean and efficient networking layer.

Key Features:

  • Networking Class: Centralizes network operations, supporting common HTTP methods such as GET, POST, PUT, PATCH, and DELETE.

  • DataTask Builder: Offers a fluent API for constructing network tasks with flexible options, including custom HTTP methods, request bodies, headers, and OkHttpClient customization.

  • NetworkCaller & NetworkService Interfaces: Abstractions to simplify the integration of the library into your Android project.

  • Request Functions: Convenient inline functions (request and safeRequest) for making network requests and handling responses with ease. Includes support for specifying HTTP methods, request bodies, headers, and custom OkHttpClient instances.

  • Error Handling: Comprehensive error handling for various scenarios, such as HTTP status code validation, null response bodies, and exceptions during network operations.