fix: adjust Cargo features to fix android build (#375)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-19 06:59:26 -07:00
committed by GitHub
parent ba4ef9a037
commit fdec66c69f
10 changed files with 53 additions and 25 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ tauri-plugin-log = { path = "../../../plugins/log", version = "1.0.0" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "1.0.0" }
tauri-plugin-clipboard = { path = "../../../plugins/clipboard", version = "1.0.0" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "1.0.0" }
tauri-plugin-http = { path = "../../../plugins/http", version = "1.0.0", features = [ "multipart" ] }
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "1.0.0" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "1.0.0", features = [ "windows7-compat" ] }
tauri-plugin-os = { path = "../../../plugins/os", version = "1.0.0" }
tauri-plugin-process = { path = "../../../plugins/process", version = "1.0.0" }
@@ -37,7 +37,7 @@ features = [
"isolation",
"macos-private-api",
"system-tray",
"protocol-asset"
"protocol-asset",
]
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
@@ -21,7 +21,7 @@ open class RustPlugin : Plugin<Project> {
val abiList = (findProperty("abiList") as? String)?.split(',') ?: defaultAbiList
val defaultArchList = listOf("arm64", "arm", "x86", "x86_64");
val archList = (findProperty("archList") as? String)?.split(',') ?: listOf("arm64", "arm", "x86", "x86_64")
val archList = (findProperty("archList") as? String)?.split(',') ?: defaultArchList
val targetsList = (findProperty("targetList") as? String)?.split(',') ?: listOf("aarch64", "armv7", "i686", "x86_64")