fastlane-plugin-zhuixi_build_app 0.1.5 → 0.1.7

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: 0fb0e23ca98365bd43e98db2c896b4dc4b3bad85b90273012c100177a7d976fb
4
- data.tar.gz: 7d90437eb89072b7c1e6340d129f5a6039537c5850a2e9f7e7f72d04cc920931
3
+ metadata.gz: e35b5a597c94cdfdb7ccf8ca3666dc93ac5cc806e601ffd95a6d000135739356
4
+ data.tar.gz: cb4f08d916fe9145ef62e50a4201f3bf3d0ca0e396411be47cf8fa71ca2edc78
5
5
  SHA512:
6
- metadata.gz: 0fa07c52012ef1b01cbe8ecba5426db087664bb1d6799ca07a5c80ffddbdedcd7888a2043b85427c9e2e756f67302cb200180ac74fe66a2676ad3c502f6211be
7
- data.tar.gz: b0a40e118bb587ddca6f821a48cc3b65c80c9ebdbe9cc4bbdaf32262e92a1b5d6a71265b658a5f619de1404ef926f1eb8d413569ba76bc34dfc51928b4a077d3
6
+ metadata.gz: d5316538c8adac306b0b6073e1b1f3b2ac5d7bbdd59f1fbddfe5253ce39d369d394978e4540d104f9fe70e05fb5e5dc01034810848a318ceb7289c52cb744bea
7
+ data.tar.gz: 05c9bd2c5c6b69c240ad141e08833fa14117f0f4a6a952b24db66d86d80434aaa8d05f387cb206b03e40ce494b6357e6a0bbc08d4917488332379139ac51ab7a
@@ -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,23 @@ 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
28
+ def self.is_supported?(platform)
29
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
30
+ # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
31
+ #
32
+ # [:ios, :mac, :android].include?(platform)
33
+ true
34
+ end
17
35
  end
18
36
  end
19
37
  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.7"
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedSevenMale