Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
960 changes: 335 additions & 625 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.94.0"
links = "tauri-plugin-sqlite"

[dependencies]
tauri = "2.9.3"
tauri = "2.12.0"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
thiserror = "2.0.17"
Expand All @@ -44,9 +44,9 @@ sqlx-sqlite-observer = { path = "crates/sqlx-sqlite-observer", features = ["conn
futures = "0.3.31"

[build-dependencies]
tauri-plugin = { version = "2.5.1", features = ["build"] }
tauri-plugin = { version = "2.7.1", features = ["build"] }

[dev-dependencies]
tauri = { version = "2.9.3", features = ["test"] }
tauri = { version = "2.12.0", features = ["test"] }
tempfile = "3.23.0"
tokio = { version = "1.48.0", features = ["rt-multi-thread", "macros"] }
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,47 @@ Or specify individual permissions:
}
```

## Compatibility / upgrading host app to Tauri 2.12

This plugin is developed and tested against **Tauri 2.12.0**.
The plugin depends on `tauri = "2.12.0"` (semver-compatible 2.12.x). Silvermine host apps
should align on **2.12.0** until patch releases are certified:

| Package | Suggested version |
| ------- | ----------------- |
| `tauri` | `2.12.0` |
| `@tauri-apps/api` | `2.12.0` |
| `@tauri-apps/cli` | `2.12.0` |

Release notes: [tauri@2.12.0](https://v2.tauri.app/release/tauri/v2.12.0/).

### Android and Gradle (host apps)

This plugin is Rust-only and does not ship an Android Gradle module. When you upgrade a
**host** Tauri app to 2.12, update the generated Android project:

1. **Regenerate Android** — Templates use Gradle **9.6.1**, AGP **9.3.1**, Kotlin **2.2**,
and `targetSdk` **37**. Run `tauri android init`, or delete
`src-tauri/gen/android/gradle/wrapper/gradle-wrapper.properties` and re-run init if the
wrapper is still on Gradle < 8.13 (minimum after the `compilerOptions` migration).
2. **`kotlinOptions` → `compilerOptions`** — New templates use `compilerOptions`; migrate
custom Kotlin Gradle scripts accordingly.
3. **JDK vs Gradle** — Tauri CLI 2.12 warns when Java is incompatible with Gradle; see
[Gradle/Java compatibility][gradle-java-compat].
4. **`$VIDEO` / `video_dir()`** — On Android these resolve to the app Movies dir, not
cache. Migrate old DB files if needed. Use explicit paths (for example
`app.path().app_data_dir()`), not `$VIDEO`.
5. **Plugin authors with Kotlin** — For plugins with `build.gradle.kts`, remove the
template `buildTypes { release { proguardFiles(...) } }` block and rename
`proguard-rules.pro` to `consumer-rules.pro` to match
`consumerProguardFiles("consumer-rules.pro")` in the 2.12 template.

### Windows

Tauri 2.12 pulls in `windows` 0.62 and drops Windows 7 support.

[gradle-java-compat]: https://docs.gradle.org/current/userguide/compatibility.html#java

## Usage

### Setup
Expand Down
123 changes: 69 additions & 54 deletions examples/observer-demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/observer-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},
"dependencies": {
"@silvermine/tauri-plugin-sqlite": "file:../../",
"@tauri-apps/api": "2.9.1",
"@tauri-apps/api": "2.12.0",
"vue": "3.5.13"
},
"devDependencies": {
"@tauri-apps/cli": "2.5.0",
"@tauri-apps/cli": "2.12.0",
"@vitejs/plugin-vue": "5.2.3",
"typescript": "5.8.3",
"vite": "6.3.5",
Expand Down
Loading
Loading