Giter Site home page Giter Site logo

panktisp13 / webservicewithretrofit Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 220 KB

Retrofit API calls for network calls in Kotlin, utilising Kotlin Flow, MVVM architecture with Hilt DI, and LiveData to create an Android app.

License: MIT License

Kotlin 100.00%
android android-tutorial api-call kotlin network-calls retrofit retrofit2-kotlin retrofit-api-calls api-calls kotlin-flow

webservicewithretrofit's Introduction

Retrofit Webservice with Kotlin Flow, MVVM, Hilt, and LiveData

This project demonstrates the implementation of making API calls using Retrofit in Kotlin. It showcases the utilization of Kotlin Flow, MVVM architecture pattern with Hilt dependency injection, and LiveData to create a responsive and efficient Android app. Additionally, the project encompasses multiple types of API requests, providing a comprehensive example of handling various network scenarios.

Features

  • API calls using Retrofit for efficient network operations.
  • Utilization of Kotlin Flow for asynchronous and reactive programming.
  • MVVM architecture for clear separation of concerns.
  • Dependency injection using Hilt for improved code maintainability.
  • LiveData for observing and reacting to data changes.
  • Multiple request types showcasing versatile API call scenarios.

Getting Started

  1. Clone the repository to your local machine using:

    git clone https://github.com/PanktiSP13/WebServiceWithRetrofit.git
  2. Open the project in Android Studio.

  3. Build and run the app on an emulator or a physical device.

Usage

The project demonstrates a sample app that utilizes Retrofit, Kotlin Flow, MVVM architecture, and Hilt. You can explore the various API calls, response handling, and observe how data flows through the app's components.

Feel free to modify and extend the project according to your needs. You can integrate additional features, add more API endpoints, or experiment with different UI components.

Screenshot

Contributions

Contributions are welcome! If you find any issues or want to enhance the project, feel free to submit a pull request. Make sure to follow best coding practices and maintain a clean commit history.


webservicewithretrofit's People

Contributors

panktisp13 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.