fastlane-plugin-fastci 0.0.10 → 0.0.11
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 +4 -4
- data/lib/fastlane/plugin/fastci/actions/detect_unused_code_action.rb +13 -2
- data/lib/fastlane/plugin/fastci/actions/package_action.rb +3 -2
- data/lib/fastlane/plugin/fastci/helper/dingding_helper.rb +7 -0
- data/lib/fastlane/plugin/fastci/helper/environment.rb +2 -5
- data/lib/fastlane/plugin/fastci/version.rb +1 -1
- 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: fc2702e9749e36590e23e9deb648e999334e439ac7a16cc36214d3292e0e4708
|
|
4
|
+
data.tar.gz: 6f77e4b761a1df58bad1645a8dbc85cefa9854cb38314953675f29e13ebf2dc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f97767787b68e50f0254b6f2179287adde80273fe7206c9a1d8cdfd4998cbdd524c90471b5d8cf3df18c6dcae293da10508d00f50f59dda699c08752815b515
|
|
7
|
+
data.tar.gz: bc9cb51efa44e4fdf19fe37d606e7cafebdabf9fde5a81ed52126494849952bc89860d4cc7bbc25999511290518599c4bd016cb215d686cf34d218cedc2708d9
|
|
@@ -36,9 +36,13 @@ module Fastlane
|
|
|
36
36
|
log_file = sh("ls -t #{log_dir}/*.log | head -n 1").strip
|
|
37
37
|
index_store_path = CommonHelper.extract_index_store_path(log_file)
|
|
38
38
|
|
|
39
|
-
schemes = Environment.
|
|
39
|
+
schemes = Environment.extra_schemes
|
|
40
|
+
scheme = params[:scheme] || Environment.scheme
|
|
41
|
+
|
|
40
42
|
if schemes.empty?
|
|
41
|
-
schemes =
|
|
43
|
+
schemes = [scheme]
|
|
44
|
+
else
|
|
45
|
+
schemes = schemes + [scheme]
|
|
42
46
|
end
|
|
43
47
|
|
|
44
48
|
# 运行 Periphery 扫描
|
|
@@ -70,6 +74,13 @@ module Fastlane
|
|
|
70
74
|
|
|
71
75
|
def self.available_options
|
|
72
76
|
[
|
|
77
|
+
FastlaneCore::ConfigItem.new(
|
|
78
|
+
key: :scheme,
|
|
79
|
+
description: "不采取默认配置,自定义 `scheme` 名称",
|
|
80
|
+
optional: true,
|
|
81
|
+
default_value: nil,
|
|
82
|
+
type: String
|
|
83
|
+
),
|
|
73
84
|
FastlaneCore::ConfigItem.new(
|
|
74
85
|
key: :is_from_package,
|
|
75
86
|
description: "是否从打包流程调用",
|
|
@@ -44,7 +44,7 @@ module Fastlane
|
|
|
44
44
|
build: build
|
|
45
45
|
)
|
|
46
46
|
time = Time.new.strftime("%Y%m%d%H%M")
|
|
47
|
-
version = Actions::GetVersionNumberAction.run(target:
|
|
47
|
+
version = Actions::GetVersionNumberAction.run(target: scheme)
|
|
48
48
|
build = Actions::GetBuildNumberAction.run({})
|
|
49
49
|
# 生成ipa包的名字格式
|
|
50
50
|
ipaName = "#{scheme}_#{export_method}_#{version}_#{build}.ipa"
|
|
@@ -124,7 +124,7 @@ module Fastlane
|
|
|
124
124
|
|
|
125
125
|
ipa_path = "#{Constants.IPA_OUTPUT_DIR}/#{ipaName}"
|
|
126
126
|
|
|
127
|
-
if
|
|
127
|
+
if gym_method == "app-store"
|
|
128
128
|
notiText = "🚀🚀🚀🚀🚀🚀\n\n#{scheme}-iOS-打包完成\n\n#{version}_#{build}_#{export_method}\n\n🚀🚀🚀🚀🚀🚀"
|
|
129
129
|
DingdingHelper.sendMarkdown(notiText)
|
|
130
130
|
|
|
@@ -192,6 +192,7 @@ module Fastlane
|
|
|
192
192
|
# 无用代码检查
|
|
193
193
|
if is_detect_unused_code && gym_method != "app-store"
|
|
194
194
|
DetectUnusedCodeAction.run(
|
|
195
|
+
scheme: scheme,
|
|
195
196
|
is_from_package: true,
|
|
196
197
|
configuration: configuration
|
|
197
198
|
)
|
|
@@ -6,6 +6,13 @@ module Fastlane
|
|
|
6
6
|
class DingdingHelper
|
|
7
7
|
|
|
8
8
|
def self.sendMarkdown(text)
|
|
9
|
+
|
|
10
|
+
# 检查钉钉 Token 是否存在
|
|
11
|
+
unless CommonHelper.is_validate_string(Environment.dingdingToken)
|
|
12
|
+
UI.message("*************| 跳过钉钉消息通知(未配置 Token)|*************")
|
|
13
|
+
return
|
|
14
|
+
end
|
|
15
|
+
|
|
9
16
|
UI.message("*************| 开始钉钉消息通知 |*************")
|
|
10
17
|
|
|
11
18
|
curl = %Q{
|
|
@@ -13,9 +13,6 @@ module Fastlane
|
|
|
13
13
|
def self.scheme
|
|
14
14
|
ENV['SCHEME_NAME']
|
|
15
15
|
end
|
|
16
|
-
def self.target
|
|
17
|
-
ENV['TARGET_NAME']
|
|
18
|
-
end
|
|
19
16
|
def self.workspace
|
|
20
17
|
ENV['WORKSPACE_NAME']
|
|
21
18
|
end
|
|
@@ -25,8 +22,8 @@ module Fastlane
|
|
|
25
22
|
def self.extension_bundle_ids
|
|
26
23
|
ENV['EXTENSION_BUNDLE_IDS']&.split(",") || []
|
|
27
24
|
end
|
|
28
|
-
def self.
|
|
29
|
-
ENV['
|
|
25
|
+
def self.extra_schemes
|
|
26
|
+
ENV['EXTRA_SCHEMES_NAME']&.split(",") || []
|
|
30
27
|
end
|
|
31
28
|
|
|
32
29
|
# 证书描述文件等放置的文件夹名称
|