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§
Source§impl InstallApks
impl InstallApks
Sourcepub fn new(apks: &Path) -> Self
pub fn new(apks: &Path) -> Self
Specifies path to set of apks to install it on your device or emulator
Sourcepub fn local_testing(&mut self, local_testing: bool) -> &mut Self
pub fn local_testing(&mut self, local_testing: bool) -> &mut Self
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
Trait Implementations§
Source§impl Debug for InstallApks
impl Debug for InstallApks
Source§impl Default for InstallApks
impl Default for InstallApks
Source§fn default() -> InstallApks
fn default() -> InstallApks
Auto Trait Implementations§
impl Freeze for InstallApks
impl RefUnwindSafe for InstallApks
impl Send for InstallApks
impl Sync for InstallApks
impl Unpin for InstallApks
impl UnwindSafe for InstallApks
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more