Struct crossbundle_tools::types::InstallApks
source · [−]pub struct InstallApks { /* private fields */ }
Expand description
Deploy APKs to a connected device
After you generate a set of APKs, bundletool can deploy the right combination of APKs from that set to a connected device.
For example, if you have a connected device running Android 5.0 (API level 21)
or higher, bundletool pushes the base APK, feature module APKs, and configuration
APKs required to run your app on that device. Alternatively, if your connected device
is running Android 4.4 (API level 20) or lower, bundletool
looks for a compatible
multi-APK and deploys it to your device.
To deploy your app from an APK set, use theinstall-apks command and specify the path
of the APK set using the --apks=/path/to/apks
flag, as shown below. (If you have
multiple devices connected, specify a target device by adding the
--device-id=serial-id
flag.)
Implementations
sourceimpl InstallApks
impl InstallApks
sourcepub fn new(apks: &Path) -> InstallApks
pub fn new(apks: &Path) -> InstallApks
Specifies path to set of apks to install it on your device or emulator
sourcepub fn local_testing(&mut self, local_testing: bool) -> &mut InstallApks
pub fn local_testing(&mut self, local_testing: bool) -> &mut InstallApks
If you’re using the --local-testing
flag with the build-apks
command, for
local testing to work correctly, you need to use install-apks
to install
your APKs
sourcepub fn device_id(&mut self, device_id: String) -> &mut InstallApks
pub fn device_id(&mut self, device_id: String) -> &mut InstallApks
If you have multiple devices connected, specify a target device by adding the
--device-id=serial-id
flag
Trait Implementations
sourceimpl Debug for InstallApks
impl Debug for InstallApks
sourceimpl Default for InstallApks
impl Default for InstallApks
sourcefn default() -> InstallApks
fn default() -> InstallApks
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for InstallApks
impl Send for InstallApks
impl Sync for InstallApks
impl Unpin for InstallApks
impl UnwindSafe for InstallApks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more