mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
99a89039c8
@ -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 {
|
||||
|
3
app/proguard-rules.pro
vendored
3
app/proguard-rules.pro
vendored
@ -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…
Reference in New Issue
Block a user