|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.manifmerger.ManifestMerger2.Invoker<T>
public static final class ManifestMerger2.Invoker<T extends ManifestMerger2.Invoker<T>>
This class will hold all invocation parameters for the manifest merging tool. There are broadly three types of input to the merging tool :
Nested Class Summary | |
---|---|
static class |
ManifestMerger2.Invoker.Feature
Optional behavior of the merging tool can be turned on by setting these Feature. |
Field Summary | |
---|---|
protected com.android.utils.ILogger |
mLogger
|
protected java.io.File |
mMainManifestFile
|
protected com.google.common.collect.ImmutableMap.Builder<java.lang.String,java.lang.String> |
mPlaceHolders
|
protected com.google.common.collect.ImmutableMap.Builder<ManifestMerger2.SystemProperty,java.lang.String> |
mSystemProperties
|
Method Summary | |
---|---|
ManifestMerger2.Invoker |
addFlavorAndBuildTypeManifest(java.io.File file)
Add a flavor or build type manifest file last in the list. |
ManifestMerger2.Invoker |
addFlavorAndBuildTypeManifests(java.io.File... files)
Add several flavor or build type manifest files last in the list. |
ManifestMerger2.Invoker |
addLibraryManifest(java.io.File file)
Add one library file manifest, will be added last in the list of library files which will make the parameter the lowest priority library manifest file. |
ManifestMerger2.Invoker |
addLibraryManifests(java.io.File... files)
Add several library file manifests at then end of the list which will make them the lowest priority manifest files. |
ManifestMerger2.Invoker |
addLibraryManifests(java.util.List<com.android.utils.Pair<java.lang.String,java.io.File>> namesAndFiles)
|
MergingReport |
merge()
Perform the merging and return the result. |
ManifestMerger2.Invoker |
setMergeReportFile(java.io.File mergeReport)
Sets the file to use to write the merging report. |
ManifestMerger2.Invoker |
setOverride(ManifestMerger2.SystemProperty override,
java.lang.String value)
Sets a value for a ManifestMerger2.SystemProperty |
ManifestMerger2.Invoker |
setPlaceHolderValue(java.lang.String placeHolderName,
java.lang.String value)
Adds a new placeholder name and value for substitution. |
ManifestMerger2.Invoker |
setPlaceHolderValues(java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
Adds placeholders names and associated values for substitution. |
ManifestMerger2.Invoker |
withFeatures(ManifestMerger2.Invoker.Feature... features)
Sets some optional features for the merge tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.io.File mMainManifestFile
protected final com.google.common.collect.ImmutableMap.Builder<ManifestMerger2.SystemProperty,java.lang.String> mSystemProperties
protected final com.android.utils.ILogger mLogger
protected final com.google.common.collect.ImmutableMap.Builder<java.lang.String,java.lang.String> mPlaceHolders
Method Detail |
---|
public ManifestMerger2.Invoker setOverride(ManifestMerger2.SystemProperty override, java.lang.String value)
ManifestMerger2.SystemProperty
override
- the property to setvalue
- the value for the property
public ManifestMerger2.Invoker setPlaceHolderValues(java.util.Map<java.lang.String,java.lang.String> keyValuePairs)
public ManifestMerger2.Invoker setPlaceHolderValue(java.lang.String placeHolderName, java.lang.String value)
public ManifestMerger2.Invoker setMergeReportFile(@NonNull java.io.File mergeReport)
mergeReport
- the file to write the report in.
public ManifestMerger2.Invoker addLibraryManifest(java.io.File file)
file
- the library manifest file to add.
public ManifestMerger2.Invoker addLibraryManifests(java.util.List<com.android.utils.Pair<java.lang.String,java.io.File>> namesAndFiles)
public ManifestMerger2.Invoker addLibraryManifests(java.io.File... files)
files
- library manifest files to add last.
public ManifestMerger2.Invoker addFlavorAndBuildTypeManifest(java.io.File file)
file
- build type or flavor manifest file
public ManifestMerger2.Invoker addFlavorAndBuildTypeManifests(java.io.File... files)
files
- build type of flavor manifest files to add.
public ManifestMerger2.Invoker withFeatures(ManifestMerger2.Invoker.Feature... features)
features
- one to many features to set.
public MergingReport merge() throws ManifestMerger2.MergeFailureException
MergingReport
that will give
access to all the logging and merging records.
This method can be invoked several time and will re-do the file merges.
ManifestMerger2.MergeFailureException
- if the merging
cannot be completed successfully.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |