Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ public static Builder newAndroidComponent(int type) {
return new Builder(type);
}

public final String tagName;
public final String name;
public final boolean exported;
public final String process;
public final List<IntentFilter> intentFilters;
public final int type;

private AndroidComponent(Builder builder) {
this.tagName = builder.tagName;
this.name = builder.name;
this.exported = builder.exported;
this.process = builder.process;
Expand All @@ -48,6 +50,7 @@ private AndroidComponent(Builder builder) {

public static final class Builder {

private String tagName;
private String name;
private boolean exported;
private String process;
Expand All @@ -62,6 +65,11 @@ public AndroidComponent build() {
return new AndroidComponent(this);
}

public Builder tagName(String tagName) {
this.tagName = tagName;
return this;
}

public Builder name(String name) {
this.name = name;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private static AndroidComponent getAndroidComponent(Node node, int type) {
builder.name(XmlUtils.getAttribute(attributes, "android:name"));
builder.exported(XmlUtils.getBoolAttribute(attributes, "android:exported", false));
builder.process(XmlUtils.getAttribute(attributes, "android:process"));
builder.tagName(node.getNodeName());
NodeList children = node.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
Expand Down