From b5007499e1f43d06e8b87007a97b27dfa265b15b Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 6 Nov 2024 11:47:23 +0100 Subject: [PATCH 1/7] installed latest dependencies --- sdk/package.json | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/sdk/package.json b/sdk/package.json index 076621e..1c2ee34 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -45,36 +45,33 @@ "licenseFilename": "LICENSE", "readmeFilename": "README.md", "dependencies": { - "@react-native-async-storage/async-storage": "^1.13.4" - }, - "peerDependencies": { - "@react-native-async-storage/async-storage": "^1.13.3" + "@react-native-async-storage/async-storage": "^2.0.0" }, "devDependencies": { - "@types/jest": "^25.2.3", - "@types/node": "^12.12.47", - "@types/react": "^16.9.35", - "@types/react-native": "^0.62.12", - "@typescript-eslint/eslint-plugin": "^4.14.0", - "@typescript-eslint/parser": "^4.14.0", + "@types/jest": "^29.5.14", + "@types/node": "^22.9.0", + "@types/react": "^18.3.12", + "@types/react-native": "^0.72.8", + "@typescript-eslint/eslint-plugin": "^8.13.0", + "@typescript-eslint/parser": "^8.13.0", "copyfiles": "^2.4.1", - "eslint": "^7.18.0", + "eslint": "^9.14.0", "eslint-config-google": "^0.14.0", - "eslint-config-prettier": "^6.11.0", - "eslint-import-resolver-typescript": "^2.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jest": "^23.13.2", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-jest": "^28.9.0", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.22.0", - "glob": "^7.1.6", - "jest": "^26.0.1", + "glob": "^11.0.0", + "jest": "^29.7.0", "jest-fetch-mock": "^3.0.3", "mockdate": "^3.0.2", - "react": "^16.9.0", - "react-native": "^0.61.5", - "rimraf": "^3.0.2", + "react": "^18.3.1", + "react-native": "^0.76.1", + "rimraf": "^6.0.1", "run-script-os": "^1.1.5", - "ts-jest": "^26.4.0", - "typescript": "^3.9.7" + "ts-jest": "^29.2.5", + "typescript": "^5.6.3" } } From b335fc9e47487e74793f31f8d2f187a7e71f4545 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 6 Nov 2024 11:50:02 +0100 Subject: [PATCH 2/7] fix npm install command --- sdk/src/CrashReporter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/CrashReporter.ts b/sdk/src/CrashReporter.ts index 9cae00d..1b13e23 100644 --- a/sdk/src/CrashReporter.ts +++ b/sdk/src/CrashReporter.ts @@ -171,11 +171,11 @@ export default class CrashReporter { if (rawCache !== null) { try { return JSON.parse(rawCache); - } catch (e) { + } catch (e: any) { RaygunLogger.e('Unable to extract payload from cache:', {error: e.message, cache: rawCache}); } } - } catch (e) { + } catch (e: any) { RaygunLogger.e('Unable to get access local storage:', e.message); } return []; From 061dc03cdf25dd96b6479f5d5930391f700e64a4 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 6 Nov 2024 11:55:08 +0100 Subject: [PATCH 3/7] add dependabot config --- .github/dependabot.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/sdk.yaml | 21 +++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/sdk.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..81510d4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,32 @@ +version: 2 +updates: +# Dependencies updates config for SDK + - package-ecosystem: "npm" + directory: "/src" + schedule: + interval: "monthly" + commit-message: + prefix: "chore" + include: "scope" + +# Dependencies updates config for examples + - package-ecosystem: "npm" + directory: "/demo" + schedule: + interval: "monthly" + commit-message: + prefix: "chore" + include: "scope" + ignore: + # Package in example is accessed by path, + # do not update in package.json. + - dependency-name: "raygun4reactnative" + +# Github Actions dependencies updates config + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + commit-message: + prefix: "chore" + include: "scope" diff --git a/.github/workflows/sdk.yaml b/.github/workflows/sdk.yaml new file mode 100644 index 0000000..bd11631 --- /dev/null +++ b/.github/workflows/sdk.yaml @@ -0,0 +1,21 @@ +name: SDK CI +on: [ push, pull_request ] +jobs: + sdk-build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: sdk + 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 + + # TODO: Check Lint From ac0a73ce8ccaa2d125f50296964a8634b4b8e4b0 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 6 Nov 2024 11:56:32 +0100 Subject: [PATCH 4/7] rename job --- .github/workflows/sdk.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sdk.yaml b/.github/workflows/sdk.yaml index bd11631..95318d9 100644 --- a/.github/workflows/sdk.yaml +++ b/.github/workflows/sdk.yaml @@ -1,7 +1,7 @@ name: SDK CI on: [ push, pull_request ] jobs: - sdk-build: + sdk-checks: runs-on: ubuntu-latest defaults: run: From af9d93ea8dac5f91fbbd75bbe8268f4eba757fc6 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 7 Nov 2024 08:59:00 +0100 Subject: [PATCH 5/7] Use repo SDK not published SDK in demo project --- demo/package-lock.json | 61 ++++++++++++++++++++++++++---------------- demo/package.json | 2 +- 2 files changed, 39 insertions(+), 24 deletions(-) diff --git a/demo/package-lock.json b/demo/package-lock.json index af9c5c7..7d6ddc1 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -12,7 +12,7 @@ "@react-native-community/checkbox": "^0.5.17", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/native": "^6.1.18", - "raygun4reactnative": "^1.4.5", + "raygun4reactnative": "file:../sdk", "react": "18.3.1", "react-native": "0.76.1", "react-native-safe-area-context": "^4.14.0", @@ -42,6 +42,41 @@ "node": ">=18" } }, + "../sdk": { + "name": "raygun4reactnative", + "version": "1.4.5", + "license": "MIT", + "dependencies": { + "@react-native-async-storage/async-storage": "^2.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "@types/node": "^22.9.0", + "@types/react": "^18.3.12", + "@types/react-native": "^0.72.8", + "@typescript-eslint/eslint-plugin": "^8.13.0", + "@typescript-eslint/parser": "^8.13.0", + "copyfiles": "^2.4.1", + "eslint": "^9.14.0", + "eslint-config-google": "^0.14.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-typescript": "^3.6.3", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jest": "^28.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.22.0", + "glob": "^11.0.0", + "jest": "^29.7.0", + "jest-fetch-mock": "^3.0.3", + "mockdate": "^3.0.2", + "react": "^18.3.1", + "react-native": "^0.76.1", + "rimraf": "^6.0.1", + "run-script-os": "^1.1.5", + "ts-jest": "^29.2.5", + "typescript": "^5.6.3" + } + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -10817,28 +10852,8 @@ } }, "node_modules/raygun4reactnative": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/raygun4reactnative/-/raygun4reactnative-1.4.5.tgz", - "integrity": "sha512-D18lB5mM8O8elINDCdm7p9z6g6S68PPfeHYOGw1OXLUPYWNqd4YeGhSul+oxj7heRoeuexAYbYzwIopUOx6Mcg==", - "license": "MIT", - "dependencies": { - "@react-native-async-storage/async-storage": "^1.13.4" - }, - "peerDependencies": { - "@react-native-async-storage/async-storage": "^1.13.3" - } - }, - "node_modules/raygun4reactnative/node_modules/@react-native-async-storage/async-storage": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.24.0.tgz", - "integrity": "sha512-W4/vbwUOYOjco0x3toB8QCr7EjIP6nE9G7o8PMguvvjYT5Awg09lyV4enACRx4s++PPulBiBSjL0KTFx2u0Z/g==", - "license": "MIT", - "dependencies": { - "merge-options": "^3.0.4" - }, - "peerDependencies": { - "react-native": "^0.0.0-0 || >=0.60 <1.0" - } + "resolved": "../sdk", + "link": true }, "node_modules/react": { "version": "18.3.1", diff --git a/demo/package.json b/demo/package.json index 69231c9..6a3f47a 100644 --- a/demo/package.json +++ b/demo/package.json @@ -14,7 +14,7 @@ "@react-native-community/checkbox": "^0.5.17", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/native": "^6.1.18", - "raygun4reactnative": "^1.4.5", + "raygun4reactnative": "file:../sdk", "react": "18.3.1", "react-native": "0.76.1", "react-native-safe-area-context": "^4.14.0", From 41a49cac97d0392c0c545ce7d9c9379c691fdbef Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 7 Nov 2024 11:10:46 +0100 Subject: [PATCH 6/7] update instructions and CI to compile against the local SDK package --- .github/workflows/demo.yaml | 12 +- demo/README.md | 14 ++ demo/package-lock.json | 307 +++++++++++++++++++++++------------- 3 files changed, 218 insertions(+), 115 deletions(-) diff --git a/.github/workflows/demo.yaml b/.github/workflows/demo.yaml index 4c5710c..e8f5781 100644 --- a/.github/workflows/demo.yaml +++ b/.github/workflows/demo.yaml @@ -25,9 +25,13 @@ jobs: with: node-version: '20' - - name: Run npm Install + - name: Build SDK + working-directory: ../sdk run: npm install + - name: Install dependencies + run: npm install --install-links + - name: Build application run: | cd android @@ -47,9 +51,13 @@ jobs: with: node-version: '20' - - name: Run npm Install + - name: Build SDK + working-directory: ../sdk run: npm install + - name: Install dependencies + run: npm install --install-links + - name: Pod Install working-directory: demo/ios run: pod install diff --git a/demo/README.md b/demo/README.md index 565aa05..61fd4b7 100644 --- a/demo/README.md +++ b/demo/README.md @@ -2,6 +2,8 @@ This folder contains the demo application for Raygun4ReactNative. +This project uses the sdk package code located in this repository in the `../sdk` folder. + ## Setup We recommend using `npx` to setup and run this demo project. @@ -12,6 +14,18 @@ Install with `npm install -g npx` if not present already in your system. Verify your system setup running `npx react-native doctor` and follow the instructions. +### Build SDK + +Go to the folder `../sdk` and run `npm install`. + +This is necessary since the demo application uses the local sdk package. + +### Install dependencies + +Run `npm install --install-links` to install the project dependencies. + +Note that `--install-links` is required since the package `raygun4reactnative` should be copied over and not linked with a symbolic link, otherwise React-Native won't be able to access it. + ### Setup Raygun Options Configure the `apiKey` from the `RaygunClientOptions` in the `screens/Home.tsx` file. diff --git a/demo/package-lock.json b/demo/package-lock.json index 7d6ddc1..c8e0aba 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -42,41 +42,6 @@ "node": ">=18" } }, - "../sdk": { - "name": "raygun4reactnative", - "version": "1.4.5", - "license": "MIT", - "dependencies": { - "@react-native-async-storage/async-storage": "^2.0.0" - }, - "devDependencies": { - "@types/jest": "^29.5.14", - "@types/node": "^22.9.0", - "@types/react": "^18.3.12", - "@types/react-native": "^0.72.8", - "@typescript-eslint/eslint-plugin": "^8.13.0", - "@typescript-eslint/parser": "^8.13.0", - "copyfiles": "^2.4.1", - "eslint": "^9.14.0", - "eslint-config-google": "^0.14.0", - "eslint-config-prettier": "^9.1.0", - "eslint-import-resolver-typescript": "^3.6.3", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jest": "^28.9.0", - "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-react": "^7.22.0", - "glob": "^11.0.0", - "jest": "^29.7.0", - "jest-fetch-mock": "^3.0.3", - "mockdate": "^3.0.2", - "react": "^18.3.1", - "react-native": "^0.76.1", - "rimraf": "^6.0.1", - "run-script-os": "^1.1.5", - "ts-jest": "^29.2.5", - "typescript": "^5.6.3" - } - }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -2933,19 +2898,19 @@ } }, "node_modules/@react-native-community/cli": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-15.0.0.tgz", - "integrity": "sha512-IzDIFCoWZsoOHLSKcd8OX9gAXnbH83vsyBIFaj/X6praDUA4VCnDf41mGGSOT/VEarGlarTa3tvRcqZ8aE5l/A==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-15.1.0.tgz", + "integrity": "sha512-wQtPP/+Ol6ndOD6EXMrzVNrhtjdwqURQQCPZ4br2NC5h+vDqOxjHuE8qAem+/TCr5E6eruVOUhe58nwwjiWudQ==", "dev": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-clean": "15.0.0", - "@react-native-community/cli-config": "15.0.0", - "@react-native-community/cli-debugger-ui": "15.0.0", - "@react-native-community/cli-doctor": "15.0.0", - "@react-native-community/cli-server-api": "15.0.0", - "@react-native-community/cli-tools": "15.0.0", - "@react-native-community/cli-types": "15.0.0", + "@react-native-community/cli-clean": "15.1.0", + "@react-native-community/cli-config": "15.1.0", + "@react-native-community/cli-debugger-ui": "15.1.0", + "@react-native-community/cli-doctor": "15.1.0", + "@react-native-community/cli-server-api": "15.1.0", + "@react-native-community/cli-tools": "15.1.0", + "@react-native-community/cli-types": "15.1.0", "chalk": "^4.1.2", "commander": "^9.4.1", "deepmerge": "^4.3.0", @@ -2964,26 +2929,26 @@ } }, "node_modules/@react-native-community/cli-clean": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-15.0.0.tgz", - "integrity": "sha512-ndwVj77eYivHTRmwRBmiAhQq0nC012PDr9cqRQ5QUQl9xr9gXlyO26oWA9jJbXNydXf5DHsVqqDVvh97fERsbg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-clean/-/cli-clean-15.1.0.tgz", + "integrity": "sha512-v6QV0CChYxnT8MTDvhXndlheUPOSRMOHQGPbqUoDPRMoCMB6d7xSLoWCP3qZAXcE+i0QcZJ2xRYTBHU4wmg+Rw==", "dev": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-tools": "15.0.0", + "@react-native-community/cli-tools": "15.1.0", "chalk": "^4.1.2", "execa": "^5.0.0", "fast-glob": "^3.3.2" } }, "node_modules/@react-native-community/cli-config": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-15.0.0.tgz", - "integrity": "sha512-YwmQ9Q7JerwqYg0kMD+jwPer1x2ajPR7bjxkOzykfLK4AZxEZo+KgpkSTILMvdqW0WyaXwuYFsgtPa/YVaOn0A==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-config/-/cli-config-15.1.0.tgz", + "integrity": "sha512-UCzftdq6rOl4NNL/L7nP0THtyMmAzaXFTAgzJXD7CGeBXG5MOpBX83muDstYtyt5g+cm0D/532orxRAzsY3NGQ==", "dev": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-tools": "15.0.0", + "@react-native-community/cli-tools": "15.1.0", "chalk": "^4.1.2", "cosmiconfig": "^9.0.0", "deepmerge": "^4.3.0", @@ -2991,10 +2956,23 @@ "joi": "^17.2.1" } }, + "node_modules/@react-native-community/cli-config-apple": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-config-apple/-/cli-config-apple-15.1.0.tgz", + "integrity": "sha512-sNB+/aadirrF4PZSLMNyHnazeLeZeorZhN9VyfCHGjLzVKvZMp3/mdGd6/VBksK41QwtlYqwzeN+VRt5QMY4zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@react-native-community/cli-tools": "15.1.0", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "fast-glob": "^3.3.2" + } + }, "node_modules/@react-native-community/cli-debugger-ui": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-15.0.0.tgz", - "integrity": "sha512-S5A3QZv0ujP/TXZ+1lrlvRfetwuAvrSMJiBEcMh5pzObpr4Ura3naU6bh/ue+QFn9qJtNxoapC2c79B9Ngns/w==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-15.1.0.tgz", + "integrity": "sha512-O4UFj/M2N9wZHCniKkOfXR5pYanJgfw8+5fda2oOYcWJR8CUh5L754dLycVk6oQ963l0yvlzhXgaOM/ouli07w==", "devOptional": true, "license": "MIT", "dependencies": { @@ -3002,17 +2980,17 @@ } }, "node_modules/@react-native-community/cli-doctor": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-15.0.0.tgz", - "integrity": "sha512-UEavoARx1VRxZrNiiVWseP/6dBbP/qAJ9q7S4qf7iT6wstssxi+XCBwoONCQp5IIRJ8LAwKkxCksBuhoMDGzQg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-doctor/-/cli-doctor-15.1.0.tgz", + "integrity": "sha512-fnZaWlLWeXV0Uft9wRQtXgIArBNrW3it0WiZ3gOLm/XvZg6diO+PLPhHRwaXoPidisjPLHIllTPGpXy4r4wA+g==", "dev": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-config": "15.0.0", - "@react-native-community/cli-platform-android": "15.0.0", - "@react-native-community/cli-platform-apple": "15.0.0", - "@react-native-community/cli-platform-ios": "15.0.0", - "@react-native-community/cli-tools": "15.0.0", + "@react-native-community/cli-config": "15.1.0", + "@react-native-community/cli-platform-android": "15.1.0", + "@react-native-community/cli-platform-apple": "15.1.0", + "@react-native-community/cli-platform-ios": "15.1.0", + "@react-native-community/cli-tools": "15.1.0", "chalk": "^4.1.2", "command-exists": "^1.2.8", "deepmerge": "^4.3.0", @@ -3026,6 +3004,31 @@ "yaml": "^2.2.1" } }, + "node_modules/@react-native-community/cli-doctor/node_modules/@react-native-community/cli-platform-android": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-android/-/cli-platform-android-15.1.0.tgz", + "integrity": "sha512-7gKM/3RK0BVyWEzUTQMvAMUvdvX/IQdKjaOjEgi94lVmRrQiCMhcP+eM3nl1ds7GpoXAGZjHC9j7z1yfDYSMmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@react-native-community/cli-tools": "15.1.0", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "fast-glob": "^3.3.2", + "fast-xml-parser": "^4.4.1", + "logkitty": "^0.7.1" + } + }, + "node_modules/@react-native-community/cli-doctor/node_modules/@react-native-community/cli-platform-ios": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-15.1.0.tgz", + "integrity": "sha512-t4rGLbh8C61jmwnREWyT3eRWFImJ6sGH2awbnJJeIFIau83tFyeZ3Kq/LIyo1k6QKUZe3MnIfOD1MeNTah8A/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@react-native-community/cli-platform-apple": "15.1.0" + } + }, "node_modules/@react-native-community/cli-doctor/node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", @@ -3054,7 +3057,64 @@ "logkitty": "^0.7.1" } }, + "node_modules/@react-native-community/cli-platform-android/node_modules/@react-native-community/cli-tools": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-15.0.0.tgz", + "integrity": "sha512-JZzHRJs+6F6or3tloXdbo6aSL2ifbvs7WKsEPjVFuXfaKNEzpQAqWAKMDr95VUEovuX942yD/QRLo6S2W5NTrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "appdirsjs": "^1.2.4", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "find-up": "^5.0.0", + "mime": "^2.4.1", + "open": "^6.2.0", + "ora": "^5.4.1", + "prompts": "^2.4.2", + "semver": "^7.5.2", + "shell-quote": "^1.7.3", + "sudo-prompt": "^9.0.0" + } + }, + "node_modules/@react-native-community/cli-platform-android/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@react-native-community/cli-platform-apple": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-apple/-/cli-platform-apple-15.1.0.tgz", + "integrity": "sha512-Cj/pR8Z/shGjxU7M0dLpf3J7o35ybBZ3tB5shfQCUjJnnzx3Nq3VyVj2ZRzCy9nijs7n3LQzrKxaXtPhCVz5gw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@react-native-community/cli-config-apple": "15.1.0", + "@react-native-community/cli-tools": "15.1.0", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "fast-xml-parser": "^4.4.1" + } + }, + "node_modules/@react-native-community/cli-platform-ios": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-15.0.0.tgz", + "integrity": "sha512-2tP9R0tDIEA55ebNoVZFs0fQgz2nrnMy/epmsUrNC2p4+ZmPQEojqjB+OFaZV4Mh0svks+WoPqf9blk39kN7eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@react-native-community/cli-platform-apple": "15.0.0" + } + }, + "node_modules/@react-native-community/cli-platform-ios/node_modules/@react-native-community/cli-platform-apple": { "version": "15.0.0", "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-apple/-/cli-platform-apple-15.0.0.tgz", "integrity": "sha512-DUC4AL3AGNjUDkTrK71fBz2B/aloJm+NHc5deTfEicRvDkyHDM16RqkuFwcvrzaKOtnMDwuDNPM7/PSEp8tbVg==", @@ -3069,25 +3129,48 @@ "ora": "^5.4.1" } }, - "node_modules/@react-native-community/cli-platform-ios": { + "node_modules/@react-native-community/cli-platform-ios/node_modules/@react-native-community/cli-tools": { "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-platform-ios/-/cli-platform-ios-15.0.0.tgz", - "integrity": "sha512-2tP9R0tDIEA55ebNoVZFs0fQgz2nrnMy/epmsUrNC2p4+ZmPQEojqjB+OFaZV4Mh0svks+WoPqf9blk39kN7eg==", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-15.0.0.tgz", + "integrity": "sha512-JZzHRJs+6F6or3tloXdbo6aSL2ifbvs7WKsEPjVFuXfaKNEzpQAqWAKMDr95VUEovuX942yD/QRLo6S2W5NTrw==", "dev": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-platform-apple": "15.0.0" + "appdirsjs": "^1.2.4", + "chalk": "^4.1.2", + "execa": "^5.0.0", + "find-up": "^5.0.0", + "mime": "^2.4.1", + "open": "^6.2.0", + "ora": "^5.4.1", + "prompts": "^2.4.2", + "semver": "^7.5.2", + "shell-quote": "^1.7.3", + "sudo-prompt": "^9.0.0" + } + }, + "node_modules/@react-native-community/cli-platform-ios/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/@react-native-community/cli-server-api": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-15.0.0.tgz", - "integrity": "sha512-ypq/5SghbuSaOFVaC+TGAlYCp5hTN0mZ6zBheBzD3OTWXhTu9UCBGCjubmBPLastXr0E6G0djTy4xZ5rwCrHWw==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-server-api/-/cli-server-api-15.1.0.tgz", + "integrity": "sha512-I0r//9WXM0Y9YCFrkFBtmHNFgGO2jAe3U8R6hN/FsD4T2EDlMzNkTaWbxZoiCczw0YgUTzNCI55hpLM3mVL4eA==", "devOptional": true, "license": "MIT", "dependencies": { - "@react-native-community/cli-debugger-ui": "15.0.0", - "@react-native-community/cli-tools": "15.0.0", + "@react-native-community/cli-debugger-ui": "15.1.0", + "@react-native-community/cli-tools": "15.1.0", "compression": "^1.7.1", "connect": "^3.6.5", "errorhandler": "^1.5.1", @@ -3098,9 +3181,9 @@ } }, "node_modules/@react-native-community/cli-tools": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-15.0.0.tgz", - "integrity": "sha512-JZzHRJs+6F6or3tloXdbo6aSL2ifbvs7WKsEPjVFuXfaKNEzpQAqWAKMDr95VUEovuX942yD/QRLo6S2W5NTrw==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-tools/-/cli-tools-15.1.0.tgz", + "integrity": "sha512-WucpEF33q3sjlhRTww8awrmq6k5AqwFOVQtk/iY4sWMwiJDvhRh0+zzh8rTt9LN/cLh+Lvyq+SOuSWFW7emjug==", "devOptional": true, "license": "MIT", "dependencies": { @@ -3131,9 +3214,9 @@ } }, "node_modules/@react-native-community/cli-types": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-15.0.0.tgz", - "integrity": "sha512-sn+h6grsNxJFzKfOdzJX0HOIHbDnWiOo75+T4DBBdREfPTrq0Ao6NybxDWeircdMA6ovYrJLmjByls2MuCQMUA==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-15.1.0.tgz", + "integrity": "sha512-P0hojw2Gy1H4cLKp142qb4L9WCrQh1DDIRI8vNY82CWK6vaTmOGLlSZrBGa/aaKD9NDuW8xnpK9Qun14t4wKvg==", "dev": true, "license": "MIT", "dependencies": { @@ -3520,12 +3603,6 @@ "react": "*" } }, - "node_modules/@react-navigation/core/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT" - }, "node_modules/@react-navigation/elements": { "version": "1.3.31", "resolved": "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.31.tgz", @@ -3693,9 +3770,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", - "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", + "version": "22.9.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz", + "integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==", "license": "MIT", "dependencies": { "undici-types": "~6.19.8" @@ -4724,9 +4801,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001677", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz", - "integrity": "sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog==", + "version": "1.0.30001678", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001678.tgz", + "integrity": "sha512-RR+4U/05gNtps58PEBDZcPWTgEO2MBeoPZ96aQcjmfkBWRIDfN451fW2qyDA9/+HohLLIL5GqiMwA+IB1pWarw==", "funding": [ { "type": "opencollective", @@ -5480,9 +5557,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.50", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.50.tgz", - "integrity": "sha512-eMVObiUQ2LdgeO1F/ySTXsvqvxb6ZH2zPGaMYsWzRDdOddUa77tdmI0ltg+L16UpbWdhPmuF3wIQYyQq65WfZw==", + "version": "1.5.52", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.52.tgz", + "integrity": "sha512-xtoijJTZ+qeucLBDNztDOuQBE1ksqjvNjvqFoST3nGC7fSpqJ+X6BdTBaY5BHG+IhWWmpc6b/KfpeuEDupEPOQ==", "license": "ISC" }, "node_modules/emittery": { @@ -5653,9 +5730,9 @@ } }, "node_modules/es-iterator-helpers": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.1.0.tgz", - "integrity": "sha512-/SurEfycdyssORP/E+bj4sEu1CWw4EmLDsHynHwSXQ7utgbrMRWW195pTrCjFgFCddf/UkYm3oqKPRq5i8bJbw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.0.tgz", + "integrity": "sha512-tpxqxncxnpw3c93u8n3VOzACmRFoVmWJqbWXvX/JfKbkhBw1oslgPrUfeSt2psuqyEJFD6N/9lg5i7bsKpoq+Q==", "dev": true, "license": "MIT", "dependencies": { @@ -5667,6 +5744,7 @@ "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "globalthis": "^1.0.4", + "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2", "has-proto": "^1.0.3", "has-symbols": "^1.0.3", @@ -6782,9 +6860,9 @@ "license": "MIT" }, "node_modules/flow-parser": { - "version": "0.251.1", - "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.251.1.tgz", - "integrity": "sha512-8ZuLqJPlL/T9K3zFdr1m88Lx8JOoJluTTdyvN4uH5NT9zoIIFqbCDoXVhkHh022k2lhuAyFF27cu0BYKh5SmDA==", + "version": "0.252.0", + "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.252.0.tgz", + "integrity": "sha512-z8hKPUjZ33VLn4HVntifqmEhmolUMopysnMNzazoDqo1GLUkBsreLNsxETlKJMPotUWStQnen6SGvUNe1j4Hlg==", "license": "MIT", "engines": { "node": ">=0.4.0" @@ -10719,6 +10797,13 @@ "@types/yargs-parser": "*" } }, + "node_modules/pretty-format/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "devOptional": true, + "license": "MIT" + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -10760,13 +10845,6 @@ "react-is": "^16.13.1" } }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "license": "MIT" - }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -10852,8 +10930,12 @@ } }, "node_modules/raygun4reactnative": { - "resolved": "../sdk", - "link": true + "version": "1.4.5", + "resolved": "file:../sdk", + "license": "MIT", + "dependencies": { + "@react-native-async-storage/async-storage": "^2.0.0" + } }, "node_modules/react": { "version": "18.3.1", @@ -10911,10 +10993,9 @@ } }, "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "devOptional": true, + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, "node_modules/react-native": { From 6ea6a3fec31bb8a35b5a8a52e4ff6b2515cce9e7 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 7 Nov 2024 11:17:53 +0100 Subject: [PATCH 7/7] fix paths --- .github/workflows/demo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/demo.yaml b/.github/workflows/demo.yaml index e8f5781..25552f7 100644 --- a/.github/workflows/demo.yaml +++ b/.github/workflows/demo.yaml @@ -26,7 +26,7 @@ jobs: node-version: '20' - name: Build SDK - working-directory: ../sdk + working-directory: sdk run: npm install - name: Install dependencies @@ -52,7 +52,7 @@ jobs: node-version: '20' - name: Build SDK - working-directory: ../sdk + working-directory: sdk run: npm install - name: Install dependencies