fastlane-plugin-fastci 0.0.18 → 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: 2bc18fc84e8700a9de27b84d282b3fe7fb60bb504cdb0e5334b76e23a26f7842
4
- data.tar.gz: ca0609bcf90695129d8ccd5f44713bf42b3f98f9235926f3639ab7da3f290f42
3
+ metadata.gz: 76aa3571beeba986621e0cbff3eb16daf5235d7b080708624acd53d3e6afa560
4
+ data.tar.gz: 74743848cbf6bfc3919199ec90bc92b1f5b181c8203b51c734f1149e474151f3
5
5
  SHA512:
6
- metadata.gz: 30138459bec64d1c98507dc3c0f49010954341268e021278ac45cb023139638a124d323d3afc691ac2e863e656599a8d0523357af424d324e3d0e71fb4d6700c
7
- data.tar.gz: cb31239457057b3514d9204cc3f41df8790222a95ac19fd71db5f5997513b7bf2cc05486ed80d19ee839010e6078107c001211ed6c590b406a2095a02e182a1c
6
+ metadata.gz: 77ba058b10ad7811ba9c78f4d48eaee44bebab88f7709bd8f79186d2fa180a68df438b0bbe2238a8910875a758c2d26af43af41e071f3c8655e629b6cc64e418
7
+ data.tar.gz: d834627d814264375a73285bd9e9c23f92e77bded00f1158a9843f5a3216ce1c7f643b55f84460c004c43a3915d8a67a09121f979402f79995a95470adfc081e
data/README.md CHANGED
@@ -52,6 +52,7 @@ fastlane_cache/ # 插件缓存文件夹
52
52
  ### 1. 自动打包
53
53
  功能:自动编译并导出 ipa 包,支持多种打包方式和集成多项检查。
54
54
  生成完的 ipa 会放在桌面上,非 ` app-store ` 配置了蒲公英或 fir 参数会自动上传蒲公英或 fir。` app-store ` 和 ` testFlight ` 配置了商店参数会自动上传商店。
55
+ 配置了 Sentry 参数会自动上传符号表。
55
56
 
56
57
  ` build `: 不指定的话内部有递增逻辑,格式为 ` 20250905.15(日期+当天包的次数) `
57
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
@@ -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
@@ -95,6 +95,21 @@ module Fastlane
95
95
  def self.dingdingToken
96
96
  ENV['DINGDING_TOKEN']
97
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
+
98
113
  end
99
114
  end
100
115
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.18"
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.18
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: []