From b2116cd7063e708348a19f15f92abe966c17db49 Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison@users.noreply.github.com> Date: Mon, 26 Oct 2026 21:11:57 +0000 Subject: [PATCH] build(deps): adopt the new `anki-backend-android` backend Effectively a no-op: testing that the dependencies are still resolving correctly. This is the 'new' Android backend, which will pull in a `java-library` which modules lower down the stack can reference without bringing in an Android dependency. Android `.so` files and android assets will be added here, when the main library moves to `java-library`. See https://redirect.github.com/ankidroid/Anki-Android-Backend/pull/765 Note: The move is subtle: `anki-android-backend` -> `anki-backend-android` `anki-android-backend` still exists, and will be renamed at a later date. Assisted-by: GPT-6.1-Sol xhigh --- .../java/com/ichi2/anki/pages/PageWebViewClientAssetTest.kt | 2 +- gradle/libs.versions.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AnkiDroid/src/test/java/com/ichi2/anki/pages/PageWebViewClientAssetTest.kt b/AnkiDroid/src/test/java/com/ichi2/anki/pages/PageWebViewClientAssetTest.kt index 3ea941685bd3..85aeaf23fe67 100644 --- a/AnkiDroid/src/test/java/com/ichi2/anki/pages/PageWebViewClientAssetTest.kt +++ b/AnkiDroid/src/test/java/com/ichi2/anki/pages/PageWebViewClientAssetTest.kt @@ -25,7 +25,7 @@ class PageWebViewClientAssetTest : PageWebViewClientTestBase() { // Pin the entire declaration, including the bootstrap script hash, to require review on backend updates. // Backend updates are expected to change this hash and fail this test until the new declaration is reviewed. - val expectedPolicy = "script-src 'self' 'sha256-zbUXAZ9cNd1OhKazElPpdVvjYXz5xeBtJ0twbbVwB3o='" + val expectedPolicy = "script-src 'self' 'sha256-1eO5v3fJDmbaWxUNa8DWv729RR8kpfPqIe0VFTiVNds='" assertEquals( listOf(expectedPolicy), policies, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7f1e9602362a..56839c84d0c3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -73,7 +73,7 @@ androidxWebkit = "1.16.0" # https://developer.android.com/jetpack/androidx/releases/work androidxWork = "2.12.0" # https://github.com/ankidroid/Anki-Android-Backend/ -ankiBackend = '0.1.72-anki26.09.3' +ankiBackend = '0.1.73-anki26.09.3' autoService = "1.1.1" autoServiceAnnotations = "1.1.1" # https://github.com/skydoves/ColorPickerView/releases @@ -189,7 +189,7 @@ commons-collections4 = { module = "org.apache.commons:commons-collections4", ver commons-compress = { module = "org.apache.commons:commons-compress", version.ref = "commonsCompress" } desugar-jdk-libs-nio = { module = "com.android.tools:desugar_jdk_libs_nio", version.ref = "desugar-jdk-libs-nio" } drakeet-drawer = { module = "com.drakeet.drawer:drawer", version.ref = "drawer" } -ankiBackend-backend = { module = "io.github.david-allison:anki-android-backend", version.ref = "ankiBackend" } +ankiBackend-backend = { module = "io.github.david-allison:anki-backend-android", version.ref = "ankiBackend" } ankiBackend-testing = { module = "io.github.david-allison:anki-android-backend-testing", version.ref = "ankiBackend" } java-semver = { module = "com.github.zafarkhaja:java-semver", version.ref = "javaSemver" } jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }