From 7d1a265dee211e9e3a049ab25606dd9ac9a409e9 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 12 Jan 2021 18:28:58 -0800 Subject: [PATCH] Demo adjustments, resolve upload issues, remove messaging. --- App.js | 9 + app.json | 20 +- babel-translations.babel | 28 +- .../job-documents/job-documents.component.jsx | 12 +- .../job-list-item/job-list-item.component.jsx | 5 +- .../screen-main/screen-main.component.jsx | 12 +- .../screen-media-cache.component.jsx | 20 +- graphql/jobs.queries.js | 17 +- package.json | 1 + redux/photos/photos.actions.js | 9 + redux/photos/photos.reducer.js | 6 + redux/photos/photos.sagas.js | 47 +- redux/store.js | 14 +- translations/en-US/common.json | 3 + translations/es-MX/common.json | 3 + translations/fr-CA/common.json | 3 + util/document-upload.utility.js | 10 +- yarn.lock | 515 +++++++++++++++++- 18 files changed, 656 insertions(+), 78 deletions(-) diff --git a/App.js b/App.js index 807b73e..b5753ac 100644 --- a/App.js +++ b/App.js @@ -11,7 +11,16 @@ import ScreenMainComponent from "./components/screen-main/screen-main.component" import { client } from "./graphql/client"; import { persistor, store } from "./redux/store"; import "./translations/i18n"; +import * as Sentry from "sentry-expo"; +Sentry.init({ + dsn: + "https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.sentry.io/5558869", + enableInExpoDevelopment: true, + debug: true, // Sentry will try to print out useful debugging information if something goes wrong with sending an event. Set this to `false` in production. +}); + +Sentry.Native.nativeCrash(); export default class App extends React.Component { constructor(props) { super(props); diff --git a/app.json b/app.json index 14fbd21..29d7592 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "imexmobile", "slug": "imexmobile", - "version": "1.0.0", + "version": "1.0.1", "orientation": "default", "icon": "./assets/logo192.png", "splash": { @@ -16,15 +16,25 @@ "updates": { "fallbackToCacheTimeout": 0 }, - "assetBundlePatterns": [ - "**/*" - ], + "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true }, "web": { "favicon": "./assets/logo192.png" }, - "description": "" + "description": "", + "hooks": { + "postPublish": [ + { + "file": "sentry-expo/upload-sourcemaps", + "config": { + "organization": "snapt-software", + "project": "imexmobile", + "authToken": "32fed1c2d5a8440da684b624ee678874b64c51bb9b0b4b608ab4a15516d6dd02" + } + } + ] + } } } diff --git a/babel-translations.babel b/babel-translations.babel index 46701ef..995b4d5 100644 --- a/babel-translations.babel +++ b/babel-translations.babel @@ -1,4 +1,4 @@ - +