This commit is contained in:
kunfei 2023-12-07 16:04:53 +08:00
parent bf298b0474
commit 4ff9f758f8
5 changed files with 9 additions and 5 deletions

View File

@ -42,7 +42,7 @@ android {
defaultConfig {
applicationId "io.legado.app"
minSdk 21
targetSdk 33
targetSdk 34
versionCode 10000 + gitCommits
versionName version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@ -200,7 +200,7 @@ dependencies {
androidTestImplementation("androidx.room:room-testing:$room_version")
//liveEventBus
implementation('io.github.jeremyliao:live-event-bus-x:1.8.0')
implementation('com.github.michaellee123:LiveEventBus:1.8.14')
//
implementation('org.jsoup:jsoup:1.16.2')

View File

@ -17,6 +17,8 @@
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<application
android:name=".App"
@ -422,12 +424,13 @@
android:foregroundServiceType="dataSync" />
<service
android:name=".service.WebService"
android:foregroundServiceType="connectedDevice" />
android:foregroundServiceType="dataSync" />
<service
android:name=".service.WebTileService"
android:exported="true"
android:icon="@drawable/ic_web_service_noti"
android:label="legado Web Service"
android:foregroundServiceType="dataSync"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />

View File

@ -50,10 +50,10 @@ class App : Application() {
//预下载Cronet so
Cronet.preDownload()
createNotificationChannels()
applyDayNight(this)
LiveEventBus.config()
.lifecycleObserverAlwaysActive(true)
.autoClear(false)
applyDayNight(this)
registerActivityLifecycleCallbacks(LifecycleHelp)
defaultSharedPreferences.registerOnSharedPreferenceChangeListener(AppConfig)
DefaultData.upVersion()

View File

@ -16,6 +16,7 @@ object IntentHelp {
fun getBrowserIntent(uri: Uri): Intent {
val intent = Intent(Intent.ACTION_VIEW)
intent.`package` = appCtx.packageName
intent.data = uri
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (intent.resolveActivity(appCtx.packageManager) == null) {

View File

@ -6,7 +6,7 @@ buildscript {
build_tool_version = '34.0.0'
kotlin_version = '1.9.20'
ksp_version = "1.0.13"
agp_version = '8.1.4'
agp_version = '8.2.0'
media3_version = "1.2.0"
splitties_version = '3.0.0'
room_version = '2.6.1'