Skip to content

Commit f6d341c

Browse files
build(deps): adopt anki upstream 25.06b1
added: * getIgnoredBeforeCountRaw * getRetentionWorkloadRaw The definition of a month was changed in https://redirect.github.com/ankitects/anki/pull/3901 so: "10.8mo" => "10.7mo" Co-authored-by: David Allison <62114487+david-allison@users.noreply.github.com>
1 parent c820579 commit f6d341c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/pages/PostRequestHandler.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ val collectionMethods =
9595
"importJsonFile" to { bytes -> importJsonFileRaw(bytes) },
9696
"congratsInfo" to { bytes -> congratsInfoRaw(bytes) },
9797
"getImageOcclusionFields" to { bytes -> getImageOcclusionFieldsRaw(bytes) },
98+
"getIgnoredBeforeCount" to { bytes -> getIgnoredBeforeCountRaw(bytes) },
99+
"getRetentionWorkload" to { bytes -> getRetentionWorkloadRaw(bytes) },
98100
)
99101

100102
suspend fun handleCollectionPostRequest(

AnkiDroid/src/main/java/com/ichi2/libanki/Collection.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ class Collection(
647647

648648
fun importJsonFileRaw(input: ByteArray): ByteArray = backend.importJsonFileRaw(input = input)
649649

650+
fun getIgnoredBeforeCountRaw(input: ByteArray): ByteArray = backend.getIgnoredBeforeCountRaw(input = input)
651+
652+
fun getRetentionWorkloadRaw(input: ByteArray): ByteArray = backend.getRetentionWorkloadRaw(input = input)
653+
650654
fun compareAnswer(
651655
expected: String,
652656
provided: String,

AnkiDroid/src/test/java/com/ichi2/libanki/SchedulerTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ import org.junit.Assert
3838
import org.junit.Ignore
3939
import org.junit.Test
4040
import org.junit.runner.RunWith
41-
import java.lang.Exception
4241
import java.time.Instant
4342
import java.time.ZoneId
44-
import kotlin.Throws
4543
import kotlin.math.roundToInt
4644
import kotlin.math.roundToLong
4745
import kotlin.test.assertNotNull
@@ -631,7 +629,7 @@ open class SchedulerTest : JvmTest() {
631629
Ease.EASY,
632630
),
633631
),
634-
Matchers.equalTo("10.8mo"),
632+
Matchers.equalTo("10.7mo"),
635633
)
636634
}
637635

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ androidxViewpager2 = "1.1.0"
5959
androidxWebkit = "1.14.0"
6060
# https://developer.android.com/jetpack/androidx/releases/work
6161
androidxWork = "2.10.1"
62-
ankiBackend = '0.1.52-anki25.02.7'
62+
ankiBackend = '0.1.52-anki25.06b1'
6363
autoService = "1.1.1"
6464
autoServiceAnnotations = "1.1.1"
6565
colorpicker = "1.2.0"

0 commit comments

Comments
 (0)