You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add --root-certificate-path option for mobile dev (#13358)
* feat: add `--root-certificate-path` option for mobile dev
lets you use a HTTPS development server
example usage:
```
cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch feat/mobile-dev-cert
cargo tauri android dev --open --root-certificate-path "/Users/lucas/Library/Application Support/mkcert/rootCA.pem" --features tauri/rustls-tls
```
* Apply suggestions from code review
Co-authored-by: Fabian-Lars <[email protected]>
---------
Co-authored-by: Fabian-Lars <[email protected]>
.expect("failed to parse TAURI_DEV_ROOT_CERTIFICATE"),
132
+
);
133
+
}
134
+
135
+
#[cfg(not(any(
136
+
feature = "native-tls",
137
+
feature = "native-tls-vendored",
138
+
feature = "rustls-tls"
139
+
)))]
140
+
{
141
+
log::warn!(
142
+
"the dev root-certificate-path option was provided, but you must enable one of the following Tauri features in Cargo.toml: native-tls, native-tls-vendored, rustls-tls"
143
+
);
144
+
}
145
+
}else{
146
+
log::warn!(
147
+
"loading HTTPS URL; you might need to provide a certificate via the `dev --root-certificate-path` option. You must enable one of the following Tauri features in Cargo.toml: native-tls, native-tls-vendored, rustls-tls"
0 commit comments