Commit 6f0f128
fix(deps): update retrofit monorepo to v3 (major) (#273)
* fix(deps): update retrofit monorepo to v3
* refactor: use `toRequestBody` & `toMediaTypeOrNull` extension functions
This commit updates the `GraphRequestConverter.kt` file to utilize the Kotlin extension functions `toRequestBody` and `toMediaTypeOrNull` for creating OkHttp `RequestBody` and `MediaType` objects respectively. This change simplifies the code and aligns with modern Kotlin practices.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maxwell <mxt.developer@gmail.com>1 parent b464c84 commit 6f0f128
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- gradle
- library/src/main/kotlin/io/github/wax911/library/converter/request
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
0 commit comments