feat(android): add JNI build and VPN support

This commit is contained in:
lbl
2026-08-22 21:55:00 +08:00
parent 60a4403f0e
commit b7151880c0
7 changed files with 163 additions and 48 deletions
+4 -2
View File
@@ -44,7 +44,6 @@ reed-solomon-erasure = "6.0"
serde.workspace = true
rcgen = "0.14.6"
machine-uid = "0.5.4"
zerocopy = { version = "0.8.31", features = ["derive"] }
socket2 = { version = "0.6.1", features = ["all"] }
@@ -52,11 +51,14 @@ socket2 = { version = "0.6.1", features = ["all"] }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = ["winreg"] }
widestring = "1.2"
windows-sys = { version = "0.60.2", features = ["Win32_Networking_WinSock"] }
windows-sys = { version = "0.61", features = ["Win32_Networking_WinSock"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[target.'cfg(not(target_os = "android"))'.dependencies]
machine-uid = "0.6"
[build-dependencies]
prost-build = "0.14"
protoc-bin-vendored = "3"