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:
parent
5d51adfb0a
commit
5f70ce8870
8 changed files with 14 additions and 22 deletions
|
@ -19,6 +19,9 @@ within it
|
||||||
- Fixed blurry playing indicator in album/artist/genre/playlist items
|
- Fixed blurry playing indicator in album/artist/genre/playlist items
|
||||||
- Fixed incorrect songs being displayed when adding albums to the end of the queue
|
- 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
|
## 3.1.0
|
||||||
|
|
||||||
#### What's New
|
#### What's New
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<a href="https://www.gnu.org/licenses/gpl-3.0">
|
<a href="https://www.gnu.org/licenses/gpl-3.0">
|
||||||
<img src="https://img.shields.io/badge/license-GPL%20v3-2B6DBE.svg?style=flat">
|
<img src="https://img.shields.io/badge/license-GPL%20v3-2B6DBE.svg?style=flat">
|
||||||
</a>
|
</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>
|
</p>
|
||||||
<h4 align="center"><a href="/CHANGELOG.md">Changelog</a> | <a href="https://github.com/OxygenCobalt/Auxio/wiki">Wiki</a></h4>
|
<h4 align="center"><a href="/CHANGELOG.md">Changelog</a> | <a href="https://github.com/OxygenCobalt/Auxio/wiki">Wiki</a></h4>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
|
|
@ -23,7 +23,7 @@ android {
|
||||||
versionName "3.1.0"
|
versionName "3.1.0"
|
||||||
versionCode 30
|
versionCode 30
|
||||||
|
|
||||||
minSdk 21
|
minSdk 24
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
@ -184,7 +184,7 @@ fun Context.newMainPendingIntent(): PendingIntent =
|
||||||
this,
|
this,
|
||||||
IntegerTable.REQUEST_CODE,
|
IntegerTable.REQUEST_CODE,
|
||||||
Intent(this, MainActivity::class.java),
|
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.
|
* Create a [PendingIntent] that will broadcast the specified command when launched.
|
||||||
|
@ -196,4 +196,4 @@ fun Context.newBroadcastPendingIntent(action: String): PendingIntent =
|
||||||
this,
|
this,
|
||||||
IntegerTable.REQUEST_CODE,
|
IntegerTable.REQUEST_CODE,
|
||||||
Intent(action).setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY),
|
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)
|
||||||
|
|
|
@ -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>
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="?attr/colorSurface" />
|
<item android:drawable="?attr/colorSurface" />
|
||||||
|
<item android:drawable="@drawable/sel_selection_bg" />
|
||||||
<item android:drawable="@drawable/ui_item_ripple" />
|
<item android:drawable="@drawable/ui_item_ripple" />
|
||||||
</layer-list>
|
</layer-list>
|
|
@ -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>
|
|
|
@ -50,9 +50,15 @@
|
||||||
<item name="windowActionBar">false</item>
|
<item name="windowActionBar">false</item>
|
||||||
<item name="windowNoTitle">true</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="colorControlNormal">?attr/colorOnSurfaceVariant</item>
|
||||||
<item name="colorControlActivated">?attr/colorPrimary</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="preferenceTheme">@style/PreferenceTheme.Auxio</item>
|
||||||
<item name="preferenceStyle">@style/Preference.Auxio</item>
|
<item name="preferenceStyle">@style/Preference.Auxio</item>
|
||||||
<item name="preferenceCategoryStyle">@style/Preference.Auxio.PreferenceCategory</item>
|
<item name="preferenceCategoryStyle">@style/Preference.Auxio.PreferenceCategory</item>
|
||||||
|
|
Loading…
Reference in a new issue