Skip to content

Commit

Permalink
Code inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
teccheck committed May 15, 2023
1 parent 95a04c7 commit b2d3b20
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 36 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {
}

dependencies {
implementation 'androidx.core:core-ktx:1.10.0'
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
Expand All @@ -48,7 +48,7 @@ dependencies {
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.preference:preference-ktx:1.2.0'

implementation 'com.google.android.material:material:1.8.0'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.google.code.gson:gson:2.10'

implementation 'com.squareup.picasso:picasso:2.8'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package io.github.teccheck.fastlyrics.exceptions

abstract class LyricsApiException {
}
abstract class LyricsApiException
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package io.github.teccheck.fastlyrics.exceptions

class LyricsNotFoundException : LyricsApiException() {
}
class LyricsNotFoundException : LyricsApiException()
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package io.github.teccheck.fastlyrics.exceptions

class NetworkException : LyricsApiException() {
}
class NetworkException : LyricsApiException()
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package io.github.teccheck.fastlyrics.exceptions

class NoMusicPlayingException : LyricsApiException() {
}
class NoMusicPlayingException : LyricsApiException()
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package io.github.teccheck.fastlyrics.exceptions

class ParseException : LyricsApiException() {
}
class ParseException : LyricsApiException()
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.squareup.picasso.Picasso
import io.github.teccheck.fastlyrics.R
import io.github.teccheck.fastlyrics.model.SongWithLyrics

class RecyclerAdapter() :
class RecyclerAdapter :
RecyclerView.Adapter<RecyclerAdapter.ViewHolder>() {

private var songs: List<SongWithLyrics> = listOf()
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/res/values-land/dimens.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values-w1240dp/dimens.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values-w600dp/dimens.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
<color name="theme_on_secondary">#ffffff</color>

<color name="theme_background_dark">#202124</color>
<color name="nav_bar_color">#52000000</color>

<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
4 changes: 0 additions & 4 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">176dp</dimen>
<dimen name="fab_margin">16dp</dimen>
</resources>
4 changes: 0 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<string name="app_name">FastLyrics</string>

<!-- Nav drawer -->
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="nav_header_desc">Navigation header</string>
<string name="nav_header_icon_desc">Navigation header icon</string>

<string name="menu_lyrics">Lyrics</string>
<string name="menu_saved">Saved</string>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.0'
classpath 'com.android.tools.build:gradle:8.0.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonTransitiveRClass=true
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
// Warning: this repository is going to shut down soon
}
}
rootProject.name = "FastLyrics"
Expand Down

0 comments on commit b2d3b20

Please sign in to comment.