Skip to content

This project demonstrates how to use the WinInet API in your Kotlin MPP app for simple HTTP communication.

Notifications You must be signed in to change notification settings

localazy/kotlin-mpp-wininet

Repository files navigation

Kotlin MPP + WinInet

When building a multiplatform app, a recommended library for HTTP communication would be the ktor clients. However, as it uses libcurl for desktop implementation, it introduces dependencies. On Linux or macOS, libcurl can be easily installed from repositories or through brew. For Windows, however, DLL libraries must be provided.

The option would be to link libcurl statically. It's, however, a bit tricky and it leads to increased size of the resulting binary.

If you only need a few simple HTTP calls, it may be much better to go with WinInet API that is included in Windows by default.

This project demonstrates how to use the WinInet API in your Kotlin MPP app for simple HTTP communication.


This code is based on what we have developed for Localazy CLI. Read the original article about how we built our Localazy CLI with Kotlin MPP and Github Actions.

About

This project demonstrates how to use the WinInet API in your Kotlin MPP app for simple HTTP communication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages