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 the install-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 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
Sourcepub fn device_id(&mut self, device_id: String) -> &mut Self
pub fn device_id(&mut self, device_id: String) -> &mut Self
If you have multiple devices connected, specify a target device by adding the –device-id=serial-id flag