@@ -763,6 +763,8 @@ private void writeLocalProps(final File file) {
763
763
writer .close ();
764
764
}
765
765
766
+ static final String ICON_192 = "icon-192.png" ;
767
+ static final String ICON_144 = "icon-144.png" ;
766
768
static final String ICON_96 = "icon-96.png" ;
767
769
static final String ICON_72 = "icon-72.png" ;
768
770
static final String ICON_48 = "icon-48.png" ;
@@ -783,18 +785,24 @@ private void writeRes(File resFolder,
783
785
File localIcon48 = new File (sketchFolder , ICON_48 );
784
786
File localIcon72 = new File (sketchFolder , ICON_72 );
785
787
File localIcon96 = new File (sketchFolder , ICON_96 );
788
+ File localIcon144 = new File (sketchFolder , ICON_144 );
789
+ File localIcon192 = new File (sketchFolder , ICON_192 );
786
790
787
791
// File drawableFolder = new File(resFolder, "drawable");
788
792
// drawableFolder.mkdirs()
793
+ File buildIcon36 = new File (resFolder , "drawable-ldpi/icon.png" );
789
794
File buildIcon48 = new File (resFolder , "drawable/icon.png" );
790
- File buildIcon36 = new File (resFolder , "drawable-ldpi/icon.png" );
791
795
File buildIcon72 = new File (resFolder , "drawable-hdpi/icon.png" );
792
796
File buildIcon96 = new File (resFolder , "drawable-xhdpi/icon.png" );
797
+ File buildIcon144 = new File (resFolder , "drawable-xxhdpi/icon.png" );
798
+ File buildIcon192 = new File (resFolder , "drawable-xxxhdpi/icon.png" );
793
799
794
800
if (!localIcon36 .exists () &&
795
801
!localIcon48 .exists () &&
796
802
!localIcon72 .exists () &&
797
- !localIcon96 .exists ()) {
803
+ !localIcon96 .exists () &&
804
+ !localIcon144 .exists () &&
805
+ !localIcon192 .exists ()) {
798
806
try {
799
807
// if no icons are in the sketch folder, then copy all the defaults
800
808
if (buildIcon36 .getParentFile ().mkdirs ()) {
@@ -817,6 +825,16 @@ private void writeRes(File resFolder,
817
825
} else {
818
826
System .err .println ("Could not create \" drawable-xhdpi\" folder." );
819
827
}
828
+ if (buildIcon144 .getParentFile ().mkdirs ()) {
829
+ Util .copyFile (mode .getContentFile ("icons/" + ICON_144 ), buildIcon144 );
830
+ } else {
831
+ System .err .println ("Could not create \" drawable-xxhdpi\" folder." );
832
+ }
833
+ if (buildIcon192 .getParentFile ().mkdirs ()) {
834
+ Util .copyFile (mode .getContentFile ("icons/" + ICON_192 ), buildIcon192 );
835
+ } else {
836
+ System .err .println ("Could not create \" drawable-xxxhdpi\" folder." );
837
+ }
820
838
} catch (IOException e ) {
821
839
e .printStackTrace ();
822
840
//throw new SketchException("Could not get Android icons");
0 commit comments