Skip to content

Commit

Permalink
add sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Apr 19, 2021
1 parent 5ca9886 commit 2b47c66
Show file tree
Hide file tree
Showing 11 changed files with 18,253 additions and 1,207 deletions.
7 changes: 7 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ import React from 'react';
import Router from './src/navigation/router';
import {DiaryDataProvider} from './src/context';
import NPS from './src/services/NPS/NPS';
import {Sentry} from 'react-native-sentry';

if (!__DEV__) {
Sentry.config(
'https://9f0bd8f8af8444eea9f470d00a1bb411@sentry.fabrique.social.gouv.fr/54',
).install();
}

const App = () => (
<DiaryDataProvider>
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled true
versionCode 28
versionName "1.10.3"
versionCode 29
versionName "1.10.4"
}
splits {
abi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import io.sentry.RNSentryPackage;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
Expand Down
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
rootProject.name = 'monsuivipsy'
include ':react-native-sentry'
project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
1 change: 1 addition & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ target 'monsuivipsy' do

use_react_native!(:path => config["reactNativePath"])


target 'monsuivipsyTests' do
inherit! :complete
# Pods for testing
Expand Down
30 changes: 21 additions & 9 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ PODS:
- React-Core
- RNSVG (12.1.0):
- React
- Sentry (4.1.3):
- Sentry/Core (= 4.1.3)
- Sentry/Core (4.1.3)
- SentryReactNative (0.43.2):
- React
- Sentry (~> 4.1.3)
- Yoga (1.14.0)
- YogaKit (1.18.1):
- Yoga (~> 1.14)
Expand Down Expand Up @@ -383,6 +389,7 @@ DEPENDENCIES:
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSVG (from `../node_modules/react-native-svg`)
- SentryReactNative (from `../node_modules/react-native-sentry`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand All @@ -398,6 +405,7 @@ SPEC REPOS:
- Flipper-RSocket
- FlipperKit
- OpenSSL-Universal
- Sentry
- YogaKit

EXTERNAL SOURCES:
Expand Down Expand Up @@ -475,6 +483,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-screens"
RNSVG:
:path: "../node_modules/react-native-svg"
SentryReactNative:
:path: "../node_modules/react-native-sentry"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand Down Expand Up @@ -505,8 +515,8 @@ SPEC CHECKSUMS:
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429
react-native-safe-area-context: 86612d2c9a9e94e288319262d10b5f93f0b395f5
react-native-netinfo: 0212ce8604e88edf686f1481b925b17a42a52449
react-native-safe-area-context: b6e0e284002381d2ff29fa4fff42b4d8282e3c94
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0
Expand All @@ -517,19 +527,21 @@ SPEC CHECKSUMS:
React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c
React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
RNCAsyncStorage: bc2f81cc1df90c267ce9ed30bb2dbc93b945a8ee
RNCCheckbox: 0fa612ce146445b80efde233dab96602faf67d31
RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459
RNCPushNotificationIOS: 5b1cf9ad2aaa107ecb92d5d2d7005ba521b2b97a
RNDateTimePicker: 986d4794006e5caaebd089a724f54d35631a8dd4
RNDeviceInfo: 57bb2806fb7bd982a1434e9f0b4e6a6ab1f6702e
RNCAsyncStorage: 05bae7ecfab1cbd5441993f1ca098f7c3b3f8d0e
RNCCheckbox: 80ee60cd2e67b46986e8e244db520655372deab4
RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f
RNCPushNotificationIOS: 61a7c72bd1ebad3568025957d001e0f0e7b32191
RNDateTimePicker: 8a51a2216c307769e69ef827293d59549ab1ca23
RNDeviceInfo: 6ecb1d1c87d20e4c62354be0348de23362824dcd
RNGestureHandler: 9b7e605a741412e20e13c512738a31bd1611759b
RNReanimated: e03f7425cb7a38dcf1b644d680d1bfc91c3337ad
RNScreens: 45c457af3d2ee9e08fc01e70da87e653d46b1198
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
Sentry: 4e8a17b61ddd116f89536cc81d567fdee1ebca96
SentryReactNative: 07237139c00366ea2e75ae3e5c566e7a71c27a90
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: ce4e5834193ef09b80ee600a1a5b55041bab56a1
PODFILE CHECKSUM: 9c45febccb00f5b679c38b40cfb3ce327902560f

COCOAPODS: 1.10.0
8 changes: 4 additions & 4 deletions ios/monsuivipsy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,12 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 29;
DEVELOPMENT_TEAM = 76GBKHVK25;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = monsuivipsy/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.10.2;
MARKETING_VERSION = 1.10.4;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -696,11 +696,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 29;
DEVELOPMENT_TEAM = 76GBKHVK25;
INFOPLIST_FILE = monsuivipsy/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.10.2;
MARKETING_VERSION = 1.10.4;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
Loading

0 comments on commit 2b47c66

Please sign in to comment.