Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
- Fixed notification listener and updated metadata
  • Loading branch information
shub39 committed Jul 20, 2024
1 parent 2f479e1 commit 67717a5
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- [x] Share Lyrics
- [x] Customisations
- [x] Auto-fill current playing song in search
- [ ] Synced Lyrics

## Why ❔
Spotify removed its feature to see and share lyrics from its free tier. 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.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.shub39.rush"
minSdk = 29
targetSdk = 35
versionCode = 8
versionName = "1.3.0"
versionCode = 9
versionName = "1.4.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
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: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
</provider>
<service android:name=".listener.NotificationListener"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
android:enabled="true"
android:exported="true"
android:foregroundServiceType="mediaProcessing">
android:process=":NLS"
android:label="@string/notification">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
Expand Down
20 changes: 13 additions & 7 deletions app/src/main/java/com/shub39/rush/page/LyricsPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import com.shub39.rush.component.ArtFromUrl
import com.shub39.rush.component.Empty
import com.shub39.rush.database.SettingsDataStore
import com.shub39.rush.listener.NotificationListener
import com.shub39.rush.ui.theme.Typography
import com.shub39.rush.viewmodel.RushViewModel
import kotlinx.coroutines.launch

Expand Down Expand Up @@ -117,11 +118,15 @@ fun LyricsPage(
} else if (nonNullSong.geniusLyrics != null) {
source = "Genius"
}
// if (nonNullSong.syncedLyrics != null && NotificationListener.canAccessNotifications(
// context
// )
// ) {

// if (nonNullSong.syncedLyrics != null) {
// syncedLyrics = true
// }
//
// if (syncedLyrics && (rushViewModel.currentPlayingSongInfo.value?.first
// ?: "") == nonNullSong.title
// ) {
// syncLyrics = true
// }
}

Expand Down Expand Up @@ -170,9 +175,9 @@ fun LyricsPage(
}
Row {
// val iconColor = if (syncLyrics) {
// IconButtonDefaults.iconButtonColors()
// } else {
// IconButtonDefaults.filledIconButtonColors()
// } else {
// IconButtonDefaults.iconButtonColors()
// }
//
// if (syncedLyrics) {
Expand Down Expand Up @@ -283,7 +288,8 @@ fun LyricsPage(
Text(
text = "From $source",
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Center
textAlign = TextAlign.Center,
style = Typography.bodySmall
)
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<string name="suggestion">Maybe search for something?</string>
<string name="downloaded">Saved lyrics</string>
<string name="delete_all">Delete all lyrics</string>
<string name="notification">Notification Listener Service</string>
<string name="unknown_album">Unknown album</string>
<string name="width">Width</string>
<string name="colors">Colors</string>
Expand Down
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/1.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/2.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/3.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/5.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/6.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/7.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ fuelCoroutines = "2.3.1"
gson = "2.10.1"
jsoup = "1.16.2"
koinAndroid = "3.4.3"
koinAndroidxCompose = "3.6.0"
koinAndroidxComposeVersion = "3.4.3"
kotlin = "2.0.0"
coreKtx = "1.13.1"
Expand Down

0 comments on commit 67717a5

Please sign in to comment.