Skip to content

Commit 8bfb7a5

Browse files
committed
refactor(gesture): 移除低版本兼容性代码并更新版本号
- 删除了 AssistsCore.kt 中的低版本兼容性代码 - 将版本号从 3.2.1 修改为 3.2.11- 更新了 assists、assists-mp 和 assists-opcv 模块的版本号
1 parent 0c4ef0d commit 8bfb7a5

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

assists-mp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ afterEvaluate {
4646
from components.release
4747
groupId = 'com.github.ven-coder'
4848
artifactId = 'assists-mp'
49-
version = '3.2.1'
49+
version = '3.2.11'
5050
}
5151
}
5252
}

assists-opcv/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ afterEvaluate {
4545
from components.release
4646
groupId = 'com.github.ven-coder'
4747
artifactId = 'assists-opcv'
48-
version = '3.2.1'
48+
version = '3.2.11'
4949
}
5050
}
5151
}

assists/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ afterEvaluate {
6060
from components.release
6161
groupId = 'com.github.ven-coder'
6262
artifactId = 'assists-base'
63-
version = '3.2.1'
63+
version = '3.2.11'
6464
}
6565
}
6666
}

assists/src/main/java/com/ven/assists/AssistsCore.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,7 @@ object AssistsCore {
506506
duration: Long,
507507
): Boolean {
508508
val builder = GestureDescription.Builder()
509-
val strokeDescription = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
510-
GestureDescription.StrokeDescription(path, startTime, duration, true)
511-
} else {
512-
TODO("VERSION.SDK_INT < O")
513-
}
509+
val strokeDescription = GestureDescription.StrokeDescription(path, startTime, duration)
514510
val gestureDescription = builder.addStroke(strokeDescription).build()
515511
val deferred = CompletableDeferred<Boolean>()
516512
val runResult = runMain {

0 commit comments

Comments
 (0)