line / line/line-bot-sdk-java

Proposal: Switch from Retrofit2 to OkHttp3

Open
#1,161 1 comment 0 reactions 0 assignees View on GitHub
enhancement feature request
Dominant language
Java
Stars
646
Forks
929
Avg merge
3h 32m
Merged PRs (30d)
19

Description

When the SDK was first developed, we utilized Retrofit2 to improve implementation efficiency. However, nowadays, our API definitions are automatically generated from openapi YAML files, and the use of Retrofit2 has become less relevant.

Furthermore, with the lack of new versions of Retrofit2 since 2020, it might be a good time for us to consider alternatives. In my opinion, switching to OkHttp3 could bring about improvements in both code readability and maintainability.

I propose that we migrate from Retrofit2 to OkHttp3 for our HTTP client. I look forward to hearing the thoughts of others on this proposal. Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reading the OpenAPI YAML definitions and the SDK's current Retrofit2 integration, then identify the generated API entry points and HTTP client usage. The proposal's intended outcome is to replace Retrofit2 with OkHttp3 while preserving the SDK's generated API behavior, but it does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.