Skip to content

Commit

Permalink
refactor(core): print warning when add resrouce.asrc in compressFileP…
Browse files Browse the repository at this point in the history
…attern

ref #233
  • Loading branch information
simpleton committed Feb 26, 2018
1 parent 7096beb commit 2d62314
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class Configuration {
private static final String ATTR_SIGNFILE_ALIAS = "alias";
public static final String DEFAULT_DIGEST_ALG = "SHA1";

public static final String ASRC_FILE = "resource.asrc";

public final HashMap<String, HashMap<String, HashSet<Pattern>>> mWhiteList;
public final HashMap<String, HashMap<String, HashMap<String, String>>> mOldResMapping;
public final HashMap<String, String> mOldFileMapping;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ public Builder setWhiteList(ArrayList<String> whiteList) {
}

public Builder setCompressFilePattern(ArrayList<String> compressFilePattern) {
if (compressFilePattern.contains(Configuration.ASRC_FILE)) {
System.out.printf(
"[Warning] compress %s will prevent optimization at runtime",
Configuration.ASRC_FILE
);
}
this.compressFilePattern = compressFilePattern;
return this;
}
Expand Down

0 comments on commit 2d62314

Please sign in to comment.