Skip to content

Commit f8a0108

Browse files
authored
Merge pull request #1082 from StoDevX/dysm-on-bugsnag
Upload dYSMs to Bugsnag
2 parents 428c399 + dd8e0c2 commit f8a0108

File tree

5 files changed

+24
-32
lines changed

5 files changed

+24
-32
lines changed

Gemfile.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ GEM
7171
xcodeproj (>= 1.4.4, < 2.0.0)
7272
xcpretty (>= 0.2.4, < 1.0.0)
7373
xcpretty-travis-formatter (>= 0.0.3)
74-
fastlane-plugin-get_unprovisioned_devices_from_hockey (0.1.1)
75-
json
74+
fastlane-plugin-bugsnag (1.1.0)
7675
gh_inspector (1.0.3)
7776
google-api-client (0.9.28)
7877
addressable (~> 2.3)
@@ -191,11 +190,10 @@ PLATFORMS
191190
DEPENDENCIES
192191
badge
193192
fastlane
194-
fastlane-plugin-get_unprovisioned_devices_from_hockey
193+
fastlane-plugin-bugsnag
195194
hockeyapp
196195
json
197196
xcodeproj
198197

199-
200198
BUNDLED WITH
201199
1.14.6

fastlane/Pluginfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# Ensure this file is checked in to source control!
44

5-
gem 'fastlane-plugin-get_unprovisioned_devices_from_hockey'
5+
gem 'fastlane-plugin-bugsnag'

fastlane/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ xcode-select --install
2929
</table>
3030

3131
# Available Actions
32-
### register
33-
```
34-
fastlane register
35-
```
36-
Adds any unregistered devices to the provisioning profile
3732
### bump
3833
```
3934
fastlane bump
@@ -107,6 +102,11 @@ Provisions the profiles; bumps the build number; builds the app
107102
fastlane ios beta
108103
```
109104
Submit a new Beta Build to Testflight
105+
### ios refresh_dsyms
106+
```
107+
fastlane ios refresh_dsyms
108+
```
109+
Upload dYSM symbols to Bugsnag from Apple
110110
### ios ci-run
111111
```
112112
fastlane ios ci-run

fastlane/platforms/agnostic.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
# These lanes are non-platform-specific
2-
desc 'Adds any unregistered devices to the provisioning profile'
3-
lane :register do
4-
id = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
5-
new_devices = get_unprovisioned_devices_from_hockey(app_bundle_id: id)
6-
UI.message new_devices
7-
register_devices(devices: new_devices)
8-
match(type: 'development', force: true)
9-
match(type: 'adhoc', force: true)
10-
end
11-
122
desc 'Bump the version string to a new version'
133
lane :bump do |options|
144
old_version = get_package_key(key: :version)

fastlane/platforms/ios.rb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
desc 'Provisions the profiles; bumps the build number; builds the app'
1717
lane :build do
18-
sh('security find-identity -v -p codesigning')
19-
20-
# Build the app
21-
gym(export_method: 'ad-hoc')
18+
gym(include_bitcode: true,
19+
include_symbols: true)
2220
end
2321

2422
desc 'Submit a new Beta Build to Testflight'
@@ -27,22 +25,24 @@
2725
increment_build_number(build_number: latest_testflight_build_number + 1,
2826
xcodeproj: ENV['GYM_PROJECT'])
2927

30-
gym(export_method: 'app-store')
28+
build
3129

3230
testflight
3331
end
3432

33+
desc 'Upload dYSM symbols to Bugsnag from Apple'
34+
lane :refresh_dsyms do
35+
download_dsyms
36+
upload_symbols_to_bugsnag
37+
clean_build_artifacts
38+
end
39+
3540
desc 'Run iOS builds or tests, as appropriate'
3641
lane :'ci-run' do
3742
# set up things so they can run
3843
authorize_ci_for_keys
3944
ci_keychains
4045

41-
# Set up code signing correctly
42-
# (more information: https://codesigning.guide)
43-
match(type: 'appstore', readonly: true)
44-
match(type: 'adhoc', readonly: true)
45-
4646
# set the app version
4747
set_version
4848

@@ -86,9 +86,13 @@
8686
create_keychain(name: keychain,
8787
password: password,
8888
timeout: 3600)
89-
90-
match(readonly: true)
89+
90+
# Set up code signing correctly
91+
# (more information: https://codesigning.guide)
92+
match(type: 'appstore', readonly: true)
9193

9294
sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{password} #{keychain}")
95+
96+
sh('security find-identity -v -p codesigning')
9397
end
9498
end

0 commit comments

Comments
 (0)