Skip to content

Maintanence update#45

Merged
AjeshRPai merged 7 commits into
endfrom
maintanence-update
Jun 11, 2025
Merged

Maintanence update#45
AjeshRPai merged 7 commits into
endfrom
maintanence-update

Conversation

@AjeshRPai

Copy link
Copy Markdown
Contributor

This pull request introduces multiple changes across the codebase, focusing on replacing URL-based image loading with drawable resources, updating dependencies and configurations, and improving UI behaviors. The most significant updates include transitioning from imageUrl to imageRes for image handling, modifying Gradle configuration for compatibility, and enhancing UI components for better system integration.

Image Handling Updates:

  • Replaced imageUrl with imageRes in the SearchCategory and Snack models to use drawable resources instead of remote URLs. Updated all corresponding usages in Search.kt, Snack.kt, and various UI components (Snacks.kt, Categories.kt, Cart.kt). [1] [2] [3] [4] [5]

Gradle Configuration Changes:

  • Updated the baseline-profiles/app/build.gradle.kts file to change the plugin alias for baselineprofile and set Java compatibility to version 11 instead of 17. [1] [2] [3]

UI Enhancements:

  • Introduced consumeWindowInsets and safeDrawingPadding for better handling of system window insets in JetsnackMain.kt. [1] [2] [3]
  • Replaced manual mirroring logic with Icons.AutoMirrored.Outlined for RTL support in Snacks.kt. [1] [2]

System Integration Improvements:

  • Replaced WindowCompat.setDecorFitsSystemWindows with enableEdgeToEdge in MainActivity.kt for edge-to-edge UI handling.

Minor Adjustments:

  • Removed unused imports and adjusted dependencies in build.gradle.kts and other files. [1] [2] Fcd9ab79L42R42)

Replaces: unsplash image urls with static images
Updates: composable to respect edge to edge displays
(cherry picked from commit 04557fb)
(cherry picked from commit 1ee15c2)
Key changes include:
- Replacing `imageUrl` with `@DrawableRes imageRes` for local image loading, removing the dependency on network calls for images.
- Updating `MainActivity` to use `enableEdgeToEdge()` for drawing behind system bars.
- Replacing `WindowCompat.setDecorFitsSystemWindows(window, false)` with `enableEdgeToEdge()`.
- Updating `JetsnackMain` to use `safeDrawingPadding()` and `consumeWindowInsets()` for proper handling of system insets.
- Replacing deprecated Material 2 icons with Material 3 equivalents, including `Icons.AutoMirrored.Outlined.ArrowBack`.
- Adding new drawable resources for local image loading.

(cherry picked from commit 0251b98)
Updates: Java versions to 11 to be compatible with java version generated by baseline profile and benchmark module
(cherry picked from commit bf44d74)
@AjeshRPai AjeshRPai requested a review from mlykotom June 11, 2025 09:43
@AjeshRPai AjeshRPai marked this pull request as ready for review June 11, 2025 09:43
@AjeshRPai AjeshRPai requested a review from a team as a code owner June 11, 2025 09:43
@AjeshRPai AjeshRPai merged commit bd1be16 into end Jun 11, 2025
3 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