Skip to content

Commit 73f2455

Browse files
authored
chore: add fastlane code signing setup (#5351)
- Added .ruby-version file specifying Ruby 3.4.7. - Created Gemfile for performance tests with dependencies including fastlane, bigdecimal, logger, benchmark, mutex_m, abbrev, csv, and ostruct. - Updated Gemfile.lock to reflect new dependencies. - Added setup_code_signing lane in Fastfile for provisioning profiles in performance tests. - Updated Gemfile and Gemfile.lock in react-native sample to include abbrev, csv, and ostruct.
1 parent f081f58 commit 73f2455

File tree

7 files changed

+297
-1
lines changed

7 files changed

+297
-1
lines changed

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.7

performance-tests/Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'fastlane', '2.228.0'
4+
5+
# Ruby 3.4.0 has removed some libraries from the standard library.
6+
gem 'bigdecimal'
7+
gem 'logger'
8+
gem 'benchmark'
9+
gem 'mutex_m'
10+
gem "abbrev"
11+
gem "csv"
12+
gem "ostruct"

performance-tests/Gemfile.lock

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
7+
rexml
8+
abbrev (0.1.2)
9+
addressable (2.8.7)
10+
public_suffix (>= 2.0.2, < 7.0)
11+
artifactory (3.0.17)
12+
atomos (0.1.3)
13+
aws-eventstream (1.4.0)
14+
aws-partitions (1.1181.0)
15+
aws-sdk-core (3.236.0)
16+
aws-eventstream (~> 1, >= 1.3.0)
17+
aws-partitions (~> 1, >= 1.992.0)
18+
aws-sigv4 (~> 1.9)
19+
base64
20+
bigdecimal
21+
jmespath (~> 1, >= 1.6.1)
22+
logger
23+
aws-sdk-kms (1.117.0)
24+
aws-sdk-core (~> 3, >= 3.234.0)
25+
aws-sigv4 (~> 1.5)
26+
aws-sdk-s3 (1.203.0)
27+
aws-sdk-core (~> 3, >= 3.234.0)
28+
aws-sdk-kms (~> 1)
29+
aws-sigv4 (~> 1.5)
30+
aws-sigv4 (1.12.1)
31+
aws-eventstream (~> 1, >= 1.0.2)
32+
babosa (1.0.4)
33+
base64 (0.3.0)
34+
benchmark (0.5.0)
35+
bigdecimal (3.3.1)
36+
claide (1.1.0)
37+
colored (1.2)
38+
colored2 (3.1.2)
39+
commander (4.6.0)
40+
highline (~> 2.0.0)
41+
csv (3.3.5)
42+
declarative (0.0.20)
43+
digest-crc (0.7.0)
44+
rake (>= 12.0.0, < 14.0.0)
45+
domain_name (0.6.20240107)
46+
dotenv (2.8.1)
47+
emoji_regex (3.2.3)
48+
excon (0.112.0)
49+
faraday (1.10.4)
50+
faraday-em_http (~> 1.0)
51+
faraday-em_synchrony (~> 1.0)
52+
faraday-excon (~> 1.1)
53+
faraday-httpclient (~> 1.0)
54+
faraday-multipart (~> 1.0)
55+
faraday-net_http (~> 1.0)
56+
faraday-net_http_persistent (~> 1.0)
57+
faraday-patron (~> 1.0)
58+
faraday-rack (~> 1.0)
59+
faraday-retry (~> 1.0)
60+
ruby2_keywords (>= 0.0.4)
61+
faraday-cookie_jar (0.0.7)
62+
faraday (>= 0.8.0)
63+
http-cookie (~> 1.0.0)
64+
faraday-em_http (1.0.0)
65+
faraday-em_synchrony (1.0.1)
66+
faraday-excon (1.1.0)
67+
faraday-httpclient (1.0.1)
68+
faraday-multipart (1.1.1)
69+
multipart-post (~> 2.0)
70+
faraday-net_http (1.0.2)
71+
faraday-net_http_persistent (1.2.0)
72+
faraday-patron (1.0.0)
73+
faraday-rack (1.0.0)
74+
faraday-retry (1.0.3)
75+
faraday_middleware (1.2.1)
76+
faraday (~> 1.0)
77+
fastimage (2.4.0)
78+
fastlane (2.228.0)
79+
CFPropertyList (>= 2.3, < 4.0.0)
80+
addressable (>= 2.8, < 3.0.0)
81+
artifactory (~> 3.0)
82+
aws-sdk-s3 (~> 1.0)
83+
babosa (>= 1.0.3, < 2.0.0)
84+
bundler (>= 1.12.0, < 3.0.0)
85+
colored (~> 1.2)
86+
commander (~> 4.6)
87+
dotenv (>= 2.1.1, < 3.0.0)
88+
emoji_regex (>= 0.1, < 4.0)
89+
excon (>= 0.71.0, < 1.0.0)
90+
faraday (~> 1.0)
91+
faraday-cookie_jar (~> 0.0.6)
92+
faraday_middleware (~> 1.0)
93+
fastimage (>= 2.1.0, < 3.0.0)
94+
fastlane-sirp (>= 1.0.0)
95+
gh_inspector (>= 1.1.2, < 2.0.0)
96+
google-apis-androidpublisher_v3 (~> 0.3)
97+
google-apis-playcustomapp_v1 (~> 0.1)
98+
google-cloud-env (>= 1.6.0, < 2.0.0)
99+
google-cloud-storage (~> 1.31)
100+
highline (~> 2.0)
101+
http-cookie (~> 1.0.5)
102+
json (< 3.0.0)
103+
jwt (>= 2.1.0, < 3)
104+
mini_magick (>= 4.9.4, < 5.0.0)
105+
multipart-post (>= 2.0.0, < 3.0.0)
106+
naturally (~> 2.2)
107+
optparse (>= 0.1.1, < 1.0.0)
108+
plist (>= 3.1.0, < 4.0.0)
109+
rubyzip (>= 2.0.0, < 3.0.0)
110+
security (= 0.1.5)
111+
simctl (~> 1.6.3)
112+
terminal-notifier (>= 2.0.0, < 3.0.0)
113+
terminal-table (~> 3)
114+
tty-screen (>= 0.6.3, < 1.0.0)
115+
tty-spinner (>= 0.8.0, < 1.0.0)
116+
word_wrap (~> 1.0.0)
117+
xcodeproj (>= 1.13.0, < 2.0.0)
118+
xcpretty (~> 0.4.1)
119+
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
120+
fastlane-sirp (1.0.0)
121+
sysrandom (~> 1.0)
122+
gh_inspector (1.1.3)
123+
google-apis-androidpublisher_v3 (0.54.0)
124+
google-apis-core (>= 0.11.0, < 2.a)
125+
google-apis-core (0.11.3)
126+
addressable (~> 2.5, >= 2.5.1)
127+
googleauth (>= 0.16.2, < 2.a)
128+
httpclient (>= 2.8.1, < 3.a)
129+
mini_mime (~> 1.0)
130+
representable (~> 3.0)
131+
retriable (>= 2.0, < 4.a)
132+
rexml
133+
google-apis-iamcredentials_v1 (0.17.0)
134+
google-apis-core (>= 0.11.0, < 2.a)
135+
google-apis-playcustomapp_v1 (0.13.0)
136+
google-apis-core (>= 0.11.0, < 2.a)
137+
google-apis-storage_v1 (0.31.0)
138+
google-apis-core (>= 0.11.0, < 2.a)
139+
google-cloud-core (1.7.1)
140+
google-cloud-env (>= 1.0, < 3.a)
141+
google-cloud-errors (~> 1.0)
142+
google-cloud-env (1.6.0)
143+
faraday (>= 0.17.3, < 3.0)
144+
google-cloud-errors (1.4.0)
145+
google-cloud-storage (1.47.0)
146+
addressable (~> 2.8)
147+
digest-crc (~> 0.4)
148+
google-apis-iamcredentials_v1 (~> 0.1)
149+
google-apis-storage_v1 (~> 0.31.0)
150+
google-cloud-core (~> 1.6)
151+
googleauth (>= 0.16.2, < 2.a)
152+
mini_mime (~> 1.0)
153+
googleauth (1.8.1)
154+
faraday (>= 0.17.3, < 3.a)
155+
jwt (>= 1.4, < 3.0)
156+
multi_json (~> 1.11)
157+
os (>= 0.9, < 2.0)
158+
signet (>= 0.16, < 2.a)
159+
highline (2.0.3)
160+
http-cookie (1.0.8)
161+
domain_name (~> 0.5)
162+
httpclient (2.9.0)
163+
mutex_m
164+
jmespath (1.6.2)
165+
json (2.16.0)
166+
jwt (2.10.2)
167+
base64
168+
logger (1.7.0)
169+
mini_magick (4.13.2)
170+
mini_mime (1.1.5)
171+
multi_json (1.15.0)
172+
multipart-post (2.4.1)
173+
mutex_m (0.3.0)
174+
nanaimo (0.4.0)
175+
naturally (2.3.0)
176+
nkf (0.2.0)
177+
optparse (0.8.0)
178+
os (1.1.4)
179+
ostruct (0.6.3)
180+
plist (3.7.2)
181+
public_suffix (5.1.1)
182+
rake (13.3.1)
183+
representable (3.2.0)
184+
declarative (< 0.1.0)
185+
trailblazer-option (>= 0.1.1, < 0.2.0)
186+
uber (< 0.2.0)
187+
retriable (3.1.2)
188+
rexml (3.4.4)
189+
rouge (3.28.0)
190+
ruby2_keywords (0.0.5)
191+
rubyzip (2.4.1)
192+
security (0.1.5)
193+
signet (0.19.0)
194+
addressable (~> 2.8)
195+
faraday (>= 0.17.5, < 3.a)
196+
jwt (>= 1.5, < 3.0)
197+
multi_json (~> 1.10)
198+
simctl (1.6.10)
199+
CFPropertyList
200+
naturally
201+
sysrandom (1.0.5)
202+
terminal-notifier (2.0.0)
203+
terminal-table (3.0.2)
204+
unicode-display_width (>= 1.1.1, < 3)
205+
trailblazer-option (0.1.2)
206+
tty-cursor (0.7.1)
207+
tty-screen (0.8.2)
208+
tty-spinner (0.9.3)
209+
tty-cursor (~> 0.7)
210+
uber (0.1.0)
211+
unicode-display_width (2.6.0)
212+
word_wrap (1.0.0)
213+
xcodeproj (1.27.0)
214+
CFPropertyList (>= 2.3.3, < 4.0)
215+
atomos (~> 0.1.3)
216+
claide (>= 1.0.2, < 2.0)
217+
colored2 (~> 3.1)
218+
nanaimo (~> 0.4.0)
219+
rexml (>= 3.3.6, < 4.0)
220+
xcpretty (0.4.1)
221+
rouge (~> 3.28.0)
222+
xcpretty-travis-formatter (1.0.1)
223+
xcpretty (~> 0.2, >= 0.0.7)
224+
225+
PLATFORMS
226+
ruby
227+
228+
DEPENDENCIES
229+
abbrev
230+
benchmark
231+
bigdecimal
232+
csv
233+
fastlane (= 2.228.0)
234+
logger
235+
mutex_m
236+
ostruct
237+
238+
BUNDLED WITH
239+
2.7.2

performance-tests/fastlane/Fastfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,22 @@ platform :ios do
4545
delete_keychain(name: "fastlane_tmp_keychain") unless is_ci
4646
end
4747

48+
desc "Generate all provisioning profiles for development"
49+
lane :setup_code_signing do
50+
app_identifiers = [
51+
"io.sentry.rn.perf-test-app-plain",
52+
"io.sentry.rn.perf-test-app-sentry"
53+
]
54+
sync_code_signing(
55+
type: "development",
56+
app_identifier: app_identifiers,
57+
readonly: false
58+
)
59+
sync_code_signing(
60+
type: "appstore",
61+
app_identifier: app_identifiers,
62+
readonly: false
63+
)
64+
end
65+
4866
end

samples/react-native/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ gem 'bigdecimal'
1313
gem 'logger'
1414
gem 'benchmark'
1515
gem 'mutex_m'
16+
gem "abbrev"
17+
gem "csv"
18+
gem "ostruct"

samples/react-native/Gemfile.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8+
abbrev (0.1.2)
89
activesupport (6.1.7.10)
910
concurrent-ruby (~> 1.0, >= 1.0.2)
1011
i18n (>= 1.6, < 2)
@@ -81,6 +82,7 @@ GEM
8182
commander (4.6.0)
8283
highline (~> 2.0.0)
8384
concurrent-ruby (1.3.4)
85+
csv (3.3.5)
8486
declarative (0.0.20)
8587
digest-crc (0.6.5)
8688
rake (>= 12.0.0, < 14.0.0)
@@ -229,6 +231,7 @@ GEM
229231
nkf (0.2.0)
230232
optparse (0.5.0)
231233
os (1.1.4)
234+
ostruct (0.6.3)
232235
plist (3.7.1)
233236
public_suffix (4.0.7)
234237
rake (13.2.1)
@@ -288,14 +291,17 @@ PLATFORMS
288291
x86_64-darwin-20
289292

290293
DEPENDENCIES
294+
abbrev
291295
activesupport (>= 6.1.7.5, < 7.1.0)
292296
benchmark
293297
bigdecimal
294298
cocoapods (= 1.15.2)
299+
csv
295300
fastlane (= 2.220.0)
296301
logger
297302
mutex_m
303+
ostruct
298304
xcodeproj (< 1.26.0)
299305

300306
BUNDLED WITH
301-
2.4.20
307+
2.7.2

samples/react-native/fastlane/Fastfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,21 @@ platform :ios do
3939
)
4040
end
4141

42+
43+
desc "Generate all provisioning profiles for development"
44+
lane :setup_code_signing do
45+
app_identifiers = [
46+
"io.sentry.reactnative.sample"
47+
]
48+
sync_code_signing(
49+
type: "development",
50+
app_identifier: app_identifiers,
51+
readonly: false
52+
)
53+
sync_code_signing(
54+
type: "appstore",
55+
app_identifier: app_identifiers,
56+
readonly: false
57+
)
58+
end
4259
end

0 commit comments

Comments
 (0)