protected void deployBuiltApk ( ) throws MojoExecutionException , MojoFailureException { if ( project . getPackaging ( ) . equals ( APK ) ) { File apkFile = new File ( targetDirectory , finalName + "." + APK ) ; deployApk ( apkFile ) ; } else { getLog ( ) . info ( "Project packaging is not apk, skipping deployment." ) ; } }
Deploy the apk built with the current projects to all attached devices and emulators . Skips other projects in a multi - module build without terminating .