build: drop api 21-23 support

Drop support for Lollipop and Marshmallow.

I legit cannot build for them anymore. There's some insane dependency
tangle between Kapt and Room that makes it impossible to use anything
BUT Java 17 (maybe Java 11). If I use Java 17 or Java 11, suddenly the
whole app crashes since Lollipop and Marshmallow only support some weird
Java 8/11 chimera abomination. This issue has persisted probably since
the move to Java 11, making it basically unusable anyway, so at this point
just cut the charade and officially drop support.
This commit is contained in:
Alexander Capehart 2023-06-01 10:49:22 -06:00
parent 5d51adfb0a
commit 5f70ce8870
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
8 changed files with 14 additions and 22 deletions

View file

@ -19,6 +19,9 @@ within it
- Fixed blurry playing indicator in album/artist/genre/playlist items
- Fixed incorrect songs being displayed when adding albums to the end of the queue
#### What's Changed
- Android Lollipop and Marshmallow support have been dropped
## 3.1.0
#### What's New

View file

@ -11,7 +11,7 @@
<a href="https://www.gnu.org/licenses/gpl-3.0">
<img src="https://img.shields.io/badge/license-GPL%20v3-2B6DBE.svg?style=flat">
</a>
<img alt="Minimum SDK Version" src="https://img.shields.io/badge/API-21%2B-1450A8?style=flat">
<img alt="Minimum SDK Version" src="https://img.shields.io/badge/API-24%2B-1450A8?style=flat">
</p>
<h4 align="center"><a href="/CHANGELOG.md">Changelog</a> | <a href="https://github.com/OxygenCobalt/Auxio/wiki">Wiki</a></h4>
<p align="center">

View file

@ -23,7 +23,7 @@ android {
versionName "3.1.0"
versionCode 30
minSdk 21
minSdk 24
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -184,7 +184,7 @@ fun Context.newMainPendingIntent(): PendingIntent =
this,
IntegerTable.REQUEST_CODE,
Intent(this, MainActivity::class.java),
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) PendingIntent.FLAG_IMMUTABLE else 0)
PendingIntent.FLAG_IMMUTABLE)
/**
* Create a [PendingIntent] that will broadcast the specified command when launched.
@ -196,4 +196,4 @@ fun Context.newBroadcastPendingIntent(action: String): PendingIntent =
this,
IntegerTable.REQUEST_CODE,
Intent(action).setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY),
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) PendingIntent.FLAG_IMMUTABLE else 0)
PendingIntent.FLAG_IMMUTABLE)

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/sel_selection_bg" />
<item android:drawable="?attr/selectableItemBackground" />
</layer-list>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?attr/colorSurface" />
<item android:drawable="@drawable/sel_selection_bg" />
<item android:drawable="@drawable/ui_item_ripple" />
</layer-list>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Auxio.V23" parent="Theme.Auxio">
<!-- Fix dumb default android behavior -->
<item name="colorControlHighlight">@color/sel_compat_ripple</item>
<!-- Work around hard-coded text highlight colors in the default Material3 theme -->
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
</style>
</resources>

View file

@ -50,9 +50,15 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<!-- Fix dumb default android behavior -->
<item name="colorControlHighlight">@color/sel_compat_ripple</item>
<item name="colorControlNormal">?attr/colorOnSurfaceVariant</item>
<item name="colorControlActivated">?attr/colorPrimary</item>
<!-- Work around hard-coded text highlight colors in the default Material3 theme -->
<item name="android:textColorHighlight">@color/overlay_text_highlight</item>
<item name="android:textColorHighlightInverse">@color/overlay_text_highlight_inverse</item>
<item name="preferenceTheme">@style/PreferenceTheme.Auxio</item>
<item name="preferenceStyle">@style/Preference.Auxio</item>
<item name="preferenceCategoryStyle">@style/Preference.Auxio.PreferenceCategory</item>