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:
@@ -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)
|
||||
|
||||
@@ -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"?>
|
||||
<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>
|
||||
@@ -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="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>
|
||||
|
||||
Reference in New Issue
Block a user