fastlane-plugin-fastci 0.0.17 → 0.0.19

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: 9423d3ce544d97b0278d88defa535e5a54c5e41ab7d5f670e568f7f7bbd4a523
4
- data.tar.gz: ce78d1d989f07fd073aa7b2a911ea012f477e5e4d0e37054fbc0ef2719f32646
3
+ metadata.gz: 76aa3571beeba986621e0cbff3eb16daf5235d7b080708624acd53d3e6afa560
4
+ data.tar.gz: 74743848cbf6bfc3919199ec90bc92b1f5b181c8203b51c734f1149e474151f3
5
5
  SHA512:
6
- metadata.gz: f22a9d70a42c05679cf4539cd236279127a0cc434301f94d3ff779f63e3fbcda75023eeeeb8609e123a2669aa5633d5bd1fde93e16372dd78eead3798e71e07c
7
- data.tar.gz: c38b92782bdf68fbb3496c159efeb10f9e62141e40bb3b982676ff2d081f9ba4c33521c3014ca2d4ad0a5f7a7def3b4a21fe6a1fb5d0ca3b7de95c18e42a3b47
6
+ metadata.gz: 77ba058b10ad7811ba9c78f4d48eaee44bebab88f7709bd8f79186d2fa180a68df438b0bbe2238a8910875a758c2d26af43af41e071f3c8655e629b6cc64e418
7
+ data.tar.gz: d834627d814264375a73285bd9e9c23f92e77bded00f1158a9843f5a3216ce1c7f643b55f84460c004c43a3915d8a67a09121f979402f79995a95470adfc081e
data/README.md CHANGED
@@ -30,6 +30,7 @@
30
30
  然后终端进入项目根目录即可使用 ` fastlane `
31
31
 
32
32
  如果是同一个 xcworkspace 多 xcodeproj 的情况,可以采用多配置文件的方式。同样也是参考 [` .env.default `](fastlane/.env.default) 根据多个 xcodeproj 创建多个配置文件 ` .env.project1 ` 、 ` .env.project2 `,注意文件的隐藏扩展,名字不能是 ` .env.project1.default `;
33
+ 不同的配置文件配置不同的 ` PROJECT_NAME `;
33
34
  执行的时候指定环境文件 ` fastlane --env project1 package ` 来运行
34
35
 
35
36
 
@@ -51,6 +52,7 @@ fastlane_cache/ # 插件缓存文件夹
51
52
  ### 1. 自动打包
52
53
  功能:自动编译并导出 ipa 包,支持多种打包方式和集成多项检查。
53
54
  生成完的 ipa 会放在桌面上,非 ` app-store ` 配置了蒲公英或 fir 参数会自动上传蒲公英或 fir。` app-store ` 和 ` testFlight ` 配置了商店参数会自动上传商店。
55
+ 配置了 Sentry 参数会自动上传符号表。
54
56
 
55
57
  ` build `: 不指定的话内部有递增逻辑,格式为 ` 20250905.15(日期+当天包的次数) `
56
58
 
@@ -184,6 +184,13 @@ module Fastlane
184
184
  DingdingHelper.sendMarkdown(notiText)
185
185
  end
186
186
 
187
+ # Sentry 上传 dSYM
188
+ if CommonHelper.is_validate_string(Environment.sentry_auth_token)
189
+ other_action.sentry_upload_dsym()
190
+ else
191
+ UI.message("*************| 未配置 Sentry 跳过 dSYM 上传 |*************")
192
+ end
193
+
187
194
  # 代码分析
188
195
  if is_analyze_swiftlint && gym_method != "app-store"
189
196
  other_action.analyze_swiftlint(
@@ -0,0 +1,39 @@
1
+ require 'fastlane/action'
2
+ require 'fastlane/plugin/sentry'
3
+ include Fastlane::Helper
4
+
5
+ module Fastlane
6
+ module Actions
7
+ # Sentry 上传 dSYM 文件
8
+ class SentryUploadDsymAction < Action
9
+ def self.run(params)
10
+ UI.message("*************| Sentry 开始上传 dSYM 文件 |*************")
11
+
12
+ other_action.sentry_debug_files_upload(
13
+ auth_token: Environment.sentry_auth_token,
14
+ org_slug: Environment.sentry_org_slug,
15
+ project_slug: Environment.sentry_project_slug,
16
+ url: Environment.sentry_url
17
+ )
18
+
19
+ end
20
+
21
+ def self.description
22
+ "Sentry 上传 dSYM 文件"
23
+ end
24
+
25
+ def self.available_options
26
+ []
27
+ end
28
+
29
+ def self.is_supported?(platform)
30
+ platform == :ios
31
+ end
32
+
33
+ def self.category
34
+ :building
35
+ end
36
+
37
+ end
38
+ end
39
+ end
@@ -13,7 +13,7 @@ module Fastlane
13
13
  api_token: Environment.fir_api_token,
14
14
  password: Environment.fir_password,
15
15
  changelog: params[:changelog],
16
- switch_to_qiniu: true
16
+ switch_to_qiniu: Environment.fir_switch_qiniu
17
17
  )
18
18
 
19
19
  return firinfo
@@ -27,6 +27,7 @@ module Fastlane
27
27
  }'
28
28
  }
29
29
  system curl
30
+ UI.message("")
30
31
  end
31
32
 
32
33
  end
@@ -87,11 +87,29 @@ module Fastlane
87
87
  def self.fir_password
88
88
  ENV['FIR_PASSWORD']
89
89
  end
90
+ def self.fir_switch_qiniu
91
+ ENV['FIR_SWITCH_QINIU'] == "true"
92
+ end
90
93
 
91
94
  # 钉钉配置
92
95
  def self.dingdingToken
93
96
  ENV['DINGDING_TOKEN']
94
97
  end
98
+
99
+ # Sentry 配置
100
+ def self.sentry_auth_token
101
+ ENV['SENTRY_AUTH_TOKEN']
102
+ end
103
+ def self.sentry_org_slug
104
+ ENV['SENTRY_ORG_SLUG']
105
+ end
106
+ def self.sentry_project_slug
107
+ ENV['SENTRY_PROJECT_SLUG']
108
+ end
109
+ def self.sentry_url
110
+ ENV['SENTRY_URL']
111
+ end
112
+
95
113
  end
96
114
  end
97
115
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.19"
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.17
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - watermelon
@@ -51,6 +51,20 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: 2.0.21
54
+ - !ruby/object:Gem::Dependency
55
+ name: fastlane-plugin-sentry
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 1.36.0
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 1.36.0
54
68
  email: watermelon_lp@163.com
55
69
  executables: []
56
70
  extensions: []
@@ -66,6 +80,7 @@ files:
66
80
  - lib/fastlane/plugin/fastci/actions/install_certificate_action.rb
67
81
  - lib/fastlane/plugin/fastci/actions/install_profile_action.rb
68
82
  - lib/fastlane/plugin/fastci/actions/package_action.rb
83
+ - lib/fastlane/plugin/fastci/actions/sentry_upload_dsym.rb
69
84
  - lib/fastlane/plugin/fastci/actions/update_build_number_action.rb
70
85
  - lib/fastlane/plugin/fastci/actions/upload_fir_action.rb
71
86
  - lib/fastlane/plugin/fastci/actions/upload_pgy_action.rb
@@ -99,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
114
  - !ruby/object:Gem::Version
100
115
  version: '0'
101
116
  requirements: []
102
- rubygems_version: 3.6.9
117
+ rubygems_version: 3.7.2
103
118
  specification_version: 4
104
119
  summary: supports multiple functions such as packaging, uploading, and code detection.
105
120
  test_files: []