Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from gedoor:master #201

Merged
merged 20 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4110120
Fix package visibility issue
821938089 Jan 15, 2025
54d4958
Update agp desugar dependency
821938089 Jan 15, 2025
20ff259
优化
821938089 Jan 15, 2025
74e5c81
Bump androidx.webkit:webkit from 1.11.0 to 1.12.1 (#4258)
dependabot[bot] Jan 15, 2025
eb5ed98
chore(deps): bump androidx.benchmark from 1.3.0 to 1.3.3 (#4298)
dependabot[bot] Jan 15, 2025
dfd5c98
chore(deps): bump activity from 1.9.1 to 1.9.3 (#4301)
dependabot[bot] Jan 15, 2025
5da5507
chore(deps): bump lifecycle from 2.8.4 to 2.8.7 (#4325)
dependabot[bot] Jan 15, 2025
76f05e9
chore(deps): bump core from 1.13.1 to 1.15.0 (#4328)
dependabot[bot] Jan 15, 2025
415c66e
Bump org.apache.commons:commons-text from 1.12.0 to 1.13.0 (#4439)
dependabot[bot] Jan 15, 2025
c199044
chore(deps): bump com.github.liuyueyi.quick-chinese-transfer:quick-tr…
dependabot[bot] Jan 15, 2025
0f10517
chore(deps): bump me.zhanghai.android.libarchive:library (#4314)
dependabot[bot] Jan 15, 2025
f6ddfef
chore(deps): bump fragment from 1.8.2 to 1.8.5 (#4329)
dependabot[bot] Jan 15, 2025
dea1bc8
chore(deps): bump androidx.annotation:annotation from 1.8.2 to 1.9.1 …
dependabot[bot] Jan 15, 2025
dee54d4
Bump media3 from 1.4.1 to 1.5.1 (#4457)
dependabot[bot] Jan 15, 2025
fd2b83f
Bump kotlinxSerialization from 1.7.1 to 1.8.0 (#4524)
dependabot[bot] Jan 15, 2025
f06c07c
chore(deps): bump the kotlin_ksp group across 1 directory with 12 upd…
dependabot[bot] Jan 15, 2025
4613723
Bump coroutines from 1.8.1 to 1.10.1 (#4456)
dependabot[bot] Jan 15, 2025
4762e91
优化
821938089 Jan 15, 2025
9ae95ca
chore(deps): bump androidx.constraintlayout:constraintlayout (#4327)
dependabot[bot] Jan 15, 2025
dcb2d47
优化
821938089 Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@
</application>

<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="*" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
Expand Down
9 changes: 7 additions & 2 deletions app/src/main/java/io/legado/app/ui/widget/image/PhotoView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ import android.graphics.PointF
import android.graphics.RectF
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.*
import android.view.GestureDetector
import android.view.GestureDetector.SimpleOnGestureListener
import android.view.MotionEvent
import android.view.ScaleGestureDetector
import android.view.ScaleGestureDetector.OnScaleGestureListener
import android.view.View
import android.view.ViewGroup
import android.view.ViewParent
import android.view.animation.DecelerateInterpolator
import android.view.animation.Interpolator
import android.widget.ImageView
Expand Down Expand Up @@ -914,7 +919,7 @@ class PhotoView @JvmOverloads constructor(
var viewParent: ViewParent = target.parent
while (viewParent is View) {
val view: View = viewParent
if (view.id == androidx.constraintlayout.widget.R.id.content) return
if (view.id == android.R.id.content) return
position[0] -= view.scrollX
position[1] -= view.scrollY
position[0] += view.left
Expand Down
42 changes: 21 additions & 21 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
[versions]

kotlin = "2.0.20"
ksp = "2.0.20-1.0.24"
agp = "8.6.0"
kotlin = "2.1.0"
ksp = "2.1.0-1.0.29"
agp = "8.8.0"
appcompat = "1.7.0"
colorpicker = "1.1.0"
commonsText = "1.12.0"
constraintlayout = "2.1.4"
core = "1.13.1"
commonsText = "1.13.0"
constraintlayout = "2.2.0"
core = "1.15.0"
firebaseBom = "33.2.0"
flexbox = "3.0.0"
fragment = "1.8.2"
fragment = "1.8.5"

#不要更新版本
hutool = "5.8.22"

libarchive = "1.1.0"
lifecycle = "2.8.4"
libarchive = "1.1.4"
lifecycle = "2.8.7"
glide = "4.16.0"
gson = "2.11.0"
jsonPath = "2.9.0"
# issue #3811,不要更新版本,新版引入了一个破坏性变更(详见https://github.com/jhy/jsoup/pull/2017)
# 若要升级请确保相关代码不会受此变更影响(如AnalyzeByJSoup.kt、JsoupXpath库等)
jsoup = "1.16.2"
jsoupxpath = "2.5.3"
coroutines = "1.8.1"
coroutines = "1.10.1"
liveeventbus = "1.8.14"
markwon = "4.6.2"
material = "1.12.0"
media = "1.7.0"
media3 = "1.4.1"
media3 = "1.5.1"
nanoHttpd = "2.3.1"
okhttp = "4.12.0"
preference = "1.2.1"
protobufJavalite = "4.26.1"
quickChineseTransfer = "0.2.13"
quickChineseTransfer = "0.2.15"
room = "2.6.1"
splitties = "3.0.0"
rhino = "1.8.0"
desugar = "2.0.4"
desugar = "2.1.4"

activity = "1.9.1"
kotlinxSerialization = "1.7.1"
activity = "1.9.3"
#kotlinxSerialization = "1.8.0"
swiperefreshlayout = "1.1.0"
#noinspection GradleDependency
recyclerview = "1.2.0"
#noinspection GradleDependency
viewpager2 = "1.0.0"
webkit = "1.11.0"
webkit = "1.12.1"
zxingLite = "3.2.0"


Expand All @@ -57,7 +57,7 @@ activity-activity = { module = "androidx.activity:activity", version.ref = "acti
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activity" }
activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "activity" }

androidx-annotation = { group = "androidx.annotation", name = "annotation", version = "1.8.2" }
androidx-annotation = { group = "androidx.annotation", name = "annotation", version = "1.9.1" }
#androidx-annotation-experimental = { group = "androidx.annotation", name = "annotation-experimental", version = "1.3.1" }

appcompat-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
Expand Down Expand Up @@ -150,8 +150,8 @@ kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }


kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
kotlinx-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "kotlinxSerialization" }
#kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
#kotlinx-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "kotlinxSerialization" }
liveeventbus = { module = "com.github.michaellee123:LiveEventBus", version.ref = "liveeventbus" }
material = { module = "com.google.android.material:material", version.ref = "material" }

Expand All @@ -170,7 +170,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
android-test = { id = "com.android.test", version.ref = "agp" }

androidx-benchmark = { id = "androidx.benchmark", version = "1.3.0" }
#androidx-benchmark = { id = "androidx.benchmark", version = "1.3.3" }

kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
Expand All @@ -187,6 +187,6 @@ google-services = { id = "com.google.gms.google-services", version = "4.4.2" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
room = { id = "androidx.room", version.ref = "room" }

protobuf = { id = "com.google.protobuf", version = "0.9.4" }
#protobuf = { id = "com.google.protobuf", version = "0.9.4" }

download = { id = "de.undercouch.download", version = "5.6.0" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Aug 27 18:19:17 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract

@Suppress("LEAKED_IN_PLACE_LAMBDA", "WRONG_INVOCATION_KIND")
@OptIn(ExperimentalContracts::class)
inline fun <T> suspendContinuation(crossinline block: suspend CoroutineScope.() -> T): T {
contract {
Expand Down
Loading