-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 89-update-dependencies
- Loading branch information
Showing
58 changed files
with
16,561 additions
and
1,928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Demo CI | ||
on: [ push, pull_request ] | ||
jobs: | ||
demo-android-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: adopt | ||
cache: gradle | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Run npm Install | ||
run: npm install | ||
|
||
- name: Build application | ||
run: | | ||
cd android | ||
./gradlew assembleDebug | ||
demo-ios-build: | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: demo | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Run npm Install | ||
run: npm install | ||
|
||
- name: Pod Install | ||
working-directory: demo/ios | ||
run: pod install | ||
|
||
- name: Build application | ||
run: npx react-native build-ios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BUNDLE_PATH: "vendor/bundle" | ||
BUNDLE_FORCE_RUBY_PLATFORM: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
**/.xcode.env.local | ||
|
||
# Android/IntelliJ | ||
# | ||
build/ | ||
.idea | ||
.gradle | ||
local.properties | ||
*.iml | ||
*.hprof | ||
.cxx/ | ||
*.keystore | ||
!debug.keystore | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/ | ||
|
||
**/fastlane/report.xml | ||
**/fastlane/Preview.html | ||
**/fastlane/screenshots | ||
**/fastlane/test_output | ||
|
||
# Bundle artifact | ||
*.jsbundle | ||
|
||
# Ruby / CocoaPods | ||
**/Pods/ | ||
/vendor/bundle/ | ||
|
||
# Temporary files created by Metro to check the health of the file watcher | ||
.metro-health-check* | ||
|
||
# testing | ||
/coverage | ||
|
||
# Yarn | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
bracketSameLine: true, | ||
bracketSpacing: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby ">= 2.6.10" | ||
|
||
# Exclude problematic versions of cocoapods and activesupport that causes build failures. | ||
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' | ||
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' | ||
gem 'xcodeproj', '< 1.26.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
# Raygun4ReactNative Demo Application | ||
|
||
## 1) Setup: | ||
Start by downloading the Raygun4ReactNative repository into Webstorm or IDE of choice. </br> | ||
### - Setting up device | ||
To run the demo application, you need to implement some method of running a React-Naitve application. | ||
This can be done through your phone, or a simulator | ||
|
||
### 1.1) Device - iOS + Android | ||
Go to this [link](https://reactnative.dev/docs/running-on-device) and follow the instructions. | ||
Then skip to step 2. | ||
|
||
### 1.2) Simulation - Windows + Linux | ||
For Windows and Linux users, you can run a simulated Android device through | ||
[**'Android Studio'**](https://developer.android.com/studio). You will need to [set up a virtual | ||
device](https://developer.android.com/studio/run/managing-avds). | ||
|
||
### 1.3) Simulation - MacOS | ||
MacOS user will need to ensure Xcode is downloaded and setup, follow the first two steps ("Download + Setup" and | ||
"install Node, Watchman and Expo") in this | ||
[guide](https://medium.com/dev-genius/creating-apps-in-react-native-with-an-ios-simulator-39bab189bbee). | ||
|
||
|
||
## 2) Run: | ||
The base folder is split into two different sections, the **'demo'** and **'sdk'**. In the demo project, | ||
there is a **'package.json'** file. Inside that file is a script that you can run call **'run_demo'**.</br> | ||
</br> | ||
_**raygun4reactnative -> demo -> package.json -> scripts: run_demo**_ | ||
</br> | ||
</br> | ||
This script has been implemented to clean up the repo, install dependencies, and run the application. | ||
All of these steps can be done manually, however we highly suggest running this script. The script can | ||
also be run from the terminal. | ||
</br> | ||
To run the **'run_demo'** script from the terminal, change directory such that your terminal is in the | ||
demo folder. Then run the script as seen below: | ||
```text | ||
.../raygun4reactnative: cd demo | ||
.../raygun4reactnative/demo: npm run run_demo | ||
``` | ||
# Raygun4ReactNative Demo App | ||
|
||
This folder contains the demo application for Raygun4ReactNative. | ||
|
||
## Setup | ||
|
||
We recommend using `npx` to setup and run this demo project. | ||
|
||
Install with `npm install -g npx` if not present already in your system. | ||
|
||
### Check configuration | ||
|
||
Verify your system setup running `npx react-native doctor` and follow the instructions. | ||
|
||
### Setup Raygun Options | ||
|
||
Configure the `apiKey` from the `RaygunClientOptions` in the `screens/Home.tsx` file. | ||
|
||
## Running | ||
|
||
1. Run `npx react-native start` to launch the application. | ||
2. Select options "run on iOS" or "run on Android". | ||
|
||
This command will take care of starting any necessary background processes, launch an emulator if present, and build and start the app. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.