Class: Pindo::TaskSystem::AndroidDevBuildTask

Inherits:
BuildTask show all
Includes:
Githelper
Defined in:
lib/pindo/module/task/model/build/android_dev_build_task.rb

Overview

Android Dev 模式构建任务使用 Debug 模式编译 Android 工程

Direct Known Subclasses

AndroidReleaseBuildTask

Instance Attribute Summary

Attributes inherited from BuildTask

#mode, #output_path, #platform, #project_path

Attributes inherited from PindoTask

#callbacks_setup, #context, #created_at, #dependencies, #error, #finished_at, #id, #metadata, #name, #priority, #result, #retry_count, #retry_delay, #retry_mode, #started_at, #status, #type

Instance Method Summary collapse

Methods included from Githelper

#add_branch, #add_tag, #add_tag_with_check, #clone_clang_repo, #clone_devclang_repo, #clone_pindo_common_config_repo, #clone_pindo_env_config_repo, #clong_buildconfig_repo, #get_repo_base_name, #getcode_to_dir, #git_addpush_repo, #git_latest_commit_id, #git_root_directory, #is_git_directory?, #local_branch_exists?, #local_tag_exists?, #prepare_gitenv, #process_need_add_files, #remote_branch_exists?, #remote_tag_exists?, #remove_branch, #remove_tag

Methods included from Executable

capture_command, #executable, execute_command, which, which!

Methods inherited from BuildTask

create_android_task, create_ios_task, create_task, create_web_task, default_retry_count, default_retry_delay, default_retry_mode, normalize_mode, normalize_platform, task_type

Methods inherited from PindoTask

#before_retry, #cancel, #cancelled?, #check_cancelled!, default_retry_count, default_retry_delay, default_retry_mode, #do_task, #execution_time, #finished?, #on, #reset_for_retry, #retryable?, #running?, #should_retry?, task_type, #validate

Constructor Details

#initialize(options = {}) ⇒ AndroidDevBuildTask

Returns a new instance of AndroidDevBuildTask.



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/pindo/module/task/model/build/android_dev_build_task.rb', line 16

def initialize(options = {})
  @bundle_name = options[:bundle_name]
  @proj_name = options[:proj_name]
  @upload_flag = options[:upload] || false
  @send_flag = options[:send] || false

  # 接收外部传入的 JPS 配置
  @app_info_obj = options[:app_info_obj]
  @workflow_info = options[:workflow_info]

  super(:android, :dev, options)
end