pub struct AndroidParams {
pub project_dir: PathBuf,
pub application_id: String,
pub launcher_activity: String,
pub abi: String,
}Expand description
Flat Android install/launch parameters. Populated by whisker-cli
from the user’s whisker.rs::configure(&mut Config) plus a few
hard defaults (jniLibs lives at <project_dir>/app/src/main/jniLibs,
APK at <project_dir>/app/build/outputs/apk/debug/app-debug.apk,
etc.). The dev-server never invents these values — if any are
missing the cli is expected to error out before constructing
Config.
Fields§
§project_dir: PathBufAbsolute path to the Gradle project (= the dir with
app/build.gradle.kts). For the in-workspace podcast
example this is examples/podcast/android/.
application_id: StringapplicationId — used by adb am start -n <application_id>/<launcher_activity>.
launcher_activity: StringLauncher activity. Always starts with a dot
(e.g. .MainActivity); am start expands it against
application_id.
abi: StringABI directory under jniLibs/ (e.g. "arm64-v8a"). Hard-
coded by the cli for now; multi-ABI builds aren’t on the
dev loop’s path.
Trait Implementations§
Source§impl Clone for AndroidParams
impl Clone for AndroidParams
Source§fn clone(&self) -> AndroidParams
fn clone(&self) -> AndroidParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more