From b7c7ff1cdec5e52620d7824f20eaea5e88646c32 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:06:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=20Android=2014?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 8 +++++++- .../tieba/post/receivers/BootCompleteSignReceiver.kt | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ebb688f4..c119daf3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,7 +34,7 @@ android { applicationId "com.huanchengfly.tieba.post" minSdkVersion 21 //noinspection OldTargetApi - targetSdkVersion 33 + targetSdkVersion 34 versionCode applicationVersionCode versionName applicationVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9be3693a..ec83e0b6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -22,6 +22,7 @@ + @@ -61,8 +62,13 @@ android:name=".services.OKSignService" android:exported="true" android:enabled="true" + android:foregroundServiceType="specialUse" android:permission="android.permission.BIND_JOB_SERVICE" - android:process=":oksign" /> + android:process=":oksign"> + +