Skip to content

Commit

Permalink
added missing parameter to config, updated libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
icefields committed Jun 3, 2024
1 parent a649eb5 commit caf5066
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

val composeVersion = "1.6.7" // rootProject.extra.get("compose_version") as String
val lifecycleVersion = "2.8.0"
val lifecycleVersion = "2.8.1"
val retrofit2Version = "2.9.0"
val coroutinesVersion = "1.7.3"
val exoplayerVersion = "2.19.1"
Expand Down Expand Up @@ -57,7 +57,7 @@ android {
targetSdk = 34
versionCode = 59
versionName = "1.00-59"
val versionQuote = "This version is powered by Pluto (the planet!)"
val versionQuote = "This version is powered by calico cats"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class PowerAmpache2Application : Application(), ImageLoaderFactory, Configuratio
.networkCachePolicy(CachePolicy.ENABLED)
.memoryCache {
MemoryCache.Builder(this)
.maxSizePercent(0.02)
.maxSizePercent(0.05)
.strongReferencesEnabled(true)
.build()
}
Expand All @@ -93,7 +93,7 @@ class PowerAmpache2Application : Application(), ImageLoaderFactory, Configuratio
.build()

}
.logger(DebugLogger()) // TODO change in production
//.logger(DebugLogger()) // TODO change in production
.build()

override val workManagerConfiguration: Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ data class Pa2Config(

// number of retries in case of playback errors
val playbackErrorRetries: Int = PLAYBACK_ERRORS_RETRIES
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ package luci.sixsixsix.powerampache2.data.remote.dto
import com.google.gson.annotations.SerializedName
import luci.sixsixsix.powerampache2.BuildConfig
import luci.sixsixsix.powerampache2.common.DOGMAZIC_USER
import luci.sixsixsix.powerampache2.common.PLAYBACK_ERRORS_RETRIES
import luci.sixsixsix.powerampache2.common.PLAYLIST_ADD_NEW_ENABLE
import luci.sixsixsix.powerampache2.common.PLAYLIST_FETCH_LIMIT

Expand Down Expand Up @@ -61,5 +62,6 @@ fun Pa2ConfigDto.toPa2Config() = Pa2Config(
dogmazicDemoUser = dogmazicDemoUser ?: DOGMAZIC_USER,
playlistSongsFetchLimit = playlistSongsFetchLimit ?: PLAYLIST_FETCH_LIMIT,
forceLoginDialogsOnAllVersions = forceLoginDialogsOnAllVersions ?: BuildConfig.FORCE_LOGIN_DIALOG_ON_ALL_VERSIONS,
loginWarning = loginWarning ?: ""
loginWarning = loginWarning ?: "",
playbackErrorRetries = playbackErrorRetries ?: PLAYBACK_ERRORS_RETRIES
)
2 changes: 2 additions & 0 deletions metadata/en-US/changelogs/59.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Updated SDK libraries, including Jetpack (UI)
- Bug fixes (including song skipping with bad connection)
- Changed network config to allow self-signed certificates
- updated Android lifecycle libraries
- Increased image cache size

0 comments on commit caf5066

Please sign in to comment.