Add low and high detail svgs to badges

This commit is contained in:
Ehren Kret
2021-09-27 17:00:09 -05:00
parent 7864405efd
commit 559026933d
6 changed files with 83 additions and 21 deletions

View File

@@ -20,6 +20,8 @@ public class BadgeConfiguration {
private final String xhdpi;
private final String xxhdpi;
private final String xxxhdpi;
private final String lowDetailSvg;
private final String highDetailSvg;
@JsonCreator
public BadgeConfiguration(
@@ -30,7 +32,9 @@ public class BadgeConfiguration {
@JsonProperty("hdpi") final String hdpi,
@JsonProperty("xhdpi") final String xhdpi,
@JsonProperty("xxhdpi") final String xxhdpi,
@JsonProperty("xxxhdpi") final String xxxhdpi) {
@JsonProperty("xxxhdpi") final String xxxhdpi,
@JsonProperty("lowDetailSvg") final String lowDetailSvg,
@JsonProperty("highDetailSvg") final String highDetailSvg) {
this.id = id;
this.category = category;
this.ldpi = ldpi;
@@ -39,6 +43,8 @@ public class BadgeConfiguration {
this.xhdpi = xhdpi;
this.xxhdpi = xxhdpi;
this.xxxhdpi = xxxhdpi;
this.lowDetailSvg = lowDetailSvg;
this.highDetailSvg = highDetailSvg;
}
@NotEmpty
@@ -51,30 +57,46 @@ public class BadgeConfiguration {
return category;
}
@NotEmpty
public String getLdpi() {
return ldpi;
}
@NotEmpty
public String getMdpi() {
return mdpi;
}
@NotEmpty
public String getHdpi() {
return hdpi;
}
@NotEmpty
public String getXhdpi() {
return xhdpi;
}
@NotEmpty
public String getXxhdpi() {
return xxhdpi;
}
@NotEmpty
public String getXxxhdpi() {
return xxxhdpi;
}
@NotEmpty
public String getLowDetailSvg() {
return lowDetailSvg;
}
@NotEmpty
public String getHighDetailSvg() {
return highDetailSvg;
}
public boolean isTestBadge() {
return CATEGORY_TESTING.equals(category);
}