From 141492474689dcc78d3dc864f7b006f81c79649a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Mon, 13 Apr 2026 02:12:36 +0200 Subject: [PATCH] Enable Sentry source map upload in EAS builds - Remove SENTRY_DISABLE_AUTO_UPLOAD from all build profiles - Add @sentry/cli as explicit dependency to fix pnpm module resolution in EAS cloud builds - SENTRY_AUTH_TOKEN configured as EAS environment secret Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/mobile/eas.json | 16 ++---- apps/mobile/package.json | 1 + pnpm-lock.yaml | 104 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+), 12 deletions(-) diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json index e146e9e..753414c 100644 --- a/apps/mobile/eas.json +++ b/apps/mobile/eas.json @@ -1,7 +1,8 @@ { "cli": { "version": ">= 18.0.0", - "appVersionSource": "remote" + "appVersionSource": "remote", + "promptToConfigurePushNotifications": false }, "build": { "development": { @@ -9,16 +10,10 @@ "distribution": "internal", "ios": { "simulator": true - }, - "env": { - "SENTRY_DISABLE_AUTO_UPLOAD": "true" } }, "preview": { - "distribution": "internal", - "env": { - "SENTRY_DISABLE_AUTO_UPLOAD": "true" - } + "distribution": "internal" }, "production": { "autoIncrement": true @@ -29,10 +24,7 @@ "ios": { "simulator": true }, - "environment": "development", - "env": { - "SENTRY_DISABLE_AUTO_UPLOAD": "true" - } + "environment": "development" } }, "submit": { diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 973d7c8..ada369f 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -29,6 +29,7 @@ }, "dependencies": { "@maplibre/maplibre-react-native": "^10.4.2", + "@sentry/cli": "^3.3.5", "@sentry/react-native": "~7.11.0", "@trails-cool/api": "workspace:*", "@trails-cool/gpx": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 201fd09..e1ceabb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -77,6 +77,9 @@ importers: '@eslint/js': specifier: ^10.0.1 version: 10.0.1(eslint@10.2.0(jiti@2.6.1)) + '@expo/fingerprint': + specifier: ^0.16.6 + version: 0.16.6 '@playwright/test': specifier: ^1.59.1 version: 1.59.1 @@ -294,6 +297,9 @@ importers: '@maplibre/maplibre-react-native': specifier: ^10.4.2 version: 10.4.2(@expo/config-plugins@55.0.8)(@types/geojson@7946.0.16)(@types/react@19.2.14)(react-native@0.83.4(@babel/core@7.29.0)(@types/react@19.2.14)(react@19.2.5))(react@19.2.5) + '@sentry/cli': + specifier: ^3.3.5 + version: 3.3.5 '@sentry/react-native': specifier: ~7.11.0 version: 7.11.0(expo@55.0.14)(react-native@0.83.4(@babel/core@7.29.0)(@types/react@19.2.14)(react@19.2.5))(react@19.2.5) @@ -2952,6 +2958,11 @@ packages: engines: {node: '>=10'} os: [darwin] + '@sentry/cli-darwin@3.3.5': + resolution: {integrity: sha512-E/SIY6+j2nt6Ri9nMt78sYle3LiF6uZyz4HGmvcEMU6HXjegmAayhy0J10JST+vZTzN6VixD8sUsa5UeJiOPcg==} + engines: {node: '>=18'} + os: [darwin] + '@sentry/cli-linux-arm64@2.58.4': resolution: {integrity: sha512-0g0KwsOozkLtzN8/0+oMZoOuQ0o7W6O+hx+ydVU1bktaMGKEJLMAWxOQNjsh1TcBbNIXVOKM/I8l0ROhaAb8Ig==} engines: {node: '>=10'} @@ -2964,6 +2975,12 @@ packages: cpu: [arm64] os: [linux, freebsd, android] + '@sentry/cli-linux-arm64@3.3.5': + resolution: {integrity: sha512-/W7HTk2OFKD0bguTvQR1ue6pkFQWaGiqPafOSIQKyq0aGfbZhBn/Uj+IRefgMZMhJQ29xRz0y/iGRGKE+ef4Vg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux, freebsd, android] + '@sentry/cli-linux-arm@2.58.4': resolution: {integrity: sha512-rdQ8beTwnN48hv7iV7e7ZKucPec5NJkRdrrycMJMZlzGBPi56LqnclgsHySJ6Kfq506A2MNuQnKGaf/sBC9REA==} engines: {node: '>=10'} @@ -2976,6 +2993,12 @@ packages: cpu: [arm] os: [linux, freebsd, android] + '@sentry/cli-linux-arm@3.3.5': + resolution: {integrity: sha512-EGuEIvC2OQyar/vu+jAQEmovTMgxpoxdx5knnzL5dLhIemjEUNqwv/sXq+m/Aj+ThqCMofcTWB2TOZXsTtl0Tw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux, freebsd, android] + '@sentry/cli-linux-i686@2.58.4': resolution: {integrity: sha512-NseoIQAFtkziHyjZNPTu1Gm1opeQHt7Wm1LbLrGWVIRvUOzlslO9/8i6wETUZ6TjlQxBVRgd3Q0lRBG2A8rFYA==} engines: {node: '>=10'} @@ -2988,6 +3011,12 @@ packages: cpu: [x86, ia32] os: [linux, freebsd, android] + '@sentry/cli-linux-i686@3.3.5': + resolution: {integrity: sha512-qODMEWLEeUNp3IUlwwISB37EXSo8qgMmHQuLKfxDjpIKw+7NAFfptOloqPrHkLWK3TzFr+Nv643wIKZaYrz28Q==} + engines: {node: '>=18'} + cpu: [x86, ia32] + os: [linux, freebsd, android] + '@sentry/cli-linux-x64@2.58.4': resolution: {integrity: sha512-d3Arz+OO/wJYTqCYlSN3Ktm+W8rynQ/IMtSZLK8nu0ryh5mJOh+9XlXY6oDXw4YlsM8qCRrNquR8iEI1Y/IH+Q==} engines: {node: '>=10'} @@ -3000,6 +3029,12 @@ packages: cpu: [x64] os: [linux, freebsd, android] + '@sentry/cli-linux-x64@3.3.5': + resolution: {integrity: sha512-DCz7lQ4PySjQ1WvWOQ/uTdwauRo1D7hSHazxZ+fUAnK/epSPM9qLkjDMlD8uM5CaLoR8+ZTs7N94vV5LZs2QpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux, freebsd, android] + '@sentry/cli-win32-arm64@2.58.4': resolution: {integrity: sha512-bqYrF43+jXdDBh0f8HIJU3tbvlOFtGyRjHB8AoRuMQv9TEDUfENZyCelhdjA+KwDKYl48R1Yasb4EHNzsoO83w==} engines: {node: '>=10'} @@ -3012,6 +3047,12 @@ packages: cpu: [arm64] os: [win32] + '@sentry/cli-win32-arm64@3.3.5': + resolution: {integrity: sha512-VMNsHiyZcP8Ft3fcK/1zoO4L66soe1eSfXg2tglFQSc/2MYA5v1Br9B1GtjBwDIc3EmdPtFZhOGLyqIzszMxJw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@sentry/cli-win32-i686@2.58.4': resolution: {integrity: sha512-3triFD6jyvhVcXOmGyttf+deKZcC1tURdhnmDUIBkiDPJKGT/N5xa4qAtHJlAB/h8L9jgYih9bvJnvvFVM7yug==} engines: {node: '>=10'} @@ -3024,6 +3065,12 @@ packages: cpu: [x86, ia32] os: [win32] + '@sentry/cli-win32-i686@3.3.5': + resolution: {integrity: sha512-BE6aHOIpsm4jgavsvvXNcSikAr/8NSva3rk1N3BzoOLuX+dcFxBI60K1i2VzB1vsgtivJJo9YySNCi60dBgWTg==} + engines: {node: '>=18'} + cpu: [x86, ia32] + os: [win32] + '@sentry/cli-win32-x64@2.58.4': resolution: {integrity: sha512-cSzN4PjM1RsCZ4pxMjI0VI7yNCkxiJ5jmWncyiwHXGiXrV1eXYdQ3n1LhUYLZ91CafyprR0OhDcE+RVZ26Qb5w==} engines: {node: '>=10'} @@ -3036,6 +3083,12 @@ packages: cpu: [x64] os: [win32] + '@sentry/cli-win32-x64@3.3.5': + resolution: {integrity: sha512-MSU+PtBuiLjEbiPFOvxk4CI3TCagwkIg9kvJ+DrI3+pBY0Sga/dOyeWKTIgb01xSVcfjdw0UkpU52VCvzTT9ew==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@sentry/cli@2.58.4': resolution: {integrity: sha512-ArDrpuS8JtDYEvwGleVE+FgR+qHaOp77IgdGSacz6SZy6Lv90uX0Nu4UrHCQJz8/xwIcNxSqnN22lq0dH4IqTg==} engines: {node: '>= 10'} @@ -3046,6 +3099,11 @@ packages: engines: {node: '>= 10'} hasBin: true + '@sentry/cli@3.3.5': + resolution: {integrity: sha512-eyLHTj0rpeCsOUX+1ZU8UEWRXy6nXvTXNdhtAt1t6YXan9gSsAexZf28zVmDcYcP8WRbK0D2JMLp7NcaQCQgEA==} + engines: {node: '>= 18'} + hasBin: true + '@sentry/core@10.37.0': resolution: {integrity: sha512-hkRz7S4gkKLgPf+p3XgVjVm7tAfvcEPZxeACCC6jmoeKhGkzN44nXwLiqqshJ25RMcSrhfFvJa/FlBg6zupz7g==} engines: {node: '>=18'} @@ -6807,6 +6865,10 @@ packages: undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + undici@6.24.1: + resolution: {integrity: sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==} + engines: {node: '>=18.17'} + undici@7.24.5: resolution: {integrity: sha512-3IWdCpjgxp15CbJnsi/Y9TCDE7HWVN19j1hmzVhoAkY/+CJx449tVxT5wZc1Gwg8J+P0LWvzlBzxYRnHJ+1i7Q==} engines: {node: '>=20.18.1'} @@ -9892,48 +9954,72 @@ snapshots: '@sentry/cli-darwin@2.58.5': optional: true + '@sentry/cli-darwin@3.3.5': + optional: true + '@sentry/cli-linux-arm64@2.58.4': optional: true '@sentry/cli-linux-arm64@2.58.5': optional: true + '@sentry/cli-linux-arm64@3.3.5': + optional: true + '@sentry/cli-linux-arm@2.58.4': optional: true '@sentry/cli-linux-arm@2.58.5': optional: true + '@sentry/cli-linux-arm@3.3.5': + optional: true + '@sentry/cli-linux-i686@2.58.4': optional: true '@sentry/cli-linux-i686@2.58.5': optional: true + '@sentry/cli-linux-i686@3.3.5': + optional: true + '@sentry/cli-linux-x64@2.58.4': optional: true '@sentry/cli-linux-x64@2.58.5': optional: true + '@sentry/cli-linux-x64@3.3.5': + optional: true + '@sentry/cli-win32-arm64@2.58.4': optional: true '@sentry/cli-win32-arm64@2.58.5': optional: true + '@sentry/cli-win32-arm64@3.3.5': + optional: true + '@sentry/cli-win32-i686@2.58.4': optional: true '@sentry/cli-win32-i686@2.58.5': optional: true + '@sentry/cli-win32-i686@3.3.5': + optional: true + '@sentry/cli-win32-x64@2.58.4': optional: true '@sentry/cli-win32-x64@2.58.5': optional: true + '@sentry/cli-win32-x64@3.3.5': + optional: true + '@sentry/cli@2.58.4': dependencies: https-proxy-agent: 5.0.1 @@ -9974,6 +10060,22 @@ snapshots: - encoding - supports-color + '@sentry/cli@3.3.5': + dependencies: + progress: 2.0.3 + proxy-from-env: 1.1.0 + undici: 6.24.1 + which: 2.0.2 + optionalDependencies: + '@sentry/cli-darwin': 3.3.5 + '@sentry/cli-linux-arm': 3.3.5 + '@sentry/cli-linux-arm64': 3.3.5 + '@sentry/cli-linux-i686': 3.3.5 + '@sentry/cli-linux-x64': 3.3.5 + '@sentry/cli-win32-arm64': 3.3.5 + '@sentry/cli-win32-i686': 3.3.5 + '@sentry/cli-win32-x64': 3.3.5 + '@sentry/core@10.37.0': {} '@sentry/core@10.48.0': {} @@ -14292,6 +14394,8 @@ snapshots: undici-types@7.18.2: {} + undici@6.24.1: {} + undici@7.24.5: {} unicode-canonical-property-names-ecmascript@2.0.1: {}