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)
|
||||
|
||||
Reference in New Issue
Block a user