Skip to content

Cleanup Gradle dependencies and miscellaneous improvements #1856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SimonMarquis
Copy link
Contributor

  • Inline versions that were used only once, allowing us to use the compact form for libraries & plugins
  • Merge TOML declarations with group + name into the unique module component
  • Expose new BoMs to enforce versioning across packages (coil-kt-bom, kotlin-bom, kotlinx-coroutines-bom, kotlinx-serialization-bom, protobuf-bom, okhttp-bom, retrofit-bom)
  • Refactor jacoco version declaration into a proper dependency declaration to enable actual dependency tracking
  • Rename androidx.hilt.navigation.compose to hilt.ext.navigation.compose to match the already existing hiltExt group.
  • Replace duplicated *.gradlePlugin dependencies with converter that converts plugin alias to usable dependencies.
  • Sort dependencies
  • Remove unused kotlinx-coroutines-android dependency

- Inline versions that were used only once, allowing us to use the compact form for libraries & plugins
- Merge TOML declarations with `group` + `name` into the unique `module` component
- Expose new BoMs to enforce versioning across packages (`coil-kt-bom`, `kotlin-bom`, `kotlinx-coroutines-bom`, `kotlinx-serialization-bom`, `protobuf-bom`, `okhttp-bom`, `retrofit-bom`)
- Refactor `jacoco` version declaration into a proper dependency declaration to enable actual dependency tracking
- Rename `androidx.hilt.navigation.compose` to `hilt.ext.navigation.compose` to match the already existing `hiltExt` group.
- Replace duplicated `*.gradlePlugin` dependencies with converter that converts plugin alias to usable dependencies.
- Sort dependencies
- Remove unused `kotlinx-coroutines-android` dependency
@SimonMarquis SimonMarquis marked this pull request as ready for review March 30, 2025 19:48
SimonMarquis added a commit to SimonMarquis/nowinandroid that referenced this pull request Apr 5, 2025
- Use BOM platform dependency.
- Remove -kt suffix from dependency name has they serve no real purpose.
- Add `coil-network` artifact to configure `CallFactory`.
- Although "First party Decoder" `SvgDecoder` is now automatically added to each new ImageLoader through a service loader, keeping it in code prevents us from removing the dependency that would appear unused otherwise.
- Replace explicit `respectCacheHeaders(false)` with `CacheStrategy::DEFAULT` which does not respect cache-control headers.
- Migrate `ImageLoaderFactory` to `SingletonImageLoader.Factory`
- Inline TOML dependencies (see android#1856)

docs: https://coil-kt.github.io/coil/upgrading_to_coil3/
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.

1 participant