mirror of
https://github.com/gedoor/legado.git
synced 2024-07-04 23:36:56 +08:00
Compare commits
7 Commits
e001061386
...
0cc1e913be
Author | SHA1 | Date | |
---|---|---|---|
|
0cc1e913be | ||
|
697fd03cc1 | ||
|
72ff30b1ea | ||
|
b30ef00307 | ||
|
0cfd6ea46d | ||
|
96c76d74ba | ||
|
6c9a8a74bd |
|
@ -113,6 +113,14 @@
|
|||
-identifiernamestring class * {
|
||||
@org.chromium.build.annotations.IdentifierNameString *;
|
||||
}
|
||||
|
||||
# Mark fields with this to help R8 figure out that they cannot be null.
|
||||
-assumenosideeffects class ** {
|
||||
@org.chromium.build.annotations.AssumeNonNull *** *(...) return _NONNULL_;
|
||||
}
|
||||
-assumenosideeffects class ** {
|
||||
@org.chromium.build.annotations.AssumeNonNull *** * return _NONNULL_;
|
||||
}
|
||||
# -------- Config Path: components/cronet/android/cronet_impl_common_proguard.cfg --------
|
||||
# Proguard config for apps that depend on cronet_impl_common_java.jar.
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
{"arm64-v8a":"bbf2c50d1ebf0763d451b08e290a3244","armeabi-v7a":"ecb872f7b1b5342f4d7c36262bec0600","x86":"4da4832b89e2412d808c5b1ecdc24e3d","x86_64":"62080f051db02ed0e939affb39ce67fb","version":"123.0.6312.80"}
|
||||
{"x86":"2aad90238c23fd16cd4f00932cc8bbfc","arm64-v8a":"44ea67de5cfb2fb4e9491efce9496e2f","armeabi-v7a":"52826628a666ad0f4b14ef602af85341","x86_64":"146de0053930fdabdb481fd9462fd1a7","version":"125.0.6422.113"}
|
|
@ -13,6 +13,7 @@
|
|||
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||
|
||||
**2024/02/27**
|
||||
* 更新cronet: 125.0.6422.113
|
||||
* 更新cronet: 123.0.6312.80
|
||||
* 更新cronet: 123.0.6312.40
|
||||
|
||||
|
|
|
@ -81,6 +81,10 @@ class PermissionActivity : AppCompatActivity() {
|
|||
kotlin.runCatching {
|
||||
val intent = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)
|
||||
intent.setData(Uri.parse("package:$packageName"))
|
||||
intent.setClassName(
|
||||
"com.android.settings",
|
||||
"com.android.settings.fuelgauge.RequestIgnoreBatteryOptimizations"
|
||||
)
|
||||
settingActivityResult.launch(intent)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ import io.legado.app.help.book.BookHelp
|
|||
import io.legado.app.help.book.ContentProcessor
|
||||
import io.legado.app.help.book.getExportFileName
|
||||
import io.legado.app.help.book.isLocal
|
||||
import io.legado.app.help.book.isLocalModified
|
||||
import io.legado.app.help.config.AppConfig
|
||||
import io.legado.app.model.localBook.LocalBook
|
||||
import io.legado.app.ui.book.cache.CacheActivity
|
||||
|
@ -57,6 +58,7 @@ import kotlinx.coroutines.coroutineScope
|
|||
import kotlinx.coroutines.ensureActive
|
||||
import kotlinx.coroutines.flow.collectIndexed
|
||||
import kotlinx.coroutines.flow.flow
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.launch
|
||||
import me.ag2s.epublib.domain.Author
|
||||
import me.ag2s.epublib.domain.Date
|
||||
|
@ -121,7 +123,10 @@ class ExportBookService : BaseService() {
|
|||
toastOnUi(it.localizedMessage)
|
||||
}
|
||||
|
||||
IntentAction.stop -> stopSelf()
|
||||
IntentAction.stop -> {
|
||||
notificationManager.cancel(NotificationId.ExportBook)
|
||||
stopSelf()
|
||||
}
|
||||
}
|
||||
return super.onStartCommand(intent, flags, startId)
|
||||
}
|
||||
|
@ -130,6 +135,9 @@ class ExportBookService : BaseService() {
|
|||
super.onDestroy()
|
||||
exportProgress.clear()
|
||||
exportMsg.clear()
|
||||
waitExportBooks.keys.forEach {
|
||||
postEvent(EventBus.EXPORT_BOOK, it)
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
|
@ -168,7 +176,7 @@ class ExportBookService : BaseService() {
|
|||
return
|
||||
}
|
||||
exportJob = lifecycleScope.launch(IO) {
|
||||
while (true) {
|
||||
while (isActive) {
|
||||
val (bookUrl, exportConfig) = waitExportBooks.entries.firstOrNull() ?: let {
|
||||
notificationContentText = "导出完成"
|
||||
upExportNotification(true)
|
||||
|
@ -200,6 +208,7 @@ class ExportBookService : BaseService() {
|
|||
}
|
||||
exportMsg[book.bookUrl] = getString(R.string.export_success)
|
||||
} catch (e: Throwable) {
|
||||
ensureActive()
|
||||
exportMsg[bookUrl] = e.localizedMessage ?: "ERROR"
|
||||
AppLog.put("导出书籍<${book?.name ?: bookUrl}>出错", e)
|
||||
} finally {
|
||||
|
@ -211,10 +220,7 @@ class ExportBookService : BaseService() {
|
|||
}
|
||||
|
||||
private fun refreshChapterList(book: Book) {
|
||||
if (!book.isLocal) {
|
||||
return
|
||||
}
|
||||
if (LocalBook.getLastModified(book).getOrDefault(0L) < book.latestChapterTime) {
|
||||
if (!book.isLocal || !book.isLocalModified()) {
|
||||
return
|
||||
}
|
||||
kotlin.runCatching {
|
||||
|
|
|
@ -42,7 +42,7 @@ android.defaults.buildfeatures.shaders=false
|
|||
# and none from the library's dependencies, thereby reducing the size of the R class for that library.
|
||||
android.nonTransitiveRClass=true
|
||||
# https://chromiumdash.appspot.com/releases?platform=Android
|
||||
CronetVersion=123.0.6312.80
|
||||
CronetMainVersion=123.0.0.0
|
||||
CronetVersion=125.0.6422.113
|
||||
CronetMainVersion=125.0.0.0
|
||||
android.injected.testOnly=false
|
||||
android.nonFinalResIds=true
|
Loading…
Reference in New Issue
Block a user