Giter VIP home page Giter VIP logo

vinchamp77 / demo_simplerestapi Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 3.0 1.17 MB

Simple REST API App Demo to show shows different HTTP client library implementations including memory and performance comparisons

Home Page: https://vtsen.hashnode.dev/simple-rest-api-android-app-in-kotlin-various-http-client-library-implementations

License: Apache License 2.0

Kotlin 100.00%
android gson gson-converter gson-library jetpack-compose kotlin-serialization ktor-client moshi moshi-adapter moshi-converter

demo_simplerestapi's Introduction

👋 Hello!

My name is Vincent. I'm a self-taught hobbyist Native Android Kotlin Developer and technical blogger. 🌱 I’m currently learning Android development and documenting all my learnings on my personal blog, Vincent Tsen - AndroidDev Blog.

📫 I'm also available at Twitter, Hashnode, Medium, and Dev.to. 💞️ Let's connect and be friends! We should all learn and grow together!


📱Published Apps

🔔Featured Repositories


📝 Latest Blog Posts

✨ Popular & Featured Articles


Vincent Tsen's github stats

demo_simplerestapi's People

Contributors

vinchamp77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

demo_simplerestapi's Issues

Crash: Ktor + Kotlin Serdes

2022-08-29 18:05:53.390 21233-21233/vtsen.hashnode.dev.simplerestapidemo E/AndroidRuntime: FATAL EXCEPTION: main
    Process: vtsen.hashnode.dev.simplerestapidemo, PID: 21233
    io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://www.themealdb.com/api/json/v1/1/categories.php, connect_timeout=unknown ms]
        at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException(HttpTimeout.kt:183)
        at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException$default(HttpTimeout.kt:180)
        at io.ktor.client.engine.cio.Endpoint.getTimeoutException(Endpoint.kt:235)
        at io.ktor.client.engine.cio.Endpoint.connect(Endpoint.kt:227)
        at io.ktor.client.engine.cio.Endpoint.access$connect(Endpoint.kt:21)
        at io.ktor.client.engine.cio.Endpoint$connect$1.invokeSuspend(Unknown Source:15)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
        at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Fix deprecated rememberImagePainter API

w: file:///C:/Work/AndroidStudy/Demo/SimpleRestAPI/app/src/main/java/vtsen/hashnode/dev/simplerestapidemo/ui/screens/MealCategoryItem.kt:36:23 'rememberImagePainter(Any?, ImageRequest.Builder.() -> Unit): AsyncImagePainter' is deprecated. ImagePainter has been renamed to AsyncImagePainter.

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.