@@ -763,6 +763,8 @@ private void writeLocalProps(final File file) {
763763 writer .close ();
764764 }
765765
766+ static final String ICON_192 = "icon-192.png" ;
767+ static final String ICON_144 = "icon-144.png" ;
766768 static final String ICON_96 = "icon-96.png" ;
767769 static final String ICON_72 = "icon-72.png" ;
768770 static final String ICON_48 = "icon-48.png" ;
@@ -783,18 +785,24 @@ private void writeRes(File resFolder,
783785 File localIcon48 = new File (sketchFolder , ICON_48 );
784786 File localIcon72 = new File (sketchFolder , ICON_72 );
785787 File localIcon96 = new File (sketchFolder , ICON_96 );
788+ File localIcon144 = new File (sketchFolder , ICON_144 );
789+ File localIcon192 = new File (sketchFolder , ICON_192 );
786790
787791// File drawableFolder = new File(resFolder, "drawable");
788792// drawableFolder.mkdirs()
793+ File buildIcon36 = new File (resFolder , "drawable-ldpi/icon.png" );
789794 File buildIcon48 = new File (resFolder , "drawable/icon.png" );
790- File buildIcon36 = new File (resFolder , "drawable-ldpi/icon.png" );
791795 File buildIcon72 = new File (resFolder , "drawable-hdpi/icon.png" );
792796 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" );
793799
794800 if (!localIcon36 .exists () &&
795801 !localIcon48 .exists () &&
796802 !localIcon72 .exists () &&
797- !localIcon96 .exists ()) {
803+ !localIcon96 .exists () &&
804+ !localIcon144 .exists () &&
805+ !localIcon192 .exists ()) {
798806 try {
799807 // if no icons are in the sketch folder, then copy all the defaults
800808 if (buildIcon36 .getParentFile ().mkdirs ()) {
@@ -817,6 +825,16 @@ private void writeRes(File resFolder,
817825 } else {
818826 System .err .println ("Could not create \" drawable-xhdpi\" folder." );
819827 }
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+ }
820838 } catch (IOException e ) {
821839 e .printStackTrace ();
822840 //throw new SketchException("Could not get Android icons");
0 commit comments