build: bump to 3.0.5

Bump the version to 3.0.5.
This commit is contained in:
Alexander Capehart 2023-04-15 18:39:46 -06:00
parent b031adabeb
commit e6b00b1025
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
7 changed files with 35 additions and 20 deletions

View file

@ -1,5 +1,13 @@
# Changelog # Changelog
## dev
#### What's Fixed
- Fixed inconsistent corner radius on widget
- Fixed crash that would occur due to intelligent sort name functionality
- Fixed crashing on music loading failures that should route to an error
screen
## 3.0.4 ## 3.0.4
#### What's New #### What's New

View file

@ -2,8 +2,8 @@
<h1 align="center"><b>Auxio</b></h1> <h1 align="center"><b>Auxio</b></h1>
<h4 align="center">A simple, rational music player for android.</h4> <h4 align="center">A simple, rational music player for android.</h4>
<p align="center"> <p align="center">
<a href="https://github.com/oxygencobalt/Auxio/releases/tag/v3.0.4"> <a href="https://github.com/oxygencobalt/Auxio/releases/tag/v3.0.5">
<img alt="Latest Version" src="https://img.shields.io/static/v1?label=tag&message=v3.0.4&color=64B5F6&style=flat"> <img alt="Latest Version" src="https://img.shields.io/static/v1?label=tag&message=v3.0.5&color=64B5F6&style=flat">
</a> </a>
<a href="https://github.com/oxygencobalt/Auxio/releases/"> <a href="https://github.com/oxygencobalt/Auxio/releases/">
<img alt="Releases" src="https://img.shields.io/github/downloads/OxygenCobalt/Auxio/total.svg?color=4B95DE&style=flat"> <img alt="Releases" src="https://img.shields.io/github/downloads/OxygenCobalt/Auxio/total.svg?color=4B95DE&style=flat">

View file

@ -20,8 +20,8 @@ android {
defaultConfig { defaultConfig {
applicationId namespace applicationId namespace
versionName "3.0.4" versionName "3.0.5"
versionCode 28 versionCode 29
minSdk 21 minSdk 21
targetSdk 33 targetSdk 33

View file

@ -369,7 +369,7 @@ class SortName(name: String, musicSettings: MusicSettings) : Comparable<SortName
init { init {
var sortName = name var sortName = name
if (musicSettings.intelligentSorting) { if (musicSettings.intelligentSorting) {
sortName = sortName.replace(leadingPunctuation, "") sortName = sortName.replace(LEADING_PUNCTUATION_REGEX, "")
sortName = sortName =
sortName.run { sortName.run {
@ -382,7 +382,7 @@ class SortName(name: String, musicSettings: MusicSettings) : Comparable<SortName
} }
// Zero pad all numbers to six digits for better sorting // Zero pad all numbers to six digits for better sorting
sortName = sortName.replace(consecutiveDigits) { it.value.padStart(6, '0') } sortName = sortName.replace(CONSECUTIVE_DIGITS_REGEX) { it.value.padStart(6, '0') }
} }
collationKey = COLLATOR.getCollationKey(sortName) collationKey = COLLATOR.getCollationKey(sortName)
@ -407,8 +407,8 @@ class SortName(name: String, musicSettings: MusicSettings) : Comparable<SortName
private companion object { private companion object {
val COLLATOR: Collator = Collator.getInstance().apply { strength = Collator.PRIMARY } val COLLATOR: Collator = Collator.getInstance().apply { strength = Collator.PRIMARY }
val leadingPunctuation: Regex = Regex("""^\p{Punct}+""") val LEADING_PUNCTUATION_REGEX = Regex("[^\\p{Punct}+]")
val consecutiveDigits: Regex = Regex("""\d+""") val CONSECUTIVE_DIGITS_REGEX = Regex("\\d+")
} }
} }

View file

@ -23,9 +23,11 @@ import android.content.Context
import android.content.pm.PackageManager import android.content.pm.PackageManager
import android.os.Build import android.os.Build
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import kotlinx.coroutines.*
import java.util.LinkedList import java.util.LinkedList
import javax.inject.Inject import javax.inject.Inject
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.channels.Channel
import org.oxycblt.auxio.BuildConfig import org.oxycblt.auxio.BuildConfig
import org.oxycblt.auxio.music.* import org.oxycblt.auxio.music.*
@ -37,8 +39,6 @@ import org.oxycblt.auxio.music.storage.MediaStoreExtractor
import org.oxycblt.auxio.util.logD import org.oxycblt.auxio.util.logD
import org.oxycblt.auxio.util.logE import org.oxycblt.auxio.util.logE
import org.oxycblt.auxio.util.logW import org.oxycblt.auxio.util.logW
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
/** /**
* Core music loading state class. * Core music loading state class.
@ -394,14 +394,18 @@ constructor(
return libraryJob.await().getOrThrow() return libraryJob.await().getOrThrow()
} }
private inline fun <R> CoroutineScope.tryAsync(context: CoroutineContext = EmptyCoroutineContext, crossinline block: suspend () -> R) = async(context) { private inline fun <R> CoroutineScope.tryAsync(
try { context: CoroutineContext = EmptyCoroutineContext,
Result.success(block()) crossinline block: suspend () -> R
} catch (e: Exception) { ) =
Result.failure(e) async(context) {
try {
Result.success(block())
} catch (e: Exception) {
Result.failure(e)
}
} }
}
/** /**
* Emit a new [Indexer.State.Indexing] state. This can be used to signal the current state of * Emit a new [Indexer.State.Indexing] state. This can be used to signal the current state of
* the music loading process to external code. Assumes that the callee has already checked if * the music loading process to external code. Assumes that the callee has already checked if

View file

@ -98,8 +98,8 @@ constructor(
builder builder
.size(getSafeRemoteViewsImageSize(context, 10f)) .size(getSafeRemoteViewsImageSize(context, 10f))
.transformations( .transformations(
SquareFrameTransform.INSTANCE, SquareFrameTransform.INSTANCE,
RoundedCornersTransformation(cornerRadius.toFloat())) RoundedCornersTransformation(cornerRadius.toFloat()))
} else { } else {
builder.size(getSafeRemoteViewsImageSize(context)) builder.size(getSafeRemoteViewsImageSize(context))
} }

View file

@ -0,0 +1,3 @@
Auxio 3.0.0 massively improves the music library experience, with a new advanced music loader, a new unified artist model, and a new selection system that makes enqueueing music much simpler.
This release fixes critical issues.
For more information, see https://github.com/OxygenCobalt/Auxio/releases/tag/v3.0.5.