Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Nov 30, 2023
1 parent 201225c commit bf298b0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ dependencies {
implementation('androidx.constraintlayout:constraintlayout:2.1.4')
implementation('androidx.swiperefreshlayout:swiperefreshlayout:1.1.0')
implementation('androidx.viewpager2:viewpager2:1.0.0')
implementation('androidx.webkit:webkit:1.8.0')
implementation('androidx.webkit:webkit:1.9.0')

//google
implementation('com.google.android.material:material:1.10.0')
Expand All @@ -179,7 +179,7 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-service:$lifecycle_version")

//media
implementation("androidx.media:media:1.6.0")
implementation("androidx.media:media:1.7.0")
// For media playback using ExoPlayer
implementation "androidx.media3:media3-exoplayer:$media3_version"
// For loading data using the OkHttp network stack
Expand Down
32 changes: 24 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,18 @@
</intent-filter>
</activity>

<service android:name=".service.CheckSourceService" />
<service android:name=".service.CacheBookService" />
<service android:name=".service.ExportBookService" />
<service android:name=".service.WebService" />
<service
android:name=".service.CheckSourceService"
android:foregroundServiceType="dataSync" />
<service
android:name=".service.CacheBookService"
android:foregroundServiceType="dataSync" />
<service
android:name=".service.ExportBookService"
android:foregroundServiceType="dataSync" />
<service
android:name=".service.WebService"
android:foregroundServiceType="connectedDevice" />
<service
android:name=".service.WebTileService"
android:exported="true"
Expand All @@ -425,10 +433,18 @@
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<service android:name=".service.TTSReadAloudService" />
<service android:name=".service.HttpReadAloudService" />
<service android:name=".service.AudioPlayService" />
<service android:name=".service.DownloadService" />
<service
android:name=".service.TTSReadAloudService"
android:foregroundServiceType="mediaPlayback" />
<service
android:name=".service.HttpReadAloudService"
android:foregroundServiceType="mediaPlayback" />
<service
android:name=".service.AudioPlayService"
android:foregroundServiceType="mediaPlayback" />
<service
android:name=".service.DownloadService"
android:foregroundServiceType="dataSync" />

<receiver
android:name=".receiver.MediaButtonReceiver"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
agp_version = '8.1.4'
media3_version = "1.2.0"
splitties_version = '3.0.0'
room_version = '2.6.0'
room_version = '2.6.1'
}
}

Expand Down

0 comments on commit bf298b0

Please sign in to comment.