Skip to content

Commit

Permalink
Setup sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Jan 10, 2018
1 parent 3077a50 commit a4a59fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .env_example
@@ -0,0 +1,4 @@
SENTRY_DSN=
SENTRY_PROJECT=
SENTRY_ORG=
SENTRY_AUTH_TOKEN=
4 changes: 2 additions & 2 deletions ios/statiks/AppDelegate.m
Expand Up @@ -9,16 +9,16 @@

#import "AppDelegate.h"
#import "RCCManager.h"
#import "RNSentry.h"

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <React/RNSentry.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[RNSentry installWithRootView:rootView];
[RNSentry installWithBridge:[[RCCManager sharedInstance] getBridge]];

NSURL *jsCodeLocation;

Expand Down
2 changes: 1 addition & 1 deletion ios/statiks/Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>83</string>
<string>89</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Expand Up @@ -5,8 +5,6 @@ import config from 'react-native-config';
import { Screens, startApp } from 'screens';
import Store, { StoreProvider } from 'store';

console.log('-config', config.SENTRY_DSN);

if (!__DEV__) {
Sentry.config(config.SENTRY_DSN).install();
}
Expand Down
4 changes: 1 addition & 3 deletions src/screens/detail/components/Blocks.js
Expand Up @@ -6,9 +6,7 @@ import { format, getRatio, capitalize } from 'utils/utils';
import { colors } from 'utils/colors';
import { v, fonts } from 'Theme';

const isValidRatio = (frs, fng) => {
return (frs && frs.count > 0) && (fng && fng.count > 0);
}
const isValidRatio = (frs, fng) => (frs && frs.count > 0) && (fng && fng.count > 0);

class Stats extends PureComponent {

Expand Down
5 changes: 4 additions & 1 deletion src/screens/list/components/Item.js
Expand Up @@ -77,7 +77,10 @@ export default class Item extends Component {
</View>

<View style={s.item__right}>
<Text style={[s.item__info, s.item__infoRight]}>{format(data.stats.followers.count)}</Text>
<Text style={[s.item__info, s.item__infoRight]}>
{format(data.stats.followers.count)}
</Text>

<Text style={[s.item__text, s.item__infoRight]}>followers</Text>
</View>
</View>
Expand Down

0 comments on commit a4a59fb

Please sign in to comment.