fastlane-plugin-fastci 0.0.5 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53ec20d0f578e7220c03e65b98d1ca1907f40d4bdd973fd5bba59fa17870ef20
4
- data.tar.gz: fe1eb5138294dc9e4a6130b57ed96074f1c0981a344b8272a5d758e9c9edfb74
3
+ metadata.gz: 447af26ce478afd41026dd66f1ffd04d787f081457db0da892491a022bca834e
4
+ data.tar.gz: 417c3bb7b9d6398e3905f5858e8082fb26bb7b22eeeb4ee3b0b8b6eacdaaf1dc
5
5
  SHA512:
6
- metadata.gz: f20bf4ddf3b51247b7e7be24ecadda56acb86f10232641db6d2033bcb363c084d121ddec80f92206b3c9d5a3c882273583b62b2f045df05cbfd2efc3a4e230ae
7
- data.tar.gz: 9a6feee1d0e97c4147bc41d65f3c57330e91d972246a08577e583706114730574bce1b34a55d21a46288954da1263f55bf09ffbf38da46c8bf20287190c010df
6
+ metadata.gz: 7dc8fc8efd8a487a8aec65b4b36c0877eb1f1a105404009d255764686f629db58f23e2de63e0780d963400c088318c99e9b9e87d04e13859ea7862e0e2ce2ac7
7
+ data.tar.gz: 73444092de1acb713030a91230943659730c5feeb48b6aa26222e0ae7fd1786443122018731067e8ffd3a2555e3e160016f29eb54778625e36fbac558c4e9981
data/README.md CHANGED
@@ -27,7 +27,8 @@
27
27
 
28
28
  ## 使用方法
29
29
 
30
- 参考 [` Fastfile `](fastlane/Fastfile) 和 [` .env.default `](fastlane/.env.default) 替换项目内 fastlane 文件夹下文件。
30
+ 参考 [` Fastfile `](fastlane/Fastfile) 和 [` .env.default `](fastlane/.env.default) 替换项目内 fastlane 文件夹下文件;
31
+ 项目根目录新建 ` PACKAGE_FILE_FOLDER_NAME ` 配置对应名字文件夹,将描述文件、证书、p8 密钥等文件放入该文件夹下。
31
32
  然后终端进入项目根目录就可以使用 ` fastlane `
32
33
 
33
34
 
@@ -64,7 +65,7 @@ package(
64
65
  is_detect_duplicity_code: false, # 是否检测重复代码
65
66
  is_detect_unused_code: false, # 是否检测未使用代码
66
67
  is_detect_unused_image: false # 是否检测未使用图片
67
- release_notes: options[:release_notes] # 配合 jenkins 传参上传 appstore { "zh-Hans" => "修复问题", "en-US" => "bugfix"} 格式
68
+ release_notes: options[:release_notes] # 配合 jenkins 传参上传 appstore 格式为 { \"zh-Hans\": \"修复问题\", \"en-US\": \"bugfix\"} JSON 字符串
68
69
  )
69
70
  ```
70
71
 
@@ -8,7 +8,7 @@ module Fastlane
8
8
  def self.run(params)
9
9
  UI.message("*************| 开始安装 p12 证书 |*************")
10
10
 
11
- certificate_paths = Dir.glob(File.expand_path("#{Environment.certificate_folder_name}/*.p12"))
11
+ certificate_paths = Dir.glob(File.expand_path("#{Environment.package_file_folder_name}/*.p12"))
12
12
  certificate_paths.each do |path|
13
13
  other_action.import_certificate(
14
14
  certificate_path: path,
@@ -8,7 +8,7 @@ module Fastlane
8
8
  def self.run(params)
9
9
  UI.message("*************| 开始安装 provisioningProfile |*************")
10
10
 
11
- provisioning_profile_paths = Dir.glob(File.expand_path("#{Environment.provisioningProfile_folder_name}/*.mobileprovision"))
11
+ provisioning_profile_paths = Dir.glob(File.expand_path("#{Environment.package_file_folder_name}/*.mobileprovision"))
12
12
  provisioning_profile_paths.each do |path|
13
13
  other_action.install_provisioning_profile(
14
14
  path: path
@@ -18,6 +18,7 @@ module Fastlane
18
18
  is_detect_duplicity_code = params[:is_detect_duplicity_code] || false
19
19
  is_detect_unused_code = params[:is_detect_unused_code] || false
20
20
  is_detect_unused_image = params[:is_detect_unused_image] || false
21
+ release_notes = params[:release_notes] || ""
21
22
  if export_method == "app-store"
22
23
  configuration = "Release"
23
24
  end
@@ -119,7 +120,7 @@ module Fastlane
119
120
 
120
121
  if CommonHelper.is_validate_string(Environment.connect_key_id) && CommonHelper.is_validate_string(Environment.connect_issuer_id)
121
122
 
122
- other_action.upload_store()
123
+ other_action.upload_store(release_notes: release_notes)
123
124
  notiText = "🚀🚀🚀🚀🚀🚀\n\n#{scheme}-iOS-上传完成\n\n#{version}_#{build}_#{export_method}\n\n🚀🚀🚀🚀🚀🚀"
124
125
  DingdingHelper.sendMarkdown(notiText)
125
126
  end
@@ -130,7 +131,7 @@ module Fastlane
130
131
  # 上传蒲公英
131
132
  if CommonHelper.is_validate_string(Environment.pgy_api_key)
132
133
  pgy_upload_info = other_action.upload_pgy()
133
- qrCode = pgy_upload_info[:buildQRCodeURL]
134
+ qrCode = pgy_upload_info["buildQRCodeURL"]
134
135
 
135
136
  if CommonHelper.is_validate_string(qrCode)
136
137
  notiText << "\n\n⬇️⬇️⬇️ 扫码安装 ⬇️⬇️⬇️\n\n\n密码: #{Environment.pgy_password}\n![screenshot](#{qrCode})"
@@ -284,9 +285,9 @@ module Fastlane
284
285
  ),
285
286
  FastlaneCore::ConfigItem.new(
286
287
  key: :release_notes,
287
- description: "更新文案, 格式为 { \"zh-Hans\" => \"修复问题\", \"en-US\" => \"bugfix\"} ",
288
+ description: "更新文案, 格式为 { \"zh-Hans\": \"修复问题\", \"en-US\": \"bugfix\"} JSON 字符串",
288
289
  optional: true,
289
- type: Hash
290
+ type: String
290
291
  )
291
292
  ]
292
293
  end
@@ -8,10 +8,12 @@ module Fastlane
8
8
  def self.run(params)
9
9
  UI.message("*************| 开始上传 AppStore |*************")
10
10
 
11
+ release_notes = JSON.parse(params[:release_notes] || "") rescue ""
12
+
11
13
  other_action.app_store_connect_api_key(
12
14
  key_id: Environment.connect_key_id,
13
15
  issuer_id: Environment.connect_issuer_id,
14
- key_filepath: File.expand_path("./AuthKey_#{Environment.connect_key_id}.p8"),
16
+ key_filepath: File.expand_path("#{Environment.package_file_folder_name}/AuthKey_#{Environment.connect_key_id}.p8"),
15
17
  duration: 1200, # optional (maximum 1200)
16
18
  in_house: false # optional but may be required if using match/sigh
17
19
  )
@@ -21,7 +23,7 @@ module Fastlane
21
23
  force: true,
22
24
  submit_for_review: false,
23
25
  automatic_release: false,
24
- release_notes: params[:release_notes] || ""
26
+ release_notes: release_notes
25
27
  )
26
28
 
27
29
  end
@@ -34,9 +36,9 @@ module Fastlane
34
36
  [
35
37
  FastlaneCore::ConfigItem.new(
36
38
  key: :release_notes,
37
- description: "更新文案, 格式为 { \"zh-Hans\" => \"修复问题\", \"en-US\" => \"bugfix\"} ",
39
+ description: "更新文案, 格式为 { \"zh-Hans\": \"修复问题\", \"en-US\": \"bugfix\"} JSON 字符串",
38
40
  optional: false,
39
- type: Hash
41
+ type: String
40
42
  )
41
43
  ]
42
44
  end
@@ -29,10 +29,12 @@ module Fastlane
29
29
  ENV['SCHEMES_NAME']&.split(",") || []
30
30
  end
31
31
 
32
- # 描述文件配置
33
- def self.provisioningProfile_folder_name
34
- ENV['PROFILE_FOLDER_NAME']
32
+ # 证书描述文件等放置的文件夹名称
33
+ def self.package_file_folder_name
34
+ ENV['PACKAGE_FILE_FOLDER_NAME']
35
35
  end
36
+
37
+ # 描述文件配置
36
38
  def self.provisioningProfiles_development
37
39
  ENV['PROFILE_DEVELOPMENT']
38
40
  end
@@ -53,9 +55,6 @@ module Fastlane
53
55
  end
54
56
 
55
57
  # p12 证书配置
56
- def self.certificate_folder_name
57
- ENV['PROFILE_FOLDER_NAME']
58
- end
59
58
  def self.certificate_development
60
59
  ENV['CERTIFICATE_DEVELOPMENT']
61
60
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fastci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - watermelon