Skip to content

Commit 9435b55

Browse files
authored
Merge pull request #3 from sentry-demos/toolstore
React Native Toolstore + Performance
2 parents 53edb0e + d253d9f commit 9435b55

File tree

23 files changed

+1418
-559
lines changed

23 files changed

+1418
-559
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ cp andoid/sentry.properties ios/sentry.properties
4545
cd ios
4646
pod install
4747
```
48+
### Before Launching the Demo apps:
49+
50+
Be sure to export your auth token: `export SENTRY_AUTH_TOKEN=<token>`
51+
52+
### Versioning
53+
54+
Don't foget to bump your release version depending on platform:
55+
56+
iOS: `Info.plist` `CFBundleShortVersionString`
57+
android: `app.build.gradle` `versionName`
4858

4959
Make sure to have Internet access enabled on your Android emulator. If you can't access the browser you may need to launch your emulator with the below commands:
5060

@@ -79,6 +89,16 @@ npx react-native eject
7989
* _iOS version_: `npx react-native run-ios --configuration Release`
8090
* _Android version_: `npx react-native run-android --variant Release`
8191

92+
### When Launching Android
93+
You may run into issues if you haven't added sdk and sdk platform-tools to path:
94+
`export ANDROID_SDK_ROOT=/Users/dustinbailey/Library/Android/sdk`
95+
`export PATH=/Users/dustinbailey/Library/Android/sdk/platform-tools:$PATH`
96+
97+
Toolstore | Checkout
98+
:-------------------------:|:-------------------------:
99+
![list of tools](./img/toolstore.png) | ![checkout cart](./img/cart.png)|
100+
101+
82102
## Why so many files
83103

84104
Actually, its so not that many :-) . The size of this repo is approx. 1.3MB while the size of the [original react-native](https://github.com/sentry-demos/react-native) is approx 350MB.

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ android {
138138
applicationId "com.sentry_react_native"
139139
minSdkVersion rootProject.ext.minSdkVersion
140140
targetSdkVersion rootProject.ext.targetSdkVersion
141-
versionCode 1
142-
versionName "1.0"
141+
versionCode 2
142+
versionName "1.7"
143143
}
144144
splits {
145145
abi {

android/app/src/main/java/com/sentry_react_native/MainApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.Context;
55
import com.facebook.react.PackageList;
66
import com.facebook.react.ReactApplication;
7+
import com.BV.LinearGradient.LinearGradientPackage;
78
import com.facebook.react.ReactInstanceManager;
89
import com.facebook.react.ReactNativeHost;
910
import com.facebook.react.ReactPackage;

android/sentry.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
defaults.url=https://sentry.io/
22
defaults.org=testorg-az
3-
defaults.project=reactnativeadamtest
3+
defaults.project=dustin-react-native
44
auth.token=XXXX

android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
rootProject.name = 'sentry_react_native'
2+
include ':react-native-linear-gradient'
3+
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
24
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
35
include ':app'

img/cart.png

511 KB
Loading

img/toolstore.png

604 KB
Loading

ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ target 'sentry_react_native' do
88

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

11+
1112
target 'sentry_react_nativeTests' do
1213
inherit! :complete
1314
# Pods for testing

0 commit comments

Comments
 (0)