Merge remote-tracking branch 'origin/master'

pull/2449/head
kunfei 2 years ago
commit 99a89039c8
  1. 4
      app/build.gradle
  2. 3
      app/proguard-rules.pro
  3. 3
      app/src/main/java/io/legado/app/help/book/BookExtensions.kt

@ -71,8 +71,8 @@ android {
applicationIdSuffix '.release'
//, exoplayer的库出问题了
minifyEnabled false
//shrinkResources true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {

@ -234,8 +234,7 @@
## 保证该私有变量不被混淆
-keepclassmembers class com.google.android.exoplayer2.upstream.cache.CacheDataSource$Factory {
#noinspection ShrinkerUnresolvedReference
private DataSource.Factory upstreamDataSourceFactory;
*** upstreamDataSourceFactory;
}
## 对外提供api

@ -93,6 +93,9 @@ fun Book.getLocalUri(): Uri {
val fileDoc = treeFileDoc.find(originName, 3)
if (fileDoc != null) {
localUriCache[bookUrl] = fileDoc.uri
//更新bookUrl 重启不用再找一遍
bookUrl = fileDoc.toString()
save()
return fileDoc.uri
}
localUriCache[bookUrl] = uri

Loading…
Cancel
Save