fastlane-plugin-zhuixi_build_app 0.1.5 → 0.1.6

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: 0fb0e23ca98365bd43e98db2c896b4dc4b3bad85b90273012c100177a7d976fb
4
- data.tar.gz: 7d90437eb89072b7c1e6340d129f5a6039537c5850a2e9f7e7f72d04cc920931
3
+ metadata.gz: 1ffb99373c764043027ea9d2411e7ffd94f6e4ac8be257f60f68a0af7f1e84ab
4
+ data.tar.gz: 40d2afbbc5d185cda45208d0563a85187500d41f1fbe72408a438c9be9ee3ecb
5
5
  SHA512:
6
- metadata.gz: 0fa07c52012ef1b01cbe8ecba5426db087664bb1d6799ca07a5c80ffddbdedcd7888a2043b85427c9e2e756f67302cb200180ac74fe66a2676ad3c502f6211be
7
- data.tar.gz: b0a40e118bb587ddca6f821a48cc3b65c80c9ebdbe9cc4bbdaf32262e92a1b5d6a71265b658a5f619de1404ef926f1eb8d413569ba76bc34dfc51928b4a077d3
6
+ metadata.gz: 20fee2373a5c18157e2860986807b9abf0c1d0566d3e94be23bfbde14ffd0f439c6e62825e4291810a33b7c6737d0c0dadab1488234c7468061e71ca34d9e4d8
7
+ data.tar.gz: b747b31452e87bbaffc2ef917256dfa9f940741da3a5531caa9c66204cc81c2e62124415e557f535056acfebd49e95c3087bdf13c2ea8effdde560216e73cdfe
@@ -3,6 +3,7 @@ module Fastlane
3
3
  class ReadConfigAction < Action
4
4
  def self.run(params)
5
5
  # 读取配置文件
6
+ puts "ddd"
6
7
  app_file_path = params[:app_file_path]
7
8
  app_file = File.open(app_file_path).read
8
9
  app_file_config = eval(app_file)
@@ -14,6 +15,16 @@ module Fastlane
14
15
  @ori_xcodeproj_path = app_file_config[:ori_xcodeproj_path]
15
16
  UI.message("读取配置成功!")
16
17
  end
18
+
19
+ def self.available_options
20
+ [
21
+ FastlaneCore::ConfigItem.new(key: :app_file_path,
22
+ env_name: "ZHUIXI_BUILD_APP_YOUR_OPTION",
23
+ description: "ReadConfigAction",
24
+ optional: true,
25
+ type: String),
26
+ ]
27
+ end
17
28
  end
18
29
  end
19
30
  end
@@ -5,10 +5,8 @@ module Fastlane
5
5
  module Actions
6
6
  class ZhuixiBuildAppAction < Action
7
7
  def self.run(params)
8
- # 触发内部 lane
9
- Fastlane::LaneManager.cruise_lane(
10
- "build_app", # 内部 lane 名
11
- app_file_path: params, # 参数
8
+ other_action.read_config(
9
+ app_file_path: params[:app_file_path],
12
10
  )
13
11
  end
14
12
 
@@ -31,12 +29,12 @@ module Fastlane
31
29
 
32
30
  def self.available_options
33
31
  [
34
- # FastlaneCore::ConfigItem.new(key: :your_option,
35
- # env_name: "ZHUIXI_BUILD_APP_YOUR_OPTION",
36
- # description: "A description of your option",
37
- # optional: false,
38
- # type: String)
39
- ]
32
+ FastlaneCore::ConfigItem.new(key: :app_file_path,
33
+ env_name: "ZHUIXI_BUILD_APP_YOUR_OPTION",
34
+ description: "A description of your option",
35
+ optional: true,
36
+ type: String),
37
+ ]
40
38
  end
41
39
 
42
40
  def self.is_supported?(platform)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ZhuixiBuildApp
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
- require 'fastlane/plugin/zhuixi_build_app/version'
1
+ require "fastlane/plugin/zhuixi_build_app/version"
2
2
 
3
3
  module Fastlane
4
4
  module ZhuixiBuildApp
5
5
  # Return all .rb files inside the "actions" and "helper" directory
6
6
  def self.all_classes
7
- Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
7
+ Dir[File.expand_path("**/{actions,helper}/*.rb", File.dirname(__FILE__))]
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-zhuixi_build_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedSevenMale