Skip to content

Commit

Permalink
🔨 Fixed DI && update README
Browse files Browse the repository at this point in the history
  • Loading branch information
shub39 committed Sep 16, 2024
1 parent 40d45da commit 2c45928
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# 🌠 Rush 🌠

### Search, save and share lyrics like Spotify! 💫
### 💫 Search, save and share lyrics like Spotify! 💫

![](https://img.shields.io/github/last-commit/shub39/Rush?&style=for-the-badge&color=FFB1C8&logoColor=D9E0EE&labelColor=292324)
![](https://img.shields.io/github/stars/shub39/Rush?style=for-the-badge&logo=andela&color=FFB686&logoColor=D9E0EE&labelColor=292324)
Expand All @@ -22,15 +22,15 @@

</div>

## Screenshots 🌟
## 🌟 Screenshots 🌟

| ![1](fastlane/metadata/android/en-US/images/phoneScreenshots/1.png) | ![2](fastlane/metadata/android/en-US/images/phoneScreenshots/2.png) |
|:-------------------------------------------------------------------:|:-------------------------------------------------------------------:|
| ![3](fastlane/metadata/android/en-US/images/phoneScreenshots/3.png) | ![7](fastlane/metadata/android/en-US/images/phoneScreenshots/7.png) |
| ![4](fastlane/metadata/android/en-US/images/phoneScreenshots/4.png) | ![5](fastlane/metadata/android/en-US/images/phoneScreenshots/5.png) |
| ![6](fastlane/metadata/android/en-US/images/phoneScreenshots/6.png) | ![8](fastlane/metadata/android/en-US/images/phoneScreenshots/8.png) |

## Features 🌠
## 🌠 Features 🌠
- [x] Search Lyrics
- [x] Download Lyrics
- [x] Share Lyrics
Expand All @@ -41,12 +41,12 @@
## Why ❔
Spotify removed its feature to see and share lyrics from its free tier just to bring it back again. So, I made this app to get and store lyrics for my favorite songs from Genius and share them like Spotify, all in Material 3 look.

## Test and Discuss 💭
## 💭 Test and Discuss 💭

[![](https://dcbadge.limes.pink/api/server/https://discord.gg/nxA2hgtEKf)](https://discord.gg/https://discord.gg/nxA2hgtEKf)


## References and Inspiration 💡
## 💡 References and Inspiration 💡

- [Fastlyrics](https://github.com/TecCheck/FastLyrics)

Expand All @@ -56,7 +56,7 @@ Spotify removed its feature to see and share lyrics from its free tier just to b

- Spotify Lyrics UI

## Tech Stack ⚒️
## ⚒️ Tech Stack ⚒️

- [Retrofit](https://square.github.io/retrofit/) and [OkHttp](https://square.github.io/okhttp/) for api calls

Expand All @@ -70,6 +70,8 @@ Spotify removed its feature to see and share lyrics from its free tier just to b

- [Coil](https://github.com/coil-kt/coil) for Images

- [Colorpicker-compose](https://github.com/skydoves/colorpicker-compose) for the colors!!

## Support 💕
If you love this app, consider supporting. I'm a undergrad trying to get some pocket money 🥹

Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
Binary file modified app/release/baselineProfiles/0/app-release.dm
Binary file not shown.
Binary file modified app/release/baselineProfiles/1/app-release.dm
Binary file not shown.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 16,
"versionName": "2.1.0",
"versionCode": 17,
"versionName": "2.2.0",
"outputFile": "app-release.apk"
}
],
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/shub39/rush/page/RushApp.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.shub39.rush.page

import android.util.Log
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
Expand Down Expand Up @@ -205,6 +206,7 @@ fun RushApp(
coroutineScope.launch {
pagerState.animateScrollToPage(0)
rushViewModel.changeCurrentSong(it.id)
Log.d("RushApp", "changed song?")
}
} else {
coroutineScope.launch {
Expand Down Expand Up @@ -262,6 +264,7 @@ fun RushApp(
lazyListState.scrollToItem(0)
}
},
rushViewModel = rushViewModel
)
}

Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/shub39/rush/page/RushPager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.runtime.Composable
import com.shub39.rush.viewmodel.RushViewModel

@Composable
fun RushPager(
Expand All @@ -12,6 +13,7 @@ fun RushPager(
bottomSheet: () -> Unit = {},
onPageChange: (Int) -> Unit,
lazyListRefresh: () -> Unit,
rushViewModel: RushViewModel
) {
HorizontalPager(
state = pagerState,
Expand All @@ -20,14 +22,16 @@ fun RushPager(
0 -> LyricsPage(
lazyListState = lazyListState,
bottomSheet = bottomSheet,
rushViewModel = rushViewModel
)

1 -> SavedPage(
bottomSheet = bottomSheet,
onClick = {
onPageChange(0)
lazyListRefresh()
}
},
rushViewModel = rushViewModel
)
}
}
Expand Down

0 comments on commit 2c45928

Please sign in to comment.