Skip to content

Commit

Permalink
Update to Anki 23.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Sep 20, 2023
1 parent 8dc1607 commit 98f154b
Show file tree
Hide file tree
Showing 8 changed files with 682 additions and 131 deletions.
791 changes: 671 additions & 120 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion anki
Submodule anki updated 302 files
2 changes: 1 addition & 1 deletion build_rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ anki_process = { version = "0.0.0", path = "../anki/rslib/process" }
anyhow = "1.0.75"
camino = "1.1.6"
glob = "0.3.1"
which = "4.4.0"
which = "4.4.2"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android.useAndroidX=true
android.enableJetifier=false

GROUP=io.github.david-allison-1
VERSION_NAME=0.1.25-anki2.1.66
VERSION_NAME=0.1.26-anki23.10

POM_INCEPTION_YEAR=2020

Expand Down
6 changes: 3 additions & 3 deletions rsdroid/src/main/java/net/ankiweb/rsdroid/Backend.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ open class Backend(langs: Iterable<String> = listOf("en")) : GeneratedBackend(),
collectionPath.replace(".anki2", ".media.db"))
}
checkMainThreadOp()
openCollection(collectionPath, mediaFolder, mediaDb, false)
openCollection(collectionPath, mediaFolder, mediaDb)
}

/** Forces a full media check on next sync. Only valid with new backend. */
Expand Down Expand Up @@ -102,9 +102,9 @@ open class Backend(langs: Iterable<String> = listOf("en")) : GeneratedBackend(),
/**
* Open a collection. There must not already be an open collection.
*/
override fun openCollection(collectionPath: String, mediaFolderPath: String, mediaDbPath: String, forceSchema11: Boolean) {
override fun openCollection(collectionPath: String, mediaFolderPath: String, mediaDbPath: String) {
try {
super.openCollection(collectionPath, mediaFolderPath, mediaDbPath, forceSchema11)
super.openCollection(collectionPath, mediaFolderPath, mediaDbPath)
} catch (exc: BackendException.BackendDbException) {
throw exc.toSQLiteException("db open")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void ensureCollectionCreatedIsValid() {

Configuration config = getConfiguration(path);

Backend backend = BackendFactory.getBackend(getTargetContext());
Backend backend = BackendFactory.getBackend();
backend.openCollection(":memory:");
SupportSQLiteDatabase database = AnkiSupportSQLiteDatabase.withRustBackend(backend);

Expand Down
6 changes: 3 additions & 3 deletions rslib-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ anki_i18n = { version = "0.0.0", path = "../anki/rslib/i18n" }
anyhow = "1.0.75"
glob = "0.3.1"
inflections = "1.1.1"
prost-reflect = "0.11.4"
prost-reflect = "0.11.5"
prost-types = "0.11.9"
serde = { version = "1.0.186", features = ["derive"] }
serde_json = "1.0.105"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
# older versions may fail to compile; newer versions may fail the clippy tests
channel = "1.70"
channel = "1.72"

0 comments on commit 98f154b

Please sign in to comment.