diff --git a/mobile/app.json b/mobile/app.json index 5df44074..4c78b3f8 100644 --- a/mobile/app.json +++ b/mobile/app.json @@ -89,7 +89,8 @@ ], "expo-secure-store", "expo-font", - "expo-web-browser" + "expo-web-browser", + "@bugsnag/plugin-expo-eas-sourcemaps" ], "experiments": { "typedRoutes": true @@ -100,6 +101,9 @@ }, "eas": { "projectId": "79e33289-7bd2-4ab4-8363-88ca65e99327" + }, + "bugsnag": { + "apiKey": "$EXPO_PUBLIC_BUGSNAG_API_KEY" } }, "owner": "layerztec" diff --git a/mobile/package-lock.json b/mobile/package-lock.json index 8bec38c4..13503fd0 100644 --- a/mobile/package-lock.json +++ b/mobile/package-lock.json @@ -99,6 +99,8 @@ }, "devDependencies": { "@babel/core": "^7.25.2", + "@bugsnag/plugin-expo-eas-sourcemaps": "^54.0.0", + "@bugsnag/source-maps": "^2.3.3", "@types/bs58check": "^2.1.2", "@types/chrome": "^0.0.313", "@types/create-hash": "^1.2.6", @@ -1939,6 +1941,20 @@ "expo-secure-store": "~15.0.6" } }, + "node_modules/@bugsnag/plugin-expo-eas-sourcemaps": { + "version": "54.0.0", + "resolved": "https://registry.npmjs.org/@bugsnag/plugin-expo-eas-sourcemaps/-/plugin-expo-eas-sourcemaps-54.0.0.tgz", + "integrity": "sha512-w1aQdfh63hzT5PRrWfIMeJDWcziYV632QDaB46dFwflZd0iCWALGzno95xYTUbsMYvR8StPSI8vyD9JNUepz4w==", + "dev": true, + "license": "MIT", + "bin": { + "bugsnag-eas-build-on-success": "lib/eas-build-on-success.js" + }, + "peerDependencies": { + "@bugsnag/source-maps": "^2.3.3", + "@expo/config": "~12.0.8" + } + }, "node_modules/@bugsnag/plugin-network-breadcrumbs": { "version": "8.6.0", "resolved": "https://registry.npmjs.org/@bugsnag/plugin-network-breadcrumbs/-/plugin-network-breadcrumbs-8.6.0.tgz", diff --git a/mobile/package.json b/mobile/package.json index 44e293d5..13ba5713 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -27,7 +27,8 @@ "lint": "prettier '**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' '../shared/**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' --config ./.prettierrc --check && tsc --noEmit && expo lint", "lint:write": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' '../shared/**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' --config ./.prettierrc; expo lint --fix", "lint:fix": "npm run lint:write", - "buildbridge": "cd scripts/inpage-bridge && ./build.sh" + "buildbridge": "cd scripts/inpage-bridge && ./build.sh", + "eas-build-on-success": "npx bugsnag-eas-build-on-success" }, "jest": { "preset": "jest-expo" @@ -123,6 +124,8 @@ }, "devDependencies": { "@babel/core": "^7.25.2", + "@bugsnag/plugin-expo-eas-sourcemaps": "^54.0.0", + "@bugsnag/source-maps": "^2.3.3", "@types/bs58check": "^2.1.2", "@types/chrome": "^0.0.313", "@types/create-hash": "^1.2.6",