Skip to content

Commit

Permalink
fix: build is now jdk 21
Browse files Browse the repository at this point in the history
feat: added 2025
  • Loading branch information
tsshadow committed Jan 19, 2025
1 parent 4844b35 commit c0017d2
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ allprojects {
// Set Kotlin JVM target to the same for all subprojects
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
jvmTarget = "21"
}
}

Expand Down
14 changes: 13 additions & 1 deletion core/domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,19 @@ dependencies {
implementation libs.roomKtx
ksp libs.room
}

android {
namespace 'org.moire.ultrasonic.subsonic.domain'
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

kotlinOptions {
jvmTarget = "21"
}

ksp {
arg("ksp.jvmTarget", "21") // Ensure KSP targets JVM 21
}
}

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
gradle = "8.1.1"

navigation = "2.7.5"
gradlePlugin = "8.5.1"
gradlePlugin = "8.8.0"
androidxcar = "1.2.0"
androidxcore = "1.12.0"
ktlint = "1.0.1"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Mon Jul 22 21:22:35 CEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
9 changes: 5 additions & 4 deletions ultrasonic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ android {
debug {
minifyEnabled false
multiDexEnabled true
testCoverageEnabled true
applicationIdSuffix '.debug'
enableUnitTestCoverage true
enableAndroidTestCoverage true
}
}

Expand All @@ -53,7 +54,7 @@ android {
}

kotlinOptions {
jvmTarget = "17"
jvmTarget = "21"
}

buildFeatures {
Expand All @@ -63,8 +64,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

ksp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SelectGenreFragment : Fragment(), RefreshableFragment {
ratingAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)


var years = arrayOf("All", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014", "2013", "2012", "2011", "2010", "2009", "2008", "2007", "2006", "2005", "2004", "2003", "2002", "2001", "2000", "1999", "1998", "1997", "1996", "1995", "1994", "1993", "1992");
var years = arrayOf("All", "2025", "2024", "2023", "2022", "2021", "2020", "2019", "2018", "2017", "2016", "2015", "2014", "2013", "2012", "2011", "2010", "2009", "2008", "2007", "2006", "2005", "2004", "2003", "2002", "2001", "2000", "1999", "1998", "1997", "1996", "1995", "1994", "1993", "1992");
val yearAdapter = ArrayAdapter<String>(requireContext(),android.R.layout.simple_spinner_item, years)
yearAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class LandingPageFragment : Fragment(), KoinComponent {
randomSongsButton = binding!!.findViewById(R.id.main_songs_button)
randomSongsThisYearButton = binding!!.findViewById(R.id.main_songs_this_year_button)
recentSongsButton = binding!!.findViewById(R.id.main_songs_recent)

// Livesets
livesetsTitle = binding!!.findViewById(R.id.main_livesets)
randomLivesetsButton = binding!!.findViewById(R.id.main_livesets_button)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class SelectSongFragment : Fragment(), RefreshableFragment {

val years = arrayOf(
"All",
"2025",
"2024",
"2023",
"2022",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,16 @@ private const val MEDIA_SEARCH_SONG_ITEM = "MEDIA_SEARCH_SONG_ITEM"
// Genres -> songs
private const val MEDIA_GENRES_SONGS = "MEDIA_GENRES_SONGS"
private const val MEDIA_GENRE_SONGS = "MEDIA_GENRE_SONGS"
private const val MEDIA_GENRES_SONGS_THIS_YEAR = "MEDIA_GENRES_SONGS_THIS_YEAR"
private const val MEDIA_GENRES_SONGS_LAST_YEAR = "MEDIA_GENRES_SONGS_LAST_YEAR"
private const val MEDIA_GENRE_SONGS_THIS_YEAR = "MEDIA_GENRE_SONGS_THIS_YEAR"
private const val MEDIA_GENRE_SONGS_LAST_YEAR = "MEDIA_GENRE_SONGS_LAST_YEAR"
// Genres -> Livesets
private const val MEDIA_GENRES_LIVESETS = "MEDIA_GENRES_LIVESETS"
private const val MEDIA_GENRE_LIVESETS = "MEDIA_GENRE_LIVESETS"
private const val MEDIA_GENRES_LIVESETS_THIS_YEAR = "MEDIA_GENRES_LIVESETS_THIS_YEAR"
private const val MEDIA_GENRES_LIVESETS_LAST_YEAR = "MEDIA_GENRES_LIVESETS_LAST_YEAR"
private const val MEDIA_GENRE_LIVESETS_THIS_YEAR = "MEDIA_GENRE_LIVESETS_THIS_YEAR"
private const val MEDIA_GENRE_LIVESETS_LAST_YEAR = "MEDIA_GENRE_LIVESETS_LAST_YEAR"

// Moods -> songs
Expand Down Expand Up @@ -658,13 +662,18 @@ class MediaLibrarySessionCallback :
// Genre -> songs
MEDIA_GENRES_SONGS -> getGenres(null, "short")
MEDIA_GENRE_SONGS -> getGenre(parentIdParts[1], null, "short")
MEDIA_GENRES_SONGS_LAST_YEAR -> getGenres(year, "short")
MEDIA_GENRE_SONGS_LAST_YEAR -> getGenre(parentIdParts[1],year, "short")
MEDIA_GENRES_SONGS_THIS_YEAR -> getGenres(year, "short")
MEDIA_GENRES_SONGS_LAST_YEAR -> getGenres(year-1, "short")
MEDIA_GENRE_SONGS_THIS_YEAR -> getGenre(parentIdParts[1],year, "short")
MEDIA_GENRE_SONGS_LAST_YEAR -> getGenre(parentIdParts[1],year-1, "short")

// Genre -> livesets
MEDIA_GENRES_LIVESETS -> getGenres(null, "long")
MEDIA_GENRE_LIVESETS -> getGenre(parentIdParts[1], null, "long")
MEDIA_GENRES_LIVESETS_LAST_YEAR -> getGenres(year, "long")
MEDIA_GENRE_LIVESETS_LAST_YEAR -> getGenre(parentIdParts[1],year, "long")
MEDIA_GENRES_LIVESETS_THIS_YEAR -> getGenres(year, "long")
MEDIA_GENRES_LIVESETS_LAST_YEAR -> getGenres(year-1, "long")
MEDIA_GENRE_LIVESETS_THIS_YEAR -> getGenre(parentIdParts[1],year, "long")
MEDIA_GENRE_LIVESETS_LAST_YEAR -> getGenre(parentIdParts[1],year-1, "long")

// // Mood -> songs
// MEDIA_MOODS_SONGS -> getMoods(null, "short")
Expand Down Expand Up @@ -865,6 +874,13 @@ class MediaLibrarySessionCallback :
isBrowsable = true,
mediaType = MEDIA_TYPE_PLAYLIST
)
mediaItems.add(
R.string.main_title_songs_this_year,
MEDIA_GENRES_SONGS_THIS_YEAR,
R.string.main_genres_title,
isBrowsable = true,
mediaType = MEDIA_TYPE_PLAYLIST
)
mediaItems.add(
R.string.main_title_songs_last_year,
MEDIA_GENRES_SONGS_LAST_YEAR,
Expand All @@ -879,6 +895,13 @@ class MediaLibrarySessionCallback :
isBrowsable = true,
mediaType = MEDIA_TYPE_PLAYLIST
)
mediaItems.add(
R.string.main_title_livesets_this_year,
MEDIA_GENRES_LIVESETS_THIS_YEAR,
R.string.main_genres_title,
isBrowsable = true,
mediaType = MEDIA_TYPE_PLAYLIST
)
mediaItems.add(
R.string.main_title_livesets_last_year,
MEDIA_GENRES_LIVESETS_LAST_YEAR,
Expand Down
1 change: 1 addition & 0 deletions ultrasonic/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
<string-array name="yearValues" translatable="false">
<!--suppress CheckTagEmptyBody -->
<item></item>
<item>2025</item>
<item>2024</item>
<item>2023</item>
<item>2022</item>
Expand Down
8 changes: 5 additions & 3 deletions ultrasonic/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@
<string name="main.years_title">Years</string>
<string name="main.title_all_songs">All (songs)</string>
<string name="main.title_all_livesets">All (livesets)</string>
<string name="main.title_songs_last_year">This year (songs)</string>
<string name="main.title_livesets_last_year">This Year (livesets)</string>
<string name="main.title_songs_this_year">This year (songs)</string>
<string name="main.title_songs_last_year">Last year (songs)</string>
<string name="main.title_livesets_this_year">This Year (livesets)</string>
<string name="main.title_livesets_last_year">Last Year (livesets)</string>
<string name="main.landing_page_title">Home</string>
<string name="main.advanced_search_title">Search</string>
<string name="main.offline">Offline</string>
<string name="main.setup_server">%s - Set up Server</string>
<string name="main.songs_random">Random</string>
<string name="main.songs_random_this_year">Random (2024)</string>
<string name="main.songs_random_this_year">Random (2025)</string>
<string name="main.songs_recent">Recent</string>
<string name="main.songs_starred">Starred</string>
<string name="main.songs_title">Songs</string>
Expand Down

0 comments on commit c0017d2

Please sign in to comment.