ykcitool 0.4.10 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ade6c9be894cbaf72f231a5851ac67e28af8a2f5f44a1c500ab98dbb9237867
4
- data.tar.gz: c8d203e5cf75ab22b59345a4d277c75796933346963820758ef5a6fc2411f893
3
+ metadata.gz: 984b2c5dbaeb90bebb7270cf2dcf85ea11cd99c4233d2a90a60bae0fa8b61b28
4
+ data.tar.gz: cb30d6d617cb9f470a9a4e4ad6126e1b23aadaa71b68757afcb9c9d0206edf94
5
5
  SHA512:
6
- metadata.gz: a233ce17821a4c48ffec519819a634346b89112fc480b0e0a389b5afc632da6d0f8e2edf1c6103d123ace192612975903fa31782439142ff89f8cd3188a46040
7
- data.tar.gz: d2e5c63ea0aaa515e8525b96827010dcb2f5fa842d578f2282d6a5fc528bf78d3b9a3bf4c11b1e0b843e41d4a575c7acf8c01d979cbed09f8f659caad66b92be
6
+ metadata.gz: 3f193899711ee8158579a407e771f7ac6c9ac88f0ce0540a2f8113975d741adba5cc00f621464cfb3dc42aa59c0c0e889a64267c88e939317d56457f02d005bc
7
+ data.tar.gz: b7965b472bfb23a5c4fe897cf39168a87d446214217813103d6d38be303913830b8cf5d56f50d0f422e0058bcb8d46010227fede4a50d011108bda9b63698637
data/README.md CHANGED
@@ -12,6 +12,11 @@ iOS 通用打包工具的终端门户工具
12
12
  - [License](#license)
13
13
  - [建议](#建议)
14
14
 
15
+ ## 扩展工具
16
+
17
+ - 组件规范【[跳转](./ComponentStandard/ComponentStandard.md)】
18
+ - 组件模板工具 cocoapods-ykutility 【[跳转](https://rubygems.org/gems/cocoapods-ykutility)】
19
+
15
20
  ## Installation
16
21
 
17
22
  本指令集适用与ruby 2.7.5 ~ 3.0.3
data/bin/ykcitool CHANGED
@@ -14,7 +14,7 @@ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
14
14
  # require "pry"
15
15
  # Pry.start
16
16
  require 'interface'
17
- puts "call ykcitool:#{YKFastlane::VERSION}"
17
+ puts "call ykcitool:#{YKCitool::VERSION}"
18
18
 
19
19
  puts "ykcitool start"
20
- YKFastlane::Interface.start(ARGV)
20
+ YKCitool::Interface.start(ARGV)
@@ -3,7 +3,7 @@ require 'thor'
3
3
 
4
4
  require "ykfastlane/helper"
5
5
 
6
- module YKFastlane
6
+ module YKCitool
7
7
 
8
8
  class SubCommandBase < Thor
9
9
  class_option :verbose, :type => :boolean
@@ -71,7 +71,7 @@ module YKFastlane
71
71
  dict = {}
72
72
  dict.update(optionHash)
73
73
  if optionHash[:wxwork_access_token].blank?
74
- wxtoken = YKFastlane::Helper.load_config_value(YKFastlane::Helper::K_wx_access_token)
74
+ wxtoken = YKCitool::Helper.load_config_value(YKCitool::Helper::K_wx_access_token)
75
75
  dict.update({:wxwork_access_token => wxtoken})
76
76
  end
77
77
 
@@ -79,7 +79,7 @@ module YKFastlane
79
79
  command = "fastlane #{lane_name} #{option_str}" unless option_str.blank?
80
80
 
81
81
  command_pre = "export LANG=en_US.UTF-8 && export LANGUAGE=en_US.UTF-8 && export LC_ALL=en_US.UTF-8 && which ruby"
82
- command_pre << " && cd #{YKFastlane::Helper.fastlane_script()}"
82
+ command_pre << " && cd #{YKCitool::Helper.fastlane_script()}"
83
83
 
84
84
  executeCommand(command_pre, command, lane_name)
85
85
  end
@@ -3,15 +3,15 @@ require 'ykfastlane/version'
3
3
  require 'ykfastlane/tools'
4
4
  require 'ykfastlane/helper'
5
5
  require 'actions/archiveHelper'
6
- module YKFastlane
6
+ module YKCitool
7
7
 
8
- class Archive < YKFastlane::SubCommandBase
9
- include YKFastlane::ArchiveHelper
8
+ class Archive < YKCitool::SubCommandBase
9
+ include YKCitool::ArchiveHelper
10
10
 
11
11
  desc "display_product_path", "display archive output path"
12
12
 
13
13
  def display_product_path()
14
- YKFastlane::Tools.UI(YKARCHIVE_PRODUCT_PATH)
14
+ YKCitool::Tools.UI(YKARCHIVE_PRODUCT_PATH)
15
15
  end
16
16
 
17
17
  no_commands {
@@ -22,7 +22,7 @@ module YKFastlane
22
22
  K_archiveEnv_pgyer_api => options[:pgyer_api],
23
23
  K_archiveEnv_pgyer_user => options[:pgyer_user]
24
24
  }
25
- self.update_archive_map(YKFastlane::ArchiveHelper::K_archiveEnv_config_pgyer, pgyerinfo)
25
+ self.update_archive_map(YKCitool::ArchiveHelper::K_archiveEnv_config_pgyer, pgyerinfo)
26
26
  puts "archive update pgyer info success"
27
27
  end
28
28
 
@@ -30,7 +30,7 @@ module YKFastlane
30
30
  fir_info = {
31
31
  K_archiveEnv_firApiToken => options[:fir_api_token]
32
32
  }
33
- self.update_archive_map(YKFastlane::ArchiveHelper::K_archiveEnv_config_fir, fir_info)
33
+ self.update_archive_map(YKCitool::ArchiveHelper::K_archiveEnv_config_fir, fir_info)
34
34
  puts "archive update fir info success"
35
35
  end
36
36
 
@@ -39,7 +39,7 @@ module YKFastlane
39
39
  K_archiveEnv_tf_account => options[:apple_account],
40
40
  K_archiveEnv_tf_password => options[:apple_password]
41
41
  }
42
- self.update_archive_map(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf, tf_info)
42
+ self.update_archive_map(YKCitool::ArchiveHelper::K_archiveEnv_config_tf, tf_info)
43
43
  puts "archive update tf info success"
44
44
  end
45
45
  end
@@ -55,7 +55,7 @@ module YKFastlane
55
55
  def upload_tf()
56
56
  puts "upload_tf"
57
57
  if options[:user_name].blank? || options[:pass_word].blank?
58
- apple_info = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf)
58
+ apple_info = self.load_archive_config_dict(YKCitool::ArchiveHelper::K_archiveEnv_config_tf)
59
59
  options.update(apple_dict)
60
60
  end
61
61
 
@@ -70,6 +70,7 @@ module YKFastlane
70
70
 
71
71
  option :wxwork_access_token, :type => :string, :aliases => :w, :desc => '企业微信机器人 webhook中的key字段, 如果没有,则使用env中配置的机器人'
72
72
  option :note, :type => :string, :aliases => :n, :desc => '测试包发包信息'
73
+ option :branch_name,:required => false, :type => :string, :aliases => :b, :desc => '[可选] 分支名称,因为可能git只是浅拷贝,在项目目录使用 git 指令获取不到当前分支,所以提供了这个参数'
73
74
  option :xcworkspace, :type => :string, :aliases => :x, :desc => '.xcworkspace 文件相对于指令工作目录的相对路径, 如果.xcworkspace文件在工程根目录,则可以不传递此参数'
74
75
  option :cocoapods, :type => :numeric, :aliases => :c, :desc => '是否需要执行pod install, 默认不执行pod install 指令, 1:执行, 非1:不执行'
75
76
  option :flutter_directory, :type => :string, :aliases => :d, :desc => '如果有flutter混编, 此参数是 flutter项目的相对路径.'
@@ -77,7 +78,7 @@ module YKFastlane
77
78
  def tf()
78
79
  puts "archive_tf"
79
80
  if options[:user_name].blank? || options[:pass_word].blank?
80
- apple_dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_tf)
81
+ apple_dict = self.load_archive_config_dict(YKCitool::ArchiveHelper::K_archiveEnv_config_tf)
81
82
  if apple_dict != nil && apple_dict.blank?() == false
82
83
  options.update(apple_dict)
83
84
  end
@@ -93,6 +94,7 @@ module YKFastlane
93
94
  option :pgyer_user, :type => :string, :aliases => :u, :desc => '蒲公英平台的user key; 如果不传,会使用全局配置的 user key'
94
95
  option :wxwork_access_token, :type => :string, :aliases => :w, :desc => '企业微信机器人 webhook中的key字段, 如果没有,则使用env中配置的机器人'
95
96
  option :note, :type => :string, :aliases => :n, :desc => '测试包发包信息'
97
+ option :branch_name,:required => false, :type => :string, :aliases => :b, :desc => '[可选] 分支名称,因为可能git只是浅拷贝,在项目目录使用 git 指令获取不到当前分支,所以提供了这个参数'
96
98
  option :xcworkspace, :type => :string, :aliases => :x, :desc => '.xcworkspace 文件相对于指令工作目录的相对路径, 如果.xcworkspace文件在工程根目录,则可以不传递此参数'
97
99
  option :cocoapods, :type => :numeric, :aliases => :c, :desc => '是否需要执行pod install, 默认不执行pod install 指令, 1:执行, 非1:不执行'
98
100
  option :flutter_directory, :type => :string, :aliases => :d, :desc => '如果有flutter混编, 此参数是 flutter项目的相对路径.'
@@ -102,7 +104,7 @@ module YKFastlane
102
104
  puts "archive_pgyer"
103
105
 
104
106
  if options[:pgyer_user].blank? || options[:pgyer_api].blank?
105
- dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_pgyer)
107
+ dict = self.load_archive_config_dict(YKCitool::ArchiveHelper::K_archiveEnv_config_pgyer)
106
108
  options.update(dict)
107
109
  end
108
110
 
@@ -115,6 +117,7 @@ module YKFastlane
115
117
  option :fir_api_token, :type => :string, :aliases => :f, :desc => 'Fir平台api token'
116
118
  option :wxwork_access_token, :type => :string, :aliases => :w, :desc => '企业微信机器人 webhook中的key字段, 如果没有,则使用env中配置的机器人'
117
119
  option :note, :type => :string, :aliases => :n, :desc => '测试包发包信息'
120
+ option :branch_name,:required => false, :type => :string, :aliases => :b, :desc => '[可选] 分支名称,因为可能git只是浅拷贝,在项目目录使用 git 指令获取不到当前分支,所以提供了这个参数'
118
121
  option :xcworkspace, :type => :string, :aliases => :x, :desc => '.xcworkspace 文件相对于指令工作目录的相对路径, 如果.xcworkspace文件在工程根目录,则可以不传递此参数'
119
122
  option :cocoapods, :type => :numeric, :aliases => :c, :desc => '是否需要执行pod install, 默认不执行pod install 指令, 1:执行, 非1:不执行'
120
123
  option :flutter_directory, :type => :string, :aliases => :d, :desc => '如果有flutter混编, 此参数是 flutter项目的相对路径.'
@@ -123,10 +126,12 @@ module YKFastlane
123
126
  def fir()
124
127
  puts "archive_fir"
125
128
  if options[:fir_api_token].blank?
126
- dict = self.load_archive_config_dict(YKFastlane::ArchiveHelper::K_archiveEnv_config_fir)
129
+ dict = self.load_archive_config_dict(YKCitool::ArchiveHelper::K_archiveEnv_config_fir)
127
130
  options.update(dict)
128
131
  end
129
132
 
133
+ options[:yk_ipa_upload_api] = self.load_archive_config_dict(YKCitool::ArchiveHelper::K_archiveEnv_config_fir)
134
+
130
135
  code = YKFastlaneExecute.executeFastlaneLane("archive_fir", options)
131
136
  exit(code) unless code == 0
132
137
  end
@@ -1,12 +1,12 @@
1
1
  require 'ykfastlane/version'
2
2
  require 'ykfastlane/tools'
3
3
  require 'ykfastlane/helper'
4
- module YKFastlane
4
+ module YKCitool
5
5
 
6
6
  module ArchiveHelper
7
7
  YKARCHIVE_PRODUCT_PATH = File.expand_path(File.join(Dir.home, "iosYeahArchive"))
8
8
 
9
- YKARCHIVE_ENV_PATH = File.join(YKFastlane::YKFASTLANE_ENV_PATH, 'archive_config', 'archive_config.yml')
9
+ YKARCHIVE_ENV_PATH = File.join(YKCitool::YKFASTLANE_ENV_PATH, 'archive_config', 'archive_config.yml')
10
10
 
11
11
  K_archiveEnv_config_tf = :test_flight
12
12
  K_archiveEnv_tf_account = :user_name
@@ -20,20 +20,20 @@ module YKFastlane
20
20
  K_archiveEnv_pgyer_api = :pgyer_api
21
21
 
22
22
  def self.update_archive_map(key, value)
23
- YKFastlane::Tools.update_yml("", YKARCHIVE_ENV_PATH, key, value)
23
+ YKCitool::Tools.update_yml("", YKARCHIVE_ENV_PATH, key, value)
24
24
  end
25
25
 
26
26
  def update_archive_map(key, value)
27
- YKFastlane::Tools.update_yml("", YKARCHIVE_ENV_PATH, key, value)
27
+ YKCitool::Tools.update_yml("", YKARCHIVE_ENV_PATH, key, value)
28
28
  end
29
29
 
30
30
  def load_archive_config_dict(platform_name)
31
- dict = YKFastlane::Tools.load_yml_value(YKARCHIVE_ENV_PATH, platform_name)
31
+ dict = YKCitool::Tools.load_yml_value(YKARCHIVE_ENV_PATH, platform_name)
32
32
  return dict == nil ? {} : dict
33
33
  end
34
34
 
35
35
  def list_user_map()
36
- YKFastlane::Tools.display_yml(YKARCHIVE_ENV_PATH)
36
+ YKCitool::Tools.display_yml(YKARCHIVE_ENV_PATH)
37
37
  end
38
38
 
39
39
  end
@@ -3,8 +3,13 @@ require 'ykfastlane/helper'
3
3
  require 'thor'
4
4
  require 'openssl'
5
5
 
6
- module YKFastlane
7
- class Certificate < YKFastlane::SubCommandBase
6
+ module YKCitool
7
+ class Certificate < YKCitool::SubCommandBase
8
+
9
+ desc "list_config", "List all certificate and profiles info"
10
+ def list_config()
11
+ self.list_details_execute()
12
+ end
8
13
 
9
14
  desc "sync_apple_profile", "sync and install mobile provision file from apple developer service"
10
15
  option :user_name, :require => true, :type => :string, :aliases => :u, :desc => 'apple account'
data/lib/actions/git.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'actions/YKFastlaneExecute'
2
2
 
3
- module YKFastlane
4
- class Git < YKFastlane::SubCommandBase
3
+ module YKCitool
4
+ class Git < YKCitool::SubCommandBase
5
5
  desc "analysis_commit", "analysis git commit"
6
6
  option :path, :require => false, :type => :string, :aliases => :p, :desc => 'the path should be analysised'
7
7
 
data/lib/actions/init.rb CHANGED
@@ -5,8 +5,8 @@ require 'json'
5
5
  require 'actions/YKFastlaneExecute'
6
6
  require 'actions/archiveHelper'
7
7
 
8
- module YKFastlane
9
- class Init < YKFastlane::SubCommandBase
8
+ module YKCitool
9
+ class Init < YKCitool::SubCommandBase
10
10
  include Helper
11
11
 
12
12
  desc "execute_configs", "execute configs that user defines"
@@ -34,7 +34,7 @@ module YKFastlane
34
34
 
35
35
  option :wx_access_token, :aliases => :t, :type => :string, :desc => "enterprise wechat robot token"
36
36
 
37
- option :profile_remote_url, :aliases => :r, :require => false, :type => :string, :desc => "profile & certificate git remote url, example:#{YKFastlane::Helper.default_certificate_git_remote}"
37
+ option :profile_remote_url, :aliases => :r, :require => false, :type => :string, :desc => "profile & certificate git remote url, example:#{YKCitool::Helper.default_certificate_git_remote}"
38
38
 
39
39
  option :pgyer_user, :aliases => :u, :type => :string, :required => false, :desc => 'pgyer 平台 user'
40
40
  option :pgyer_api, :aliases => :a, :type => :string, :required => false, :desc => 'pgyer 平台 api, 配置链接: \033[0;32m https://appleid.apple.com/account/manage \e[0m'
@@ -49,9 +49,9 @@ module YKFastlane
49
49
  require 'actions/archive'
50
50
  puts("all_config:#{options}")
51
51
 
52
- YKFastlane::Init.new().config_execute(options)
53
- YKFastlane::Archive.new().platform_edit_user_execute(options)
54
- YKFastlane::Certificate.new().sync_git_execute(options) unless options[:profile_remote_url].blank?
52
+ YKCitool::Init.new().config_execute(options)
53
+ YKCitool::Archive.new().platform_edit_user_execute(options)
54
+ YKCitool::Certificate.new().sync_git_execute(options) unless options[:profile_remote_url].blank?
55
55
  end
56
56
 
57
57
  desc 'define_fast_execute_path', "指定fastlane文件的路径,此处是为了调试fastlane脚本"
@@ -69,11 +69,11 @@ module YKFastlane
69
69
  require 'actions/certificate'
70
70
  require 'actions/archive'
71
71
 
72
- YKFastlane::Certificate.new().list_details_execute()
72
+ YKCitool::Certificate.new().list_details_execute()
73
73
 
74
- YKFastlane::Archive.new().list_platform_user_execute()
74
+ YKCitool::Archive.new().list_platform_user_execute()
75
75
  Helper.display_config_yml
76
- YKFastlane::Archive.new().list_profiles_execute()
76
+ YKCitool::Archive.new().list_profiles_execute()
77
77
  end
78
78
 
79
79
  no_commands {
@@ -82,13 +82,13 @@ module YKFastlane
82
82
 
83
83
  if options[:all] == true
84
84
  self.sync_script_execute({})
85
- YKFastlane::Certificate.new().sync_git_execute({})
85
+ YKCitool::Certificate.new().sync_git_execute({})
86
86
  else
87
87
  if options[:script] == true
88
88
  self.sync_script_execute({})
89
89
  end
90
90
  if options[:profile] == true
91
- YKFastlane::Certificate.new().sync_git_execute({})
91
+ YKCitool::Certificate.new().sync_git_execute({})
92
92
  end
93
93
  end
94
94
  end
@@ -105,7 +105,7 @@ module YKFastlane
105
105
  p_temp = p + "_temp"
106
106
  FileUtils.remove_dir(p_temp, force: true)
107
107
 
108
- cloneResult = YKFastlane::Tools.clone_git_repository(fastfile_remote, p_temp)
108
+ cloneResult = YKCitool::Tools.clone_git_repository(fastfile_remote, p_temp)
109
109
  if cloneResult != 0
110
110
  exit cloneResult
111
111
  end
@@ -135,7 +135,7 @@ module YKFastlane
135
135
  end
136
136
 
137
137
  Helper.update_config('', Helper::K_wx_access_token, options[:wx_access_token]) unless options[:wx_access_token].blank?
138
- YKFastlane::ArchiveHelper.update_archive_map(Helper::K_wx_access_token, options[:wx_access_token]) unless options[:wx_access_token].blank?
138
+ YKCitool::ArchiveHelper.update_archive_map(Helper::K_wx_access_token, options[:wx_access_token]) unless options[:wx_access_token].blank?
139
139
  Helper.display_config_yml
140
140
  end
141
141
  }
data/lib/actions/pod.rb CHANGED
@@ -2,8 +2,8 @@ require 'actions/YKFastlaneExecute'
2
2
  require 'ykfastlane/helper'
3
3
  require 'rails'
4
4
 
5
- module YKFastlane
6
- class Pod < YKFastlane::SubCommandBase
5
+ module YKCitool
6
+ class Pod < YKCitool::SubCommandBase
7
7
  desc 'github_transfer', '迁移github三方库到移开gitlab.'
8
8
  long_desc <<-LONGDESC
9
9
  1. 需要在移开gitlab创建一个同名的git仓库.
@@ -18,11 +18,11 @@ module YKFastlane
18
18
  def github_transfer()
19
19
  puts "github_pod_transfer"
20
20
  if options[:wxwork_access_token].blank?
21
- wxtoken = YKFastlane::Helper.load_config_value(YKFastlane::Helper::K_wx_access_token)
21
+ wxtoken = YKCitool::Helper.load_config_value(YKCitool::Helper::K_wx_access_token)
22
22
  options[:wxwork_access_token] = wxtoken unless wxtoken.blank?
23
23
  end
24
24
 
25
- code = Ykfastlane::YKFastlaneExecute.executeFastlaneLane("github_pod_transfer", options)
25
+ code = YKCitool::YKFastlaneExecute.executeFastlaneLane("github_pod_transfer", options)
26
26
  exit(code)
27
27
  end
28
28
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ require 'ykfastlane/helper'
3
+ require 'rails'
4
+
5
+ module YKCitool
6
+ class Module < YKCitool::SubCommandBase
7
+ include Helper
8
+
9
+ desc "standard", "创建标准组件"
10
+ option :name, :required => true, :type => :string, :aliases => :n, :desc => 'module name'
11
+ option :language, :required => true, :type => :string, :aliases => :l, :desc => 'module language objc/swift'
12
+ option :path, :required => false, :type => :string, :aliases => :p, :desc => 'module path'
13
+ def standard()
14
+
15
+ end
16
+ end
17
+ end
data/lib/interface.rb CHANGED
@@ -6,16 +6,18 @@ require 'actions/YKFastlaneExecute'
6
6
  require 'actions/archive'
7
7
  require 'actions/pod'
8
8
  require 'actions/init'
9
+ require 'createPod/module'
9
10
  require 'actions/certificate'
10
11
  require 'thor'
11
12
 
12
- module YKFastlane
13
+ module YKCitool
13
14
  class Interface < Thor
14
15
  include Thor::Actions
15
16
  require_relative 'actions/YKFastlaneExecute'
16
- include YKFastlane::Helper
17
+ include YKCitool::Helper
17
18
 
18
19
  class_option :verbose, :type => :boolean
20
+
19
21
  def self.exit_on_failure?
20
22
  true
21
23
  end
@@ -24,33 +26,38 @@ module YKFastlane
24
26
  #
25
27
  # def lanes()
26
28
  # puts "lanes"
27
- # code = YKFastlane::YKFastlaneExecute.executeFastlaneLane("lanes", options)
29
+ # code = YKCitool::YKFastlaneExecute.executeFastlaneLane("lanes", options)
28
30
  # exit(code)
29
31
  # end
30
32
 
31
33
  desc "archive", "archive functions"
32
- subcommand "archive", YKFastlane::Archive
34
+ subcommand "archive", YKCitool::Archive
33
35
 
34
36
  # desc "pod", "cocoapods functions"
35
- # subcommand "pod", YKFastlane::Pod
37
+ # subcommand "pod", YKCitool::Pod
36
38
 
37
39
  desc "init", "init ykcitool"
38
- subcommand "init", YKFastlane::Init
40
+ subcommand "init", YKCitool::Init
39
41
 
40
42
  desc "certificate", "manager ios certificate & profile files"
41
- subcommand "certificate", YKFastlane::Certificate
43
+ subcommand "certificate", YKCitool::Certificate
44
+
45
+ desc "module", "create module"
46
+ subcommand "module", YKCitool::Module
47
+
48
+ desc "update", "update ykcitool"
42
49
 
43
- desc "update", "update ykcitool"
44
50
  def update()
45
51
  require 'actions/YKFastlaneExecute'
46
- code = YKFastlane::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "gem install ykcitool", "")
52
+ code = YKCitool::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "gem install ykcitool", "")
47
53
  exit! code unless code == 0
48
54
  end
49
55
 
50
56
  desc "uninstall", "uninstall self"
57
+
51
58
  def uninstall()
52
59
  require 'actions/YKFastlaneExecute'
53
- code = YKFastlane::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "", "")
60
+ code = YKCitool::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "", "")
54
61
  exit! code unless code == 0
55
62
  end
56
63
 
@@ -2,16 +2,16 @@ require 'yaml'
2
2
  require 'json'
3
3
  require 'ykfastlane/tools'
4
4
  require 'ykfastlane/version'
5
- module YKFastlane
5
+ module YKCitool
6
6
  module Helper
7
- include YKFastlane::Tools
7
+ include YKCitool::Tools
8
8
  '' '脚本当前工作路径' ''
9
9
  YKRUNING_PATH = File.expand_path(Dir.pwd)
10
10
  '' '配置文件放置路径' ''
11
- YKCONFIG_PATH = File.expand_path(File.join(YKFastlane::YKFASTLANE_ENV_PATH, 'evnConfig.yml'))
11
+ YKCONFIG_PATH = File.expand_path(File.join(YKCitool::YKFASTLANE_ENV_PATH, 'evnConfig.yml'))
12
12
 
13
13
  '' 'fastlane脚本放置路径' ''
14
- YKFastlne_SCRIPT_PATH = File.expand_path(File.join(YKFastlane::YKFASTLANE_ENV_PATH, 'ykfastlane_script'))
14
+ YKFastlne_SCRIPT_PATH = File.expand_path(File.join(YKCitool::YKFASTLANE_ENV_PATH, 'ykfastlane_script'))
15
15
 
16
16
  def self.load_config_yml()
17
17
  Tools.load_yml(Helper::YKCONFIG_PATH)
@@ -1,7 +1,7 @@
1
1
  require 'yaml'
2
2
  require 'json'
3
3
 
4
- module YKFastlane
4
+ module YKCitool
5
5
 
6
6
  module Tools
7
7
  def self.green(string)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module YKFastlane
4
- VERSION = "0.4.10"
3
+ module YKCitool
4
+ VERSION = "0.4.12"
5
5
  YKFASTLANE_ENV_PATH = File.expand_path(File.join(Dir.home, '.ykfastlane_config'))
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ykcitool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - stephen.chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -154,6 +154,7 @@ files:
154
154
  - lib/actions/git.rb
155
155
  - lib/actions/init.rb
156
156
  - lib/actions/pod.rb
157
+ - lib/createPod/module.rb
157
158
  - lib/interface.rb
158
159
  - lib/ykfastlane/helper.rb
159
160
  - lib/ykfastlane/tools.rb
@@ -177,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  - !ruby/object:Gem::Version
178
179
  version: '0'
179
180
  requirements: []
180
- rubygems_version: 3.2.3
181
+ rubygems_version: 3.1.6
181
182
  signing_key:
182
183
  specification_version: 4
183
184
  summary: iOS 打包工具.