Module: Flappy::BuildApk

Included in:
Util::ClassMethods
Defined in:
lib/flappy/util/build_apk.rb

Instance Method Summary collapse

Instance Method Details

#build_apk(*args, options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/flappy/util/build_apk.rb', line 6

def build_apk(*args, options)

  set_flavor(options)
  # check_not_set_flavor

  initialize_build_common_options(args, options)

  Dir.chdir(@build_dir)
  File.new(File.join("#{@build_dir}","dependencies.txt"), "w")
  @build_cmd = initialize_apk_build_cmd

  logger_info_and_run_build_command

  # temp_cmd = initialize_get_dependencies_cmd;
  # logger_info_and_get_dependencies_command temp_cmd

  output_apk
  publish_build_app(options) if options.publish?

  logger_info_blank_line
end