diff --git a/pom.xml b/pom.xml
index d0973ac..f7d502e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.sterl.svg2png
svg2png
jar
- 0.0.1-SNAPSHOT
+ 0.2.0-SNAPSHOT
https://github.com/puel/SvgToPng
2015
Svg to PNG CL util
diff --git a/src/main/java/org/sterl/svg2png/CliOptions.java b/src/main/java/org/sterl/svg2png/CliOptions.java
index 70d2516..fd12ebc 100644
--- a/src/main/java/org/sterl/svg2png/CliOptions.java
+++ b/src/main/java/org/sterl/svg2png/CliOptions.java
@@ -24,7 +24,8 @@ public enum CliOptions {
ANDROID_LAUNCH(null, "android-launch", false, "Android Launcher Icon config mdpi 48x48 -> xxxhdpi 192x192."),
ANDROID_ICON(null, "android-icon", false, "Android Icon (Action Bar, Dialog etc.) config mdpi 36x36 -> xxxhdpi 128x128."),
ANDROID_SMALL(null, "android-small", false, "Android Small default config from mdpi 24x24 -> xxxhdpi 96x96."),
- ANDROID_24dp(null, "android-24dp", false, "Android 24dp icons, with suffix _24dp -- mdpi 24x24 -> xxxhdpi 96x96.")
+ ANDROID_24dp(null, "android-24dp", false, "Android 24dp icons, with suffix _24dp -- mdpi 24x24 -> xxxhdpi 96x96."),
+ ANDROID_36dp(null, "android-36dp", false, "Android 24dp icons, with suffix _36dp -- mdpi 36x36 -> xxxhdpi 144x011.")
;
private final String shortName;
@@ -80,7 +81,13 @@ public static OutputConfig parse(CommandLine cmd) {
}
} else if (cmd.hasOption(ANDROID_24dp.longName)) {
try {
- result = m.readerFor(OutputConfig.class).readValue(CliOptions.class.getResourceAsStream("/android-launcher.json"));
+ result = m.readerFor(OutputConfig.class).readValue(CliOptions.class.getResourceAsStream("/android-24dp.json"));
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ } else if (cmd.hasOption(ANDROID_36dp.longName)) {
+ try {
+ result = m.readerFor(OutputConfig.class).readValue(CliOptions.class.getResourceAsStream("/android-36dp.json"));
} catch (Exception e) {
throw new RuntimeException(e);
}
diff --git a/src/main/resources/android-36dp.json b/src/main/resources/android-36dp.json
new file mode 100644
index 0000000..441f6b3
--- /dev/null
+++ b/src/main/resources/android-36dp.json
@@ -0,0 +1,30 @@
+{
+ "files": [
+ {
+ "directory": "drawable-xxxhdpi",
+ "nameSuffix": "_36dp",
+ "height": 144,
+ "width": 144
+ },{
+ "directory": "drawable-xxhdpi",
+ "nameSuffix": "_36dp",
+ "height": 96,
+ "width": 96
+ },{
+ "directory": "drawable-xhdpi",
+ "nameSuffix": "_36dp",
+ "height": 72,
+ "width": 72
+ },{
+ "directory": "drawable-hdpi",
+ "nameSuffix": "_36dp",
+ "height": 48,
+ "width": 48
+ },{
+ "directory": "drawable-mdpi",
+ "nameSuffix": "_36dp",
+ "height": 36,
+ "width": 36
+ }
+ ]
+}
\ No newline at end of file