Skip to content

Commit

Permalink
Allow to add multiple installer ids by using the same method
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Feb 25, 2018
1 parent 6a271ea commit d27e9bd
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public class PiracyChecker {
private int layoutXML = -1;
private boolean enableLVL;
private boolean enableSigningCertificate;
private boolean enableInstallerId;
private boolean enableUnauthorizedAppsCheck;
private boolean enableStoresCheck;
private boolean enableEmulatorCheck;
Expand Down Expand Up @@ -103,9 +102,8 @@ public PiracyChecker enableSigningCertificate(String signature) {
return this;
}

public PiracyChecker enableInstallerId(InstallerID installerID) {
this.enableInstallerId = true;
this.installerIDs.add(installerID);
public PiracyChecker enableInstallerId(InstallerID... installerID) {
this.installerIDs.addAll(Arrays.asList(installerID));
return this;
}

Expand Down Expand Up @@ -356,7 +354,7 @@ private boolean verifySigningCertificate() {
}

private boolean verifyInstallerId() {
if (enableInstallerId) {
if (!installerIDs.isEmpty()) {
if (LibraryUtils.verifyInstallerId(context, installerIDs))
return true;
} else
Expand Down

0 comments on commit d27e9bd

Please sign in to comment.