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 +4 -4
- data/lib/fastlane/plugin/zhuixi_build_app/actions/read_config_action.rb +18 -0
- data/lib/fastlane/plugin/zhuixi_build_app/actions/zhuixi_build_app_action.rb +8 -10
- data/lib/fastlane/plugin/zhuixi_build_app/version.rb +1 -1
- data/lib/fastlane/plugin/zhuixi_build_app.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e35b5a597c94cdfdb7ccf8ca3666dc93ac5cc806e601ffd95a6d000135739356
|
4
|
+
data.tar.gz: cb4f08d916fe9145ef62e50a4201f3bf3d0ca0e396411be47cf8fa71ca2edc78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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,10 +1,10 @@
|
|
1
|
-
require
|
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(
|
7
|
+
Dir[File.expand_path("**/{actions,helper}/*.rb", File.dirname(__FILE__))]
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|