Commit fb87546e authored by Afid's avatar Afid

pasang sentry untuk error/crash report

parent fb84db91
......@@ -15,7 +15,16 @@ import React, { useState, useEffect } from 'react';
import { Text, View } from 'react-native';
import { AppLoading } from 'expo';
import * as Font from 'expo-font';
import * as Sentry from 'sentry-expo';
import Constants from 'expo-constants';
Sentry.init({
dsn: 'https://ae2449ac801244d99f170140c7cd6d0a@o392471.ingest.sentry.io/5239999',
enableInExpoDevelopment: true,
debug: true,
});
Sentry.setRelease(Constants.manifest.revisionId);
export const lang = i18n.translations = {
en: en,
......
......@@ -32,6 +32,19 @@
"package": "local.ravExcelso",
"versionCode": 20200327
},
"description": ""
"description": "",
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "ravintola",
"project": "ravintola",
"authToken": "5a140e31fb884af58c7d9e20e8baa5ddc8fee9ac79ba427786da245b3015f6d3",
"url": "your sentry url here" // OPTIONAL- only necessary when self-hosting Sentry
}
}
]
}
}
}
......@@ -70,12 +70,12 @@
"react-redux-i18n": "^1.9.3",
"redux": "^4.0.5",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0"
"redux-thunk": "^2.3.0",
"sentry-expo": "^2.0.4"
},
"devDependencies": {
"babel-preset-expo": "~8.0.0",
"@babel/core": "^7.0.0"
},
"private": true
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment