Merge remote-tracking branch 'origin/master'
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Vendored
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user