Commit dc8e6f4b authored by Matyáš Latner's avatar Matyáš Latner

#15 Different icons for release and debug builds

parent c5ec924e
......@@ -7,9 +7,15 @@ android {
java.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
res.srcDirs = ['res/main']
assets.srcDirs = ['assets']
}
release {
res.srcDirs = ['res/release']
}
debug {
res.srcDirs = ['res/debug']
}
instrumentTest.setRoot('tests')
}
......
android/ic_launcher-web.png

21.6 KB | W: | H:

android/ic_launcher-web.png

76.5 KB | W: | H:

android/ic_launcher-web.png
android/ic_launcher-web.png
android/ic_launcher-web.png
android/ic_launcher-web.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -15,18 +15,36 @@ public class DesktopLauncher {
public static final String VERSION_NAME_MANIFEST_ATTRIBUTE = "Version-Name";
public static final String APPLICATION_ID_MANIFEST_ATTRIBUTE = "Application-Id";
public static final String DESKTOP_ICON_PATH = "icon/";
public static final String DESKTOP_ICON_16 = DESKTOP_ICON_PATH + "desktop_icon_16.png";
public static final String DESKTOP_ICON_32 = DESKTOP_ICON_PATH + "desktop_icon_32.png";
public static final String DESKTOP_ICON_128 = DESKTOP_ICON_PATH + "desktop_icon_128.png";
public static final String DESKTOP_ICON_DEBUG_16 = DESKTOP_ICON_PATH + "desktop_icon_debug_16.png";
public static final String DESKTOP_ICON_DEBUG_32 = DESKTOP_ICON_PATH + "desktop_icon_debug_32.png";
public static final String DESKTOP_ICON_DEBUG_128 = DESKTOP_ICON_PATH + "desktop_icon_debug_128.png";
public static void main(String[] arg) {
String buildType = loadAttributeFromManifest(BUILD_VARIANT_MANIFEST_ATTRIBUTE);
String versionName = loadAttributeFromManifest(VERSION_NAME_MANIFEST_ATTRIBUTE);
String applicationId = loadAttributeFromManifest(APPLICATION_ID_MANIFEST_ATTRIBUTE);
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.resizable = false;
config.width = 1280;
config.height = 800;
config.addIcon("desktop_icon.png", Files.FileType.Internal);
new LwjglApplication(new Tablexia(buildType, Locale.getDefault(), versionName, applicationId), config);
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.resizable = false;
config.width = 1280;
config.height = 800;
if (buildType == null || buildType.equals("debug")) {
config.addIcon(DESKTOP_ICON_DEBUG_16, Files.FileType.Internal);
config.addIcon(DESKTOP_ICON_DEBUG_32, Files.FileType.Internal);
config.addIcon(DESKTOP_ICON_DEBUG_128, Files.FileType.Internal);
} else if (buildType.equals("release")) {
config.addIcon(DESKTOP_ICON_16, Files.FileType.Internal);
config.addIcon(DESKTOP_ICON_32, Files.FileType.Internal);
config.addIcon(DESKTOP_ICON_128, Files.FileType.Internal);
}
new LwjglApplication(new Tablexia(buildType, Locale.getDefault(), versionName, applicationId), config);
}
private static String loadAttributeFromManifest(String attributeName) {
......
ios/data/Icon-72.png

7.08 KB | W: | H:

ios/data/Icon-72.png

8.44 KB | W: | H:

ios/data/Icon-72.png
ios/data/Icon-72.png
ios/data/Icon-72.png
ios/data/Icon-72.png
  • 2-up
  • Swipe
  • Onion skin
ios/data/Icon-72@2x.png

21.6 KB | W: | H:

ios/data/Icon-72@2x.png

23.2 KB | W: | H:

ios/data/Icon-72@2x.png
ios/data/Icon-72@2x.png
ios/data/Icon-72@2x.png
ios/data/Icon-72@2x.png
  • 2-up
  • Swipe
  • Onion skin
ios/data/Icon.png

4.83 KB | W: | H:

ios/data/Icon.png

6.42 KB | W: | H:

ios/data/Icon.png
ios/data/Icon.png
ios/data/Icon.png
ios/data/Icon.png
  • 2-up
  • Swipe
  • Onion skin
ios/data/Icon@2x.png

14.9 KB | W: | H:

ios/data/Icon@2x.png

18.8 KB | W: | H:

ios/data/Icon@2x.png
ios/data/Icon@2x.png
ios/data/Icon@2x.png
ios/data/Icon@2x.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment