com.android.ide.common.build
Class SplitSelectTool

java.lang.Object
  extended by com.android.ide.common.build.SplitSelectTool

public class SplitSelectTool
extends java.lang.Object

Abstraction to the split-select tool.


Constructor Summary
SplitSelectTool()
           
 
Method Summary
static java.util.List<java.lang.String> splitSelect(ProcessExecutor processExecutor, java.io.File splitSelectExec, java.lang.String deviceConfig, java.lang.String mainApkPath, java.util.Collection<java.lang.String> splitApksPath)
          Runs the native split-select tool given the main APK, the list of pure split APKs and the targeted device characteristics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitSelectTool

public SplitSelectTool()
Method Detail

splitSelect

@NonNull
public static java.util.List<java.lang.String> splitSelect(@NonNull
                                                                   ProcessExecutor processExecutor,
                                                                   @NonNull
                                                                   java.io.File splitSelectExec,
                                                                   @NonNull
                                                                   java.lang.String deviceConfig,
                                                                   @NonNull
                                                                   java.lang.String mainApkPath,
                                                                   @NonNull
                                                                   java.util.Collection<java.lang.String> splitApksPath)
                                                    throws ProcessException
Runs the native split-select tool given the main APK, the list of pure split APKs and the targeted device characteristics. The tool should select the minimum set of the split APKs that should be installed in that device.

Parameters:
processExecutor - a reusable process executor instance.
splitSelectExec - the pointer to the split-select tool in this machine.
deviceConfig - the targed device
mainApkPath - the path the main application APK.
splitApksPath - the path to all the pure split APKs.
Returns:
the set of APK to successfully install the application on the targeted device.
Throws:
ProcessException