build: initial android 15 upgrade
This commit is contained in:
parent
8d767a0aac
commit
d540d6f14c
7 changed files with 9 additions and 4 deletions
|
@ -11,7 +11,7 @@ plugins {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdk 34
|
||||
compileSdk 35
|
||||
// NDK is not used in Auxio explicitly (used in the ffmpeg extension), but we need to specify
|
||||
// it here so that binary stripping will work.
|
||||
// TODO: Eventually you might just want to start vendoring the FFMpeg extension so the
|
||||
|
@ -25,7 +25,7 @@ android {
|
|||
versionCode 50
|
||||
|
||||
minSdk 24
|
||||
targetSdk 34
|
||||
targetSdk 35
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
android:exported="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:launchMode="singleTask"
|
||||
android:allowCrossUidActivitySwitchFromBelow="false"
|
||||
android:roundIcon="@mipmap/ic_launcher"
|
||||
android:windowSoftInputMode="adjustPan">
|
||||
|
||||
|
|
|
@ -155,6 +155,8 @@ class AuxioService :
|
|||
}
|
||||
|
||||
companion object {
|
||||
const val ACTION_START = BuildConfig.APPLICATION_ID + ".service.START"
|
||||
|
||||
var isForeground = false
|
||||
private set
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
startService(
|
||||
Intent(this, AuxioService::class.java)
|
||||
.setAction(AuxioService.ACTION_START)
|
||||
.putExtra(AuxioService.INTENT_KEY_START_ID, IntegerTable.START_ID_ACTIVITY))
|
||||
|
||||
if (!startIntentAction(intent)) {
|
||||
|
|
|
@ -61,6 +61,7 @@ class StartActionRunner : TaskerPluginRunnerActionNoOutputOrInput() {
|
|||
ContextCompat.startForegroundService(
|
||||
context,
|
||||
Intent(context, AuxioService::class.java)
|
||||
.setAction(AuxioService.ACTION_START)
|
||||
.putExtra(AuxioService.INTENT_KEY_START_ID, IntegerTable.START_ID_TASKER))
|
||||
while (!AuxioService.isForeground) {
|
||||
Thread.sleep(100)
|
||||
|
|
|
@ -182,7 +182,7 @@ fun Context.newMainPendingIntent(): PendingIntent =
|
|||
PendingIntent.getActivity(
|
||||
this,
|
||||
IntegerTable.REQUEST_CODE,
|
||||
Intent(this, MainActivity::class.java),
|
||||
Intent(this, MainActivity::class.java).setAction(Intent.ACTION_MAIN),
|
||||
PendingIntent.FLAG_IMMUTABLE)
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@ buildscript {
|
|||
}
|
||||
|
||||
plugins {
|
||||
id "com.android.application" version '8.5.0' apply false
|
||||
id "com.android.application" version '8.5.2' apply false
|
||||
id "androidx.navigation.safeargs.kotlin" version "$navigation_version" apply false
|
||||
id "org.jetbrains.kotlin.android" version "$kotlin_version" apply false
|
||||
id "com.google.devtools.ksp" version '1.9.23-1.0.20' apply false
|
||||
|
|
Loading…
Reference in a new issue