class CapicuaGen::Balthazar::AndyIcLauncherFeature
Característica generadora para crear los iconos de una aplicación Android
Public Class Methods
new(values= {})
click to toggle source
Inicializa la característica
Calls superclass method
# File lib/CapicuaGenBalthazar/GUI/AndyIcLauncher/Source/andy_ic_launcher_feature.rb, line 39 def initialize(values= {}) super(values) # Configuro los tipos si estos no han sido configurados previamente self.types= [:catalog] if self.types.blank? set_template('ic_launcher_mipmap-xhdpi', Template.new(:file => 'ic_launcher_mipmap-xhdpi.png')) set_template('ic_launcher_mipmap-xxhdpi', Template.new(:file => 'ic_launcher_mipmap-xxhdpi.png')) set_template('ic_launcher_mipmap-xxxhdpi', Template.new(:file => 'ic_launcher_mipmap-xxxhdpi.png')) set_template('ic_launcher_mipmap-hdpi', Template.new(:file => 'ic_launcher_mipmap-hdpi.png')) set_template('ic_launcher_mipmap-mdpi', Template.new(:file => 'ic_launcher_mipmap-mdpi.png')) end
Public Instance Methods
configure_template_targets()
click to toggle source
Configura los objetivos de las platillas (despues de establecer el generador)
# File lib/CapicuaGenBalthazar/GUI/AndyIcLauncher/Source/andy_ic_launcher_feature.rb, line 55 def configure_template_targets set_template_target('ic_launcher_mipmap-mdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('mdpi', 'ic_launcher.png'), :copy_only => true)) set_template_target('ic_launcher_mipmap-hdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('hdpi', 'ic_launcher.png'), :copy_only => true)) set_template_target('ic_launcher_mipmap-xhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xhdpi', 'ic_launcher.png'), :copy_only => true)) set_template_target('ic_launcher_mipmap-xxhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xxhdpi', 'ic_launcher.png'), :copy_only => true)) set_template_target('ic_launcher_mipmap-xxxhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xxxhdpi', 'ic_launcher.png'), :copy_only => true)) end