()
| 1741 | } |
| 1742 | |
| 1743 | fn sdk_root() -> PathBuf { |
| 1744 | env::var_os("ANDROID_HOME") |
| 1745 | .or_else(|| env::var_os("ANDROID_SDK_ROOT")) |
| 1746 | .map(PathBuf::from) |
| 1747 | .filter(|path| path.exists()) |
| 1748 | .unwrap_or_else(default_sdk_root) |
| 1749 | } |
| 1750 | |
| 1751 | fn default_sdk_root() -> PathBuf { |
| 1752 | if cfg!(target_os = "macos") { |
no outgoing calls
no test coverage detected