Skip to content

Migrate to ktor - #30

Merged
Syntey merged 4 commits into
mainfrom
feature/ktor
Jun 15, 2026
Merged

Syntey merged 4 commits into
mainfrom
feature/ktor

Conversation

@Syntey

@Syntey Syntey commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you also consider using kotlin.Result from stdlib?

httpTimeoutPlugin: HttpTimeoutPlugin,
loggingPlugin: LoggingPlugin,
userAgentPlugin: UserAgentPlugin,
): HttpClient = HttpClient(CIO) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think on Android the OkHttp client would still be preferred instead of CIO, mainly because of ecosystem tooling (Chucker is one example), dev familiarity and battle tested-ness. Also certificate pinning is very easy to implement using native OkHttp client.

https://ktor.io/docs/client-engines.html#okhttp

@Syntey
Syntey requested a review from matejsemancik June 15, 2026 09:17
@Syntey
Syntey merged commit eae5e85 into main Jun 15, 2026
1 check passed
@Syntey
Syntey deleted the feature/ktor branch June 15, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants