pub struct BuildContext {
pub workspace_manifest_path: PathBuf,
pub package_manifest_path: PathBuf,
pub project_path: PathBuf,
pub cargo_manifest: CargoManifest,
pub cargo_package: CargoPackage<Metadata>,
pub target_dir: PathBuf,
}
Fields§
§workspace_manifest_path: PathBuf
§package_manifest_path: PathBuf
§project_path: PathBuf
§cargo_manifest: CargoManifest
§cargo_package: CargoPackage<Metadata>
§target_dir: PathBuf
Implementations§
Source§impl BuildContext
impl BuildContext
pub fn new(config: &Config, target_dir: Option<PathBuf>) -> Result<Self>
pub fn package_name(&self) -> String
pub fn package_version(&self) -> String
pub fn target_sdk_version(&self, sdk: &AndroidSdk) -> u32
pub fn android_build_targets( &self, build_targets: &Vec<AndroidTarget>, ) -> Vec<AndroidTarget>
pub fn android_res(&self) -> Option<PathBuf>
pub fn android_assets(&self) -> Option<PathBuf>
pub fn gen_android_manifest( &self, sdk: &AndroidSdk, package_name: &String, debuggable: bool, ) -> Result<AndroidManifest>
pub fn gen_info_plist(&self, package_name: &String) -> Result<InfoPlist>
pub fn apple_build_targets( &self, build_targets: &Vec<AppleTarget>, ) -> Vec<AppleTarget>
pub fn apple_res(&self) -> Option<PathBuf>
pub fn apple_assets(&self) -> Option<PathBuf>
Auto Trait Implementations§
impl Freeze for BuildContext
impl RefUnwindSafe for BuildContext
impl Send for BuildContext
impl Sync for BuildContext
impl Unpin for BuildContext
impl UnwindSafe for BuildContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more