Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"gettext-parser": "1.3.1",
"gl-matrix": "^3.4.3",
"invariant": "^2.2.4",
"ios-device-list": "1.1.37",
"jed": "^1.1.0",
"jest-fetch-mock": "^3.0.3",
"js-beautify": "^1.15.1",
Expand Down
106 changes: 0 additions & 106 deletions scripts/extract-ios-device-names.ts

This file was deleted.

2 changes: 0 additions & 2 deletions static/app/components/deviceName.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import {render, screen} from 'sentry-test/reactTestingLibrary';

import {DeviceName} from 'sentry/components/deviceName';

jest.mock('ios-device-list');

describe('DeviceName', () => {
it('renders device name if module is loaded', async () => {
render(<DeviceName value="iPhone8,2" />);
Expand Down
13 changes: 8 additions & 5 deletions static/app/constants/ios-device-list.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
// generated using scripts/extract-ios-device-names.ts as part of build step.
// the purpose of the script is to extract only the iOS information that Sentry cares about
// and discard the rest of the JSON so we do not end up bloating bundle size.
// When updating this file, please also update
// Relay: https://github.com/getsentry/relay/blob/a91f0c92860f88789ad6092ef5b1062aa3e34b80/relay-event-schema/src/protocol/device_class.rs
// Python: https://github.com/getsentry/sentry/blob/c53745bb716899758d0f1caf5446d830e4ebbdb2/src/sentry/api/helpers/ios_models.py

// We used to auto-generate this file from the ios-device-list library the node package (https://www.npmjs.com/package/ios-device-list)
// is unmaintained; see https://github.com/pbakondy/ios-device-list.
// Therefore, we manually update the device mapping list below.
// You can check https://gist.github.com/adamawolf/3048717 or https://theapplewiki.com/wiki/models for a comprehensive list of Apple devices.

// see https://theapplewiki.com/wiki/models
const iOSDeviceMapping: Record<string, string> = {
// iPod touch
'iPod1,1': 'iPod touch',
Expand Down
7 changes: 0 additions & 7 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,6 @@ const appConfig: webpack.Configuration = {
less: path.join(staticPrefix, 'less'),
'sentry-test': path.join(__dirname, 'tests', 'js', 'sentry-test'),
'sentry-locale': path.join(__dirname, 'src', 'sentry', 'locale'),
'ios-device-list': path.join(
__dirname,
'node_modules',
'ios-device-list',
'dist',
'ios-device-list.min.js'
),
},

fallback: {
Expand Down
19 changes: 0 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7875,15 +7875,6 @@ [email protected], invariant@^2.2.4:
dependencies:
loose-envify "^1.0.0"

[email protected]:
version "1.1.37"
resolved "https://registry.yarnpkg.com/ios-device-list/-/ios-device-list-1.1.37.tgz#0461dcba91ff824422740cfabc32490bfd95e686"
integrity sha512-0CS8kand3WDF58GtQV7AlFl9mONeHyQDtrypNEVSUyFsxNcbvj/o4gGeS/LNrQAK8V8V4rSIIpxx3hBVDDFwIg==
dependencies:
lodash.clonedeep "^4.5.0"
lodash.flatten "^4.4.0"
lodash.uniq "^4.5.0"

[email protected]:
version "1.9.1"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
Expand Down Expand Up @@ -9046,21 +9037,11 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"

lodash.clonedeep@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=

lodash.debounce@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==

lodash.flatten@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f"
integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=

lodash.isequal@^4.0.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
Expand Down
Loading