fastlane-plugin-zhuixi_build_app 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03b318099df889a86cb6292cd2f8d748df632003a36029c0510bae4f4213a426
4
- data.tar.gz: eb0381f106e696863fe28d6f8757f43ba3da36bff61a3b3cdaaafda266c95df5
3
+ metadata.gz: 1ffb99373c764043027ea9d2411e7ffd94f6e4ac8be257f60f68a0af7f1e84ab
4
+ data.tar.gz: 40d2afbbc5d185cda45208d0563a85187500d41f1fbe72408a438c9be9ee3ecb
5
5
  SHA512:
6
- metadata.gz: 6e0e7f460b9addbd283d0ea9ff554f2858262db457e0bc71fc582043482cb58eb8b73e70de370dff38da1a9fa19563adcdbda9122832eaca03ef3cf5b6d76b8c
7
- data.tar.gz: 343c16780d9bdc835ae0090469601d774c9a02caba737783e3073d228ce740fd509628ffb4cfc3d5867b9f01b3469d242b8e93efc906499eec689c145491bcf0
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.4"
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.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedSevenMale