class InstantRunBuildContext {

    public String toXml() throws ParserConfigurationException {
        return toXml(
                currentBuild.buildMode == InstantRunBuildMode.FULL
                        ? PersistenceMode.FULL_BUILD
                        : PersistenceMode.INCREMENTAL_BUILD);
    }

    public  InstantRunBuildContext(
            boolean isInstantRunMode,
            @NonNull AndroidVersion androidVersion,
            @Nullable String targetAbi,
            @Nullable String density,
            boolean createSeparateApkForResources);
    @VisibleForTesting  InstantRunBuildContext(
            @NonNull BuildIdAllocator buildIdAllocator,
            boolean isInstantRunMode,
            @NonNull AndroidVersion androidVersion,
            @Nullable String targetAbi,
            @Nullable String density,
            boolean createSeparateApkForResources);

}