Generating Android launcher icons
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 08 Jun 2014 09:22:48 +0200
changeset 1591b667288ba9c
parent 158 115273e5bb77
child 160 be13d9823456
Generating Android launcher icons
minesweeper/pom.xml
minesweeper/res/drawable-hdpi/ic_launcher.png
minesweeper/res/drawable-mdpi/ic_launcher.png
minesweeper/res/drawable-xhdpi/ic_launcher.png
minesweeper/res/drawable-xxhdpi/ic_launcher.png
     1.1 --- a/minesweeper/pom.xml	Sun Jun 08 09:10:08 2014 +0200
     1.2 +++ b/minesweeper/pom.xml	Sun Jun 08 09:22:48 2014 +0200
     1.3 @@ -286,11 +286,49 @@
     1.4            <build>
     1.5                <plugins>
     1.6                    <plugin>
     1.7 +                      <groupId>com.filmon.maven</groupId>
     1.8 +                      <artifactId>image-maven-plugin</artifactId>
     1.9 +                      <version>1.1</version>
    1.10 +                      <executions>
    1.11 +                          <execution>
    1.12 +                              <goals>
    1.13 +                                  <goal>scale</goal>
    1.14 +                              </goals>
    1.15 +                              <configuration>
    1.16 +                                  <outputDirectory>target/res</outputDirectory>
    1.17 +                                  <images>
    1.18 +                                      <image>
    1.19 +                                          <source>src/main/icons/DukeSweeper.png</source>
    1.20 +                                          <destination>drawable-hdpi/ic_launcher.png</destination>
    1.21 +                                          <width>72</width>
    1.22 +                                      </image>
    1.23 +                                      <image>
    1.24 +                                          <source>src/main/icons/DukeSweeper.png</source>
    1.25 +                                          <destination>drawable-mdpi/ic_launcher.png</destination>
    1.26 +                                          <width>48</width>
    1.27 +                                      </image>
    1.28 +                                      <image>
    1.29 +                                          <source>src/main/icons/DukeSweeper.png</source>
    1.30 +                                          <destination>drawable-xhdpi/ic_launcher.png</destination>
    1.31 +                                          <width>96</width>
    1.32 +                                      </image>
    1.33 +                                      <image>
    1.34 +                                          <source>src/main/icons/DukeSweeper.png</source>
    1.35 +                                          <destination>drawable-xxhdpi/ic_launcher.png</destination>
    1.36 +                                          <width>144</width>
    1.37 +                                      </image>
    1.38 +                                  </images>
    1.39 +                              </configuration>
    1.40 +                          </execution>
    1.41 +                      </executions>
    1.42 +                  </plugin>
    1.43 +                  <plugin>
    1.44                        <groupId>com.jayway.maven.plugins.android.generation2</groupId>
    1.45                        <artifactId>android-maven-plugin</artifactId>
    1.46                        <version>${android.plugin.version}</version>
    1.47                        <extensions>true</extensions>
    1.48                        <configuration>
    1.49 +                          <resourceDirectory>target/res</resourceDirectory>
    1.50                            <classifier>apk</classifier>
    1.51                            <attachJar>false</attachJar>
    1.52                            <apkDebug>debug</apkDebug>
     2.1 Binary file minesweeper/res/drawable-hdpi/ic_launcher.png has changed
     3.1 Binary file minesweeper/res/drawable-mdpi/ic_launcher.png has changed
     4.1 Binary file minesweeper/res/drawable-xhdpi/ic_launcher.png has changed
     5.1 Binary file minesweeper/res/drawable-xxhdpi/ic_launcher.png has changed