lib/susanoo/cli/project_interface/run.rb in susanoo-0.13.2 vs lib/susanoo/cli/project_interface/run.rb in susanoo-0.14.0
- old
+ new
@@ -9,9 +9,15 @@
map 'r' => :run_in
desc 'run PLATFORM', 'Run application on PLATFORM.'
method_option :release, default: false
def run_in(platform = :android)
+ debug_flag = '--debug'
+ debug_flag = '--release' if options[:release]
+
+ Susanoo::Project.debug = false
+ Susanoo::Project.debug = true if debug_flag == '--debug'
+
# Build the project first
build
inside Susanoo::Project.path do
debug_flag = '--debug'