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

support android tauri v2 #10

Closed bpevs closed 1 month ago

bpevs commented 4 months ago

Not necessarily recommending to merge this as-is, but these are the changes I needed to do in order to get aptabase working on v2 with Android.

request feature "rustls-tls" is to avoid the openssl issue when building for android; maybe better option is probably to make openssl optional?

https://discord.com/channels/616186924390023171/1072593987271131217

 --- stderr
  thread 'main' panicked at '

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/sfackler/rust-openssl
  and include information about your system as well as this message.

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = aarch64-linux-android
  openssl-sys = 0.9.80
bpevs commented 1 month ago

Since deps are additive, should be unnecessary as long as the user declares reqwest features in their app:

reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }