Skip to content

chore: update Hilt ViewModel imports and optimize build configuration#2020

Merged
theovilardo merged 1 commit into
theovilardo:masterfrom
Veridian-Zenith:master
May 16, 2026
Merged

chore: update Hilt ViewModel imports and optimize build configuration#2020
theovilardo merged 1 commit into
theovilardo:masterfrom
Veridian-Zenith:master

Conversation

@daedaevibin
Copy link
Copy Markdown
Contributor

Refactors Hilt ViewModel usage across the app and optimizes the build system for better performance and alignment with modern Jetpack Compose patterns. This includes updating deprecated API usage in lyrics rendering and navigation.

  • Hilt & Navigation: Updated hiltViewModel() imports from androidx.hilt.navigation.compose to androidx.hilt.lifecycle.viewmodel.compose across all presentation screens.
  • Compose UI:
    • Replaced deprecated ClickableText with Text using the modern LinkAnnotation and withLink APIs for lyrics providers.
    • Updated PlaylistBottomSheet to use BottomSheetDefaults.modalWindowInsets.
    • Switched PlaylistAdd icons to AutoMirrored variants for better RTL support.
  • Build & Performance:
    • Upgraded JVM target to JVM 21.
    • Increased Gradle heap size (-Xmx) to 4GB to prevent memory exhaustion during builds.
    • Removed redundant StrongSkipping Compose compiler flag as it is now enabled by default.
    • Added -Xannotation-default-target=param-property to Kotlin compiler arguments.
  • Data & Networking:
    • Improved null safety when accessing OkHttp response bodies.
    • Suppressed deprecation warnings in legacy media services and repository implementations.
    • Refactored SongMetadataEditor for better temp file management and container detection.
  • Resources:
    • Added comprehensive localized changelog entries for versions 0.2.0 through 0.6.0.
    • Added instructions for beta issue reporting in strings_presentation_batch_g.xml.

This PR makes a lot of changes to update deprecated APIs and cleanup warnings during build time for both Debug and Release builds. I apologize for the amount, I did not expect there to be so much either.

Refactors Hilt ViewModel usage across the app and optimizes the build system for better performance and alignment with modern Jetpack Compose patterns. This includes updating deprecated API usage in lyrics rendering and navigation.

- **Hilt & Navigation:** Updated `hiltViewModel()` imports from `androidx.hilt.navigation.compose` to `androidx.hilt.lifecycle.viewmodel.compose` across all presentation screens.
- **Compose UI:**
    - Replaced deprecated `ClickableText` with `Text` using the modern `LinkAnnotation` and `withLink` APIs for lyrics providers.
    - Updated `PlaylistBottomSheet` to use `BottomSheetDefaults.modalWindowInsets`.
    - Switched `PlaylistAdd` icons to `AutoMirrored` variants for better RTL support.
- **Build & Performance:**
    - Upgraded JVM target to JVM 21.
    - Increased Gradle heap size (`-Xmx`) to 4GB to prevent memory exhaustion during builds.
    - Removed redundant `StrongSkipping` Compose compiler flag as it is now enabled by default.
    - Added `-Xannotation-default-target=param-property` to Kotlin compiler arguments.
- **Data & Networking:**
    - Improved null safety when accessing `OkHttp` response bodies.
    - Suppressed deprecation warnings in legacy media services and repository implementations.
    - Refactored `SongMetadataEditor` for better temp file management and container detection.
- **Resources:**
    - Added comprehensive localized changelog entries for versions 0.2.0 through 0.6.0.
    - Added instructions for beta issue reporting in `strings_presentation_batch_g.xml`.
@theovilardo theovilardo merged commit 83f8efe into theovilardo:master May 16, 2026
5 checks passed
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