Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shub39
Copy link
Owner

@shub39 shub39 commented Jul 9, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a custom animated splash screen for Android with a new vector animation.
    • Updated splash screen themes to use the new animated drawable in both light and dark modes.
  • Improvements

    • Replaced custom image icons with FontAwesome vector icons in onboarding, lyrics, and saved pages for a more consistent look.
    • Updated placeholder artwork in previews to use a new image.
  • Bug Fixes

    • Adjusted icon sizes and descriptions for improved accessibility and appearance.
  • Chores

    • Refined dependency management for platform-specific database drivers.

@coderabbitai
Copy link

coderabbitai bot commented Jul 9, 2025

Walkthrough

The changes update dependency configurations and resource usage across platforms. The SQLite bundled library is now desktop-specific, and database initialization is refactored into platform-specific DI modules. Multiple UI icons are switched from raster images to FontAwesome vector icons. A new animated splash drawable is introduced and referenced in splash screen themes.

Changes

File(s) Change Summary
app/build.gradle.kts Moved libs.sqlite.bundled dependency from commonMain to desktopMain.
app/src/commonMain/kotlin/com/shub39/rush/di/RushModules.kt Removed database singleton creation and related imports from common DI module.
app/src/desktopMain/kotlin/com/shub39/rush/di/RushModules.desktop.kt Added singleton provider for database using BundledSQLiteDriver in desktop DI module.
app/src/androidMain/kotlin/com/shub39/rush/di/RushModules.android.kt Added singleton provider for database creation in Android DI module.
app/src/commonMain/kotlin/com/shub39/rush/core/presentation/ArtFromUrl.kt Changed preview placeholder from rush_transparent to genius drawable.
app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/lyrics/component/ActionsRow.kt Switched "Rush Mode" icon from drawable to FontAwesome Meteor icon; reduced icon size.
app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/saved/SavedPage.kt Changed FAB icon from drawable to FontAwesome Meteor icon; updated size and description.
app/src/androidMain/kotlin/com/shub39/rush/onboarding/OnBoardingDialog.kt Replaced onboarding icons with FontAwesome Meteor icon; removed large image icon; updated imports.
app/src/androidMain/res/drawable/rush_splash.xml Added new animated vector drawable for splash screen.
app/src/androidMain/res/values-night-v31/splash.xml
app/src/androidMain/res/values-night/splash.xml
app/src/androidMain/res/values-v31/splash.xml
app/src/androidMain/res/values/splash.xml
Changed splash screen animated icon from mipmap to new rush_splash drawable in all theme variants.

Sequence Diagram(s)

sequenceDiagram
    participant App
    participant DI_Module_Common
    participant DI_Module_Android
    participant DI_Module_Desktop
    participant DatabaseFactory
    participant BundledSQLiteDriver

    App->>DI_Module_Android: Initialize Koin (Android)
    DI_Module_Android->>DatabaseFactory: get()
    DatabaseFactory->>DatabaseFactory: create()
    DatabaseFactory->>DatabaseFactory: build()
    DI_Module_Android->>App: Provide database singleton

    App->>DI_Module_Desktop: Initialize Koin (Desktop)
    DI_Module_Desktop->>DatabaseFactory: get()
    DatabaseFactory->>DatabaseFactory: create()
    DI_Module_Desktop->>BundledSQLiteDriver: get()
    DatabaseFactory->>DatabaseFactory: setDriver(BundledSQLiteDriver)
    DatabaseFactory->>DatabaseFactory: build()
    DI_Module_Desktop->>App: Provide database singleton
Loading

Poem

A rabbit hopped through code today,
Swapping icons, clearing the way.
Splash screens shimmer, vectors gleam,
Databases split by platform scheme.
With FontAwesome stars that glow and twirl,
The app now shines for every world!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
app/src/androidMain/res/values-v31/splash.xml (1)

5-5: LGTM: Consistent splash screen resource change.

The change maintains consistency with other splash screen configurations by using the same @drawable/rush_splash reference. This ensures uniform behavior across different Android API levels.

🧹 Nitpick comments (3)
app/src/commonMain/kotlin/com/shub39/rush/core/presentation/ArtFromUrl.kt (1)

22-22: Remove unused import to avoid UNUSED_IMPORT warning

genius is referenced through Res.drawable.genius, so this explicit import is redundant.

- import rush.app.generated.resources.genius
app/src/androidMain/res/drawable/rush_splash.xml (2)

18-20: strokeWidth without strokeColor is ignored

A strokeWidth of 1 is declared but no strokeColor is provided. Android VectorDrawable silently drops the stroke if the colour is missing, which yields the same pixels as omitting strokeWidth altogether and may trigger lint warnings.

-                    android:strokeWidth="1"
+                    <!-- Either remove the width or specify a colour -->
+                    android:strokeWidth="1"
+                    android:strokeColor="#f2e2b1"

If a stroke is not required, simply delete the attribute.


27-42: Consider finishing the animation in view state to avoid splash flicker

The scale animation runs for 500 ms after a 200 ms delay, but there is no fillAfter="true"/android:fillEnabled="true" in this animated-vector. Without it, some OEM skins briefly snap the layer back to its pre-animated (scale 0) state when the animation ends, causing a visible flicker before the activity launches.

<set>
+    <!-- Persist end state -->
+    <objectAnimator
+        android:propertyName="scaleX"
+        android:fillAfter="true"
+        .../>

Apply to both animators or wrap them in a <set android:fillAfter="true"/>.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 56dbd66 and 8cecead.

⛔ Files ignored due to path filters (23)
  • app/src/androidMain/res/mipmap-hdpi/ic_launcher.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-hdpi/ic_launcher_background.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-hdpi/ic_launcher_monochrome.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-mdpi/ic_launcher.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-mdpi/ic_launcher_background.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-mdpi/ic_launcher_monochrome.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xhdpi/ic_launcher.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xhdpi/ic_launcher_background.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xhdpi/ic_launcher_monochrome.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxhdpi/ic_launcher.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxhdpi/ic_launcher_background.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxhdpi/ic_launcher_monochrome.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_background.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • app/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_monochrome.png is excluded by !**/*.png
  • app/src/commonMain/composeResources/drawable/rush_transparent.png is excluded by !**/*.png
  • fastlane/metadata/android/en-US/images/icon.png is excluded by !**/*.png
  • fastlane/metadata/android/en-US/images/icon200x200.png is excluded by !**/*.png
📒 Files selected for processing (13)
  • app/build.gradle.kts (1 hunks)
  • app/src/androidMain/kotlin/com/shub39/rush/di/RushModules.android.kt (1 hunks)
  • app/src/androidMain/kotlin/com/shub39/rush/onboarding/OnBoardingDialog.kt (2 hunks)
  • app/src/androidMain/res/drawable/rush_splash.xml (1 hunks)
  • app/src/androidMain/res/values-night-v31/splash.xml (1 hunks)
  • app/src/androidMain/res/values-night/splash.xml (1 hunks)
  • app/src/androidMain/res/values-v31/splash.xml (1 hunks)
  • app/src/androidMain/res/values/splash.xml (1 hunks)
  • app/src/commonMain/kotlin/com/shub39/rush/core/presentation/ArtFromUrl.kt (2 hunks)
  • app/src/commonMain/kotlin/com/shub39/rush/di/RushModules.kt (0 hunks)
  • app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/lyrics/component/ActionsRow.kt (2 hunks)
  • app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/saved/SavedPage.kt (2 hunks)
  • app/src/desktopMain/kotlin/com/shub39/rush/di/RushModules.desktop.kt (2 hunks)
💤 Files with no reviewable changes (1)
  • app/src/commonMain/kotlin/com/shub39/rush/di/RushModules.kt
🔇 Additional comments (15)
app/src/commonMain/kotlin/com/shub39/rush/core/presentation/ArtFromUrl.kt (1)

50-50: Ensure the genius drawable exists for every target

The placeholder swap looks fine; just double-check that genius is generated for all supported platforms (Android, iOS, desktop). A missing resource will break the build at link time.

app/build.gradle.kts (1)

177-177: LGTM: Proper platform-specific dependency management.

Moving the SQLite bundled dependency from commonMain to desktopMain correctly aligns with the platform-specific database driver usage in the DI modules.

app/src/desktopMain/kotlin/com/shub39/rush/di/RushModules.desktop.kt (2)

3-3: LGTM: Proper import addition.

The import for BundledSQLiteDriver is correctly added to support the desktop-specific database configuration.


24-28: LGTM: Correct database singleton implementation.

The database singleton is properly implemented using the builder pattern and correctly integrates with the existing DatabaseFactory singleton. The BundledSQLiteDriver is appropriately used for the desktop platform.

app/src/androidMain/kotlin/com/shub39/rush/di/RushModules.android.kt (1)

19-19: LGTM: Correct Android database singleton implementation.

The database singleton is properly implemented for Android, correctly using the platform's default SQLite driver by not specifying an explicit driver.

app/src/androidMain/res/values/splash.xml (1)

4-4: Splash drawable resource verified

The rush_splash.xml drawable was found at app/src/androidMain/res/drawable/rush_splash.xml. No missing resources—this change is safe to merge.

app/src/androidMain/res/values-night-v31/splash.xml (1)

5-5: Good improvement to animated splash screen.

The change from mipmap resource to drawable resource enables the use of animated vector drawables for the splash screen, which provides better scalability and animation capabilities.

app/src/androidMain/res/values-night/splash.xml (1)

4-4: Consistent splash screen update across theme variants.

The change maintains consistency with other splash theme files by using the same animated drawable resource across different Android theme variants.

app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/lyrics/component/ActionsRow.kt (2)

28-28: Good addition of FontAwesome vector icon.

Adding the FontAwesome Meteor icon import enables the use of scalable vector icons instead of raster images.


189-191: Excellent replacement of raster icon with vector icon.

The changes improve the codebase by:

  • Replacing raster image (rush_transparent) with scalable FontAwesome vector icon
  • Adjusting icon size to 20.dp for better visual consistency
  • Using semantically appropriate Meteor icon for "Rush Mode" functionality

Vector icons provide better scalability and consistent appearance across different screen densities.

app/src/commonMain/kotlin/com/shub39/rush/lyrics/presentation/saved/SavedPage.kt (2)

60-60: Good addition of FontAwesome vector icon import.

Adding the FontAwesome Meteor icon import supports the transition to scalable vector icons.


167-169: Excellent improvements to icon and accessibility.

The changes provide multiple improvements:

  • Replacing raster image with scalable FontAwesome vector icon
  • Improving content description from "App Icon" to "Rush Mode" for better accessibility
  • Adjusting icon size to 24.dp for visual consistency

The more descriptive content description is particularly valuable for users with accessibility needs.

app/src/androidMain/kotlin/com/shub39/rush/onboarding/OnBoardingDialog.kt (2)

45-45: Good addition of FontAwesome vector icon import.

Adding the FontAwesome Meteor icon import enables consistent iconography across the app.


165-166: Excellent icon replacement with improved accessibility.

The changes provide valuable improvements:

  • Replacing raster image with scalable FontAwesome vector icon
  • Adding descriptive content description "Rush Mode" for better accessibility
  • Maintaining appropriate icon size for the onboarding context

The addition of content description where there wasn't one before is particularly beneficial for users with accessibility needs.

app/src/androidMain/res/drawable/rush_splash.xml (1)

13-14: Unusual pivot outside the viewport – double-check the visual outcome

pivotX="288" and especially pivotY="-144" place the scaling origin on the right edge and 144 px above the top of the 288 × 288 viewport.
That is perfectly legal, but it makes the initial scale-from-zero animation look like a slide-in rather than a pure zoom. If the splash should expand symmetrically from its centre, set the pivot to half the viewport (144,144). Otherwise, keep as is but verify on devices with different DPIs that the graphic does not jump or clip.

@shub39 shub39 merged commit 2ed7da1 into master Jul 9, 2025
2 checks passed
@shub39 shub39 deleted the animated-app-icon branch July 10, 2025 07:49
@coderabbitai coderabbitai bot mentioned this pull request Jul 14, 2025
@coderabbitai coderabbitai bot mentioned this pull request Jul 23, 2025
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