aptabase / tauri-plugin-aptabase

Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
https://aptabase.com
MIT License
32 stars 4 forks source link

Problem with gdk-sys #1

Closed rpruizc closed 1 year ago

rpruizc commented 1 year ago

Hello team, I currently need help implementing the aptabase plugin with tauri. This error message can explain it better than I can:

Updating crates.io index error: failed to select a version for gdk-sys. ... required by package webkit2gtk v0.19.1 ... which satisfies dependency webkit2gtk = "^0.19.1" of package tauri v2.0.0-alpha.8 ... which satisfies dependency tauri = "^2.0.0-alpha.8" of package xyz v0.0.1 (/xyz) versions that meet the requirements ^0.16.0 are: 0.16.0

the package gdk-sys links to the native library gdk-3, but it conflicts with a previous package which links to gdk-3 as well: package gdk-sys v0.15.1 ... which satisfies dependency ffi = "^0.15.1" of package gdk v0.15.4 ... which satisfies dependency gdk = "^0.15.0" of package webkit2gtk v0.18.2 ... which satisfies dependency webkit2gtk = "^0.18.2" of package tauri-runtime-wry v0.13.0 ... which satisfies dependency tauri-runtime-wry = "^0.13.0-alpha.4" of package tauri v2.0.0-alpha.8 ... which satisfies dependency tauri = "^2.0.0-alpha.8" of package xyz v0.0.1 (/xyz) Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='gdk-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for gdk-sys which could resolve this conflict

I would appreciate any pointers to figure it out, as this error occurs after updating my Cargo.toml file.

Thanks!

goenning commented 1 year ago

Hey @rpruizc

That's because this plugin does not yet support tauri v2 as it's still in alpha. But let me see what I can do, I might be able to release an alpha version of this plugin as well.

rpruizc commented 1 year ago

Awesome, thank you. I am not using alpha in production yet, but we are developing heavily with it. I'll be happy to supply any insights from my work with aptabase on alpha tauri

goenning commented 1 year ago

I'll keep support for alpha on a branch like they do with the official plugins, so try this:

tauri-plugin-aptabase = { git = "https://github.com/aptabase/tauri-plugin-aptabase", branch = "next" }
rpruizc commented 1 year ago

Up and running! Thanks!