Module: FIR::BuildApk

Included in:
Util::ClassMethods
Defined in:
lib/fir/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
# File 'lib/fir/util/build_apk.rb', line 6

def build_apk(*args, options)
  logger.warn "build 在 fir-cli 即将过期, 推荐使用 gradlew 打包 apk文件后 后再使用 fir 工具上传生成的apk 文件"
  initialize_build_common_options(args, options)
  set_flavor(options)

  Dir.chdir(@build_dir)
  @build_cmd = initialize_apk_build_cmd

  logger_info_and_run_build_command

  output_apk
  publish_build_app(options) if options.publish?

  logger_info_blank_line
end