fastlane-plugin-zhuixi_build_app 0.1.5 → 0.1.6
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 +11 -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: 1ffb99373c764043027ea9d2411e7ffd94f6e4ac8be257f60f68a0af7f1e84ab
|
4
|
+
data.tar.gz: 40d2afbbc5d185cda45208d0563a85187500d41f1fbe72408a438c9be9ee3ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|