diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 57ac1f43ea..1b252d021a 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,5 +1,14 @@ steps: + # + # License audit + # + - label: ':copyright: License Audit' + timeout_in_minutes: 20 + agents: + queue: opensource-mac-cocoa-11 + command: scripts/license_finder.sh + # # Android builder base - used by React Native and React Native CLI # diff --git a/CHANGELOG.md b/CHANGELOG.md index 520ac34f9c..c44c667f41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## v7.9.5 (2021-04-26) + +### Changed + +- (react-native): Update bugsnag-cocoa to v6.9.0 + - App hangs that occur while an app is in the background will no longer be reported. [bugsnag-cocoa#1075](https://github.com/bugsnag/bugsnag-cocoa/pull/1075) + - Add `binaryArch` and `runningOnRosetta` to the `app` metadata tab. [bugsnag-cocoa#1073](https://github.com/bugsnag/bugsnag-cocoa/pull/1073) + - Bugsnag can now be used without AppKit, allowing use in daemons and other processes running in non-UI sessions. [bugsnag-cocoa#1072](https://github.com/bugsnag/bugsnag-cocoa/pull/1072) +- (react-native): Update bugsnag-android to v5.9.1 + - Add projectPackages field to error payloads [bugsnag-android#1226](https://github.com/bugsnag/bugsnag-android/pull/1226) + - Fix deserialization bug in persisted NDK errors [bugsnag-android#1220](https://github.com/bugsnag/bugsnag-android/pull/1220) + ## v7.9.4 (2021-04-19) ### Changed diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 0000000000..2869470e48 --- /dev/null +++ b/config/.gitignore @@ -0,0 +1 @@ +decisions.yml diff --git a/dockerfiles/Dockerfile.ci b/dockerfiles/Dockerfile.ci index 5bd7f2b114..2d31713dba 100644 --- a/dockerfiles/Dockerfile.ci +++ b/dockerfiles/Dockerfile.ci @@ -6,7 +6,7 @@ RUN apk add --update bash WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --unsafe-perm COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconfig.json packages/expo/unimodules-core.d.ts ./ ADD min_packages.tar . diff --git a/dockerfiles/Dockerfile.publisher b/dockerfiles/Dockerfile.publisher index 8d0efacd32..e6f88fffc1 100644 --- a/dockerfiles/Dockerfile.publisher +++ b/dockerfiles/Dockerfile.publisher @@ -1,7 +1,7 @@ # CI test image for unit/lint/type tests FROM node:lts-alpine -RUN apk add --update bash git +RUN apk add --update bash git curl RUN rm -f ~/.npmrc @@ -10,6 +10,7 @@ ARG REG_NPM_EMAIL RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc RUN echo "always-auth=true" >> ~/.npmrc +RUN echo "unsafe-perm=true" >> ~/.npmrc WORKDIR /app diff --git a/lerna.json b/lerna.json index b165cf2988..88f51f1514 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,5 @@ "packages": [ "packages/*" ], - "version": "7.9.4" + "version": "7.9.5-alpha.0" } diff --git a/packages/react-native/.gitignore b/packages/react-native/.gitignore index 051d97af7b..8260268967 100644 --- a/packages/react-native/.gitignore +++ b/packages/react-native/.gitignore @@ -31,3 +31,4 @@ DerivedData *.ipa *.xcuserstate project.xcworkspace +android/com/bugsnag diff --git a/packages/react-native/CONTRIBUTING.md b/packages/react-native/CONTRIBUTING.md index 5d0a557d53..90f8faa246 100644 --- a/packages/react-native/CONTRIBUTING.md +++ b/packages/react-native/CONTRIBUTING.md @@ -10,9 +10,8 @@ Both [`bugsnag-android`](https://github.com/bugnsag/bugsnag-android) and [`bugsn To update the version of the bundled artefacts: -- Ensure `bugsnag-js` (this repo) is cloned in a sibling directory alongside `bugsnag-android` -- Checkout the tag of the release version to be vendored in `bugsnag-android` (e.g. `git checkout v5.2.2`) -- From within the React Native package directory in this repo (`cd packages/react-native`), run the `./update-android.sh` script. This will build the Android notifier and copy the files in. +- Run the script `packages/react-native/update-android.sh`. This script accepts version tags, sha, or a local directory, but for releases specify a version (e.g. `packages/react-native/update-android.sh --version 5.2.2`). +- To install the new artifacts locally (for local testing only), run `packages/react-native/prepare-android-vendor.sh`. - Update the changelog according to the [contributing guide](../../CONTRIBUTING.md), creating a new `TBD` section if one doesn't exist. Under the section `### Changed` add a new entry: `- (react-native): Update bugsnag-android to v{VERSION}`, indenting one level and including the entire changelog for the version that has been updated. If multiple releases have been made since the version bump, the changelog entries for the interim should be aggregated into one. #### iOS @@ -21,9 +20,7 @@ To update the version of the bundled artefacts: To update the version of the bundled notifier source: -- Ensure `bugsnag-js` (this repo) is cloned in a sibling directory alongside `bugsnag-cocoa` -- Checkout the tag of the release version to be vendored in `bugsnag-cocoa` (e.g. `git checkout v5.2.2`) -- From within the React Native package directory in this repo (`cd packages/react-native`), run the `./update-ios.sh` script. This will copy the Cocoa sources and headers into the correct locations. +- Run the script `packages/react-native/update-ios.sh`. This script accepts version tags, sha, or a local directory, but for releases specify a version (e.g. `packages/react-native/update-ios.sh --version 6.6.2`). This will copy the Cocoa sources and headers into the correct locations. - Update the changelog according to the [contributing guide](../../CONTRIBUTING.md), creating a new `TBD` section if one doesn't exist. Under the section `### Changed` add a new entry: `- (react-native): Update bugsnag-cocoa to v{VERSION}`, indenting one level and including the entire changelog for the version that has been updated. If multiple releases have been made since the version bump, the changelog entries for the interim should be aggregated into one. ## Development diff --git a/packages/react-native/android/.bugsnag-android-version b/packages/react-native/android/.bugsnag-android-version deleted file mode 100644 index c2dc8ba7b0..0000000000 --- a/packages/react-native/android/.bugsnag-android-version +++ /dev/null @@ -1 +0,0 @@ -18b1cf014513c5f0596397cda0be6daebb253a97 diff --git a/packages/react-native/android/build.gradle b/packages/react-native/android/build.gradle index b82d35f14f..653dd69398 100644 --- a/packages/react-native/android/build.gradle +++ b/packages/react-native/android/build.gradle @@ -40,8 +40,8 @@ android { } dependencies { - api "com.bugsnag:bugsnag-android:5.9.0-react-native" - api "com.bugsnag:bugsnag-plugin-react-native:5.9.0-react-native" + api "com.bugsnag:bugsnag-android:5.9.1" + api "com.bugsnag:bugsnag-plugin-react-native:5.9.1" implementation 'com.facebook.react:react-native:+' testImplementation "junit:junit:4.12" diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar deleted file mode 100644 index 24e046d9d2..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 1e1ad599af..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsMAAoJEJAqRX/iyO/5S8EQAKanKnZ4Iihx8RthoTQaQquF -mgTkTLCtZgr6n12Z7zP/sSvg/9d37Ds+/wqk5NCsnnymQhnq81tKummMCB7vBkQn -hYHf/cvDHV/RO5kqIq6vE1+qCiuPPMO94tf1Y/qvlUq9ja9a2kePtUG08hwPBygA -FIPr1dXNqncvEqdcsweHFSmGbaR7JjsSlF8GCjEa5RtGIXAFNMioqEhlpIArdodF -8nTjOpihykej5aUnQyWHhZw6XK4OwKWMfBz34l1Yg8TXVKmyIUcCnVjq4z7Q7FLw -Ezk0n+kwpya/EFPF11V+TAeBF10Hne6dZyfZGBUgexl9bqMqLnQ0K0Ij+wgfK6mI -L5bV2fdD6aWQYVIwU+cI1+rsC3Qowzqz3ySfwlMjZBh6P0N5xdyvELZceNileHbJ -OQHxS5t4U+BP8dSDSoLYOGbUvZJDlD5YA8uf+AvmMLVW+ZYVKmPW14+uyineR4ey -4oL3blf+uRfJsp36kUhNsPqk6mlSKSJUUFAVkviwsTN5T+bnY4kXh3YCFTpIISvU -yAHeYi+HVkHj3NEy4BQ+IJWxlxwcVcHH0xuNgFMrNc3MFgL81kdckkOJd1BN6yRC -/PhJ2x92Y9whaQHE4F7riAxWrKVuzRPa9fkUjOzQtHB5Lu7CHgN90dGrIk7sD53e -oQnSPEKu3afzE1B43wMe -=79Os ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar deleted file mode 100644 index 79ad1ca9b5..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar.asc deleted file mode 100644 index 015b572745..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsMAAoJEJAqRX/iyO/5ESEP/2jmeq11JSu+YrkHUbNMnVnT -5qAlPFfhT3GDn0rao0LWesmw2V0E3/v73VNxJwdiDodNLkgTvACWDkSTuzBzMV13 -bTjeHauEZNaCWO2uA4pOyCFTmWvAAgEgTYDj8VKsTGeZhebrO6aPoyzeWaNBmkNx -l2ivlpO9l4LzeypHfhtXql4mH5Xq9sVbXmCyBhUrzwHtQUqZM/dYeswK74v4MmRJ -Ld8Cu5bN3mqtaVJu798PmzuFrlSzMp3KyGvmuV/gR0V81Q9KbqYlxv80ry2Kn/76 -d8QRkzKuGDRYYlJw/CmE2y+rU6A8pyBw8Y37Jv/duPFB3IWf5q/V3RC/Y3olJSnX -rUaSQIruX4Sd5rI6l4LeowyvdTtzh21pYFUazNLXXU4qIydfJUPKt/3RykTE5yGZ -MePTqVVrF1bumEb0mkb2m8uru6SOccqVKsSXZjjNgvkmYJqEz/oMeBbf2BbJ+S/V -pjOBgKlcetq/+w8gwVi64IpBZ3167GMd1StaKhtd0i6vAmgZy0slR3YuZIYjsyv+ -GL3ifpuv5XvYZeOX3EU6nuIMXkjeX05ngLAYYB6uuxWtzsVUBrtBzdRLPnlhR/F2 -izZ6oKelW4bqWd5QPszCjC8ariiaIpMDO8mHU6q8kyTmtPm9t5zccbmdl/1M1sbY -pTFFdKVCEehN5VUp/A7w -=HQmt ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module deleted file mode 100644 index 2c23974626..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module +++ /dev/null @@ -1,91 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-core-5.9.0-react-native.aar", - "url": "bugsnag-android-core-5.9.0-react-native.aar", - "size": 309859, - "sha512": "bf63e2cdbfe26b3de3839e16ec8cbfb0f4dded6c7bccd0a6594cbf52d34eace476561deddebceddbcd09ab0262bb849d20744225032d879f5dd44917f6ceae53", - "sha256": "9d94d09ab497011fae777bf86d4716082507bba321f2a3fd744410eb97819365", - "sha1": "9b6699462c6428055b0f9573dad8241bd34686e7", - "md5": "688cd4ed8f0383d3ff33993cdc5707ac" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-core-5.9.0-react-native.aar", - "url": "bugsnag-android-core-5.9.0-react-native.aar", - "size": 309859, - "sha512": "bf63e2cdbfe26b3de3839e16ec8cbfb0f4dded6c7bccd0a6594cbf52d34eace476561deddebceddbcd09ab0262bb849d20744225032d879f5dd44917f6ceae53", - "sha256": "9d94d09ab497011fae777bf86d4716082507bba321f2a3fd744410eb97819365", - "sha1": "9b6699462c6428055b0f9573dad8241bd34686e7", - "md5": "688cd4ed8f0383d3ff33993cdc5707ac" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module.asc deleted file mode 100644 index 35b64bfc7e..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsNAAoJEJAqRX/iyO/5mVwP/1ZVzeGthSE+9Q0ScAPDjAKH -/MNCUjFeaXvqxx5XdigFzoL/uF5VfJQprxFS159Qbp2Ptr1mYzqUBLQfOeeNq/2O -GlTSFBVG+YK7FJYLK7zYAD5nn8uktM2Ll2ieDyQ14NBpc6WNVu+sEyDt6bjTRX7K -+o9uc7DmxknUPza3a7Dn3YtiLs6uBx3I+3DE4h+oMGZDFJZthmWd2mElbjWAnSUB -jqw0Jqa+EzWGtHD2jX1O3M/gtg4ieivcswX2BvYj0i+1WkYHO92/hSrEMcD+sszY -OF28cFNAysNA+BOUJNqZnHXgUa+KsdYtAytFmYj2ics22JezVIAopC5denhiZUTd -qF7CsLkz1eFOm62pf598pJm/TE/928UiE6kJaV2y2ZA6bJq7s0pCy8EGKdRV/gX2 -fR3KwrJrU/dFAfYRLi5g7T3yPnNthpZfHgVf0/Uk/GbJO4qwyr+LXryceltlhC4I -mut65tAfXNP/AXwHAvkB6zabNf35tSwRYtG7FzWSx/+dAP3h4tRIYmzzzDSZClfI -/Sh/DuX+iKNTsnNVP8tg9Trd1kXe7aoh2IRrgNfK37VA9Jk+jZKtdQguY/m1mIQS -xng6B6WXkMK4WxUPnjWtyMpfqXKfmmflJAnwZTMAXKSEe9+6vTECPqhoj/zyj22G -K6RoFR/jiUNHDkWfspbr -=b6h2 ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom deleted file mode 100644 index 7ad9984ed7..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - aar - Bugsnag Android Core - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom.asc deleted file mode 100644 index 56f5ad014f..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/5.9.0-react-native/bugsnag-android-core-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsMAAoJEJAqRX/iyO/5+UUP/12djWZuMRcx47DAsdbG5qXG -6TT7WnI4bOGxqwva3UcYoCCYvFik/kw7BNe8RpQKjAGT/sN7CsvLaVhMe7K06rCn -Q+crAR35c2A0Sia8Ktnu5eb1AYQCVLHifHOZguHdwLD9NJoC3IFd6EG7BB9dKX5p -f8gILPAKQaUDEneb9ELcOT7tRljXfskLObuiNu9MRSs36BYFnGytg/Fpf9Ybnb9d -5o7PuShY+vSsc/QlgzyYrwEcwV//Q79aypnMXlPfaqIlWOHIUc2F52fIvoSYkKgb -S6O004eZ8PzsHzW705GexSYFr0QCqSUv5I23EsNKFdPmf5K/M3KASwj6b/HiKps0 -xdySFD1+NFgdPwrT40a2G6ZXq1nbzjf8g5jFekcqMgOg+zpQk+xguzN+t80MkyCl -b0A/oFRDbU1jFhfJL8hk7yQ0eJFhmylIg621s9ZR0lRboC33h70Yf8B4vuMg/XXj -XrlfKhZkG7x0TSgTVNcaPxSj9++GdqWhP084v0yO1BHgUtCblkgg5vIlJxDRsext -zD9DKmNytAtWxmrLSOiMQ+Qa7UChHu5Hj+W2jfFmA114xkPtscZAPt1QL5heJ6fB -+5N0YP9kEL3m476Xrpu8h+6N8mr3WJOZBrCJVFpw5r2Y7NT15KWrp6VYkroFeeCD -W5iqxCqoFaIrdm30+udi -=qoZF ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-core/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-android-core/maven-metadata-local.xml deleted file mode 100644 index 36eafdacd1..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-core/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-android-core - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101853 - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar deleted file mode 100644 index 6a5b77a8bd..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 8a66db724b..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5Xv4P/126Itr9oV7q33iE/QePQQat -iR7Jvc2btmalp9RrrsRbjyomKhLjycB7Y+Y75fO4fxf552dUY4UPKb3M2jK7011L -Mc7gg4/DkMgZdpHRLRHSbhqZdY68hXIUB/vhO0Mu4ezIwFKdutIFxdvcxwmHq6Ni -m6H3ZX7hpWD5bVqygTtpHB5XwpcGH5pR2weahCRcK21xlfHiHRMxyyd8xD4QlImu -FMQAugjxCxW595vBltjvqxyzqqMdOebR1IygPsYOl/+b4P/vbDuVqQyDy74rb0e9 -lkFubnVwKPjegMgybIefGbq6YOLgBOn2sclgyf0mFR2pnlp0XTVDz86oU5xl3Gno -6ngb5eOUsoos5o3f0m6AaRPYO7uqMl12Rl9NSrtMvGlqQ5HHEgnNDNOJZgFrVya1 -U4dwddxc6ZK4h9GVjExTOdXsM/wRpANu/qzggLfsL0cHL8oFXigw3+UIO4xTxknf -vP+fXJ+x8vaidxYYzMkCfeYDrfBjk6X1t5PKx+8UcavjT2AhKe+5LyG9ISn+QjS+ -/sDexr5/QM2JtCOjRbfE3+Ryk3at9Kqff5GqX/wR+QbXWRYowkCBKPCYA+5/2p/O -xDQhvXzQy8AIR92cTevRZS0diap92j00nTbVkKUW2E5c7et3NKHZFZuZ1r/eLSet -lCEN9+FZP9QzqwtrdV1J -=BBuU ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar deleted file mode 100644 index ca36a26426..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar.asc deleted file mode 100644 index 5bee0bae14..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5bKMQAJbz8/aLJTn3YLwn/TRPL0mr -VEc4hooHIboR5BoZNk8N55ulPK/cRjPWB/SHrWlfCwTUzOkKsHnEI/y0U2qvFkpB -oJ+xvZDKixVI9sw4D/B9YwsDivWwZfNT12nca9Ec3KleXzh4MNJN0ehzcPQbgbFf -Hh2BXgSSDKd89PgARsgjB166GGauxHtc8pYag+uqdc5je3PDilsgdSNx+q3NCdLO -BTMGWFujxL75ETxUn77NWpjo1fBcTiUMCUIMH48Iy2xY0zFhsKvmWKVgzEGlg/nf -yaaPqCXjq8GKYP4KMZr3FoxResI/MgfPBJKSgrqETiC4L54ZEsmkzHwECRG/cPAU -CrFxCnKci4CTUEXDYwq8W5pkwZ3kehnb8l6pBqX9XucdtXhZTR+fHrunYduwLMSv -4KeoClrvCe8wkFST/didVSRXbCOj4sWM+bKiWnVuSIVM+r8uCGZ3UUiekHAYqx5j -2UlZmgKLDQ/8DE4nPzH2AoD/napUP9I3l4QNgMu8I4Xlrs5yeu0JzsZw/+tiXTCH -QscNL2PyUxYvR1CpC2pFcNAtuwIVjfgy/v8WbsWqYA3PGzmbHxsxNkI9Q6dHKc/6 -eehB+zm8nGQqhfpPY+csmxLsxNhpyifEc9fgdYlSdaktSrzl83FfObLC70JYKMgE -a6nEQbVHxiGbEuwv6Se+ -=NL0n ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module deleted file mode 100644 index ccf0419201..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module +++ /dev/null @@ -1,133 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-android-ndk", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-anr", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-ndk", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-ndk-5.9.0-react-native.aar", - "url": "bugsnag-android-ndk-5.9.0-react-native.aar", - "size": 701, - "sha512": "b000ee5afc2daaab0f09bfa0585c74893e16f8d0712f91e66c8cccc5ea1a17acc866e94de5e2698461ad0ce454d4b4f58398a9603c4f5051b5394f244d001427", - "sha256": "71846d015ea94fa6ed5c27465a23ed7ddc9f92dcdda65c61e4a8dbd90be83874", - "sha1": "e95db02741555d9a9e4d5ef358c353a130460669", - "md5": "db05ceaeec468cebc3e199e87474c64a" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-anr", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-ndk", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-ndk-5.9.0-react-native.aar", - "url": "bugsnag-android-ndk-5.9.0-react-native.aar", - "size": 701, - "sha512": "b000ee5afc2daaab0f09bfa0585c74893e16f8d0712f91e66c8cccc5ea1a17acc866e94de5e2698461ad0ce454d4b4f58398a9603c4f5051b5394f244d001427", - "sha256": "71846d015ea94fa6ed5c27465a23ed7ddc9f92dcdda65c61e4a8dbd90be83874", - "sha1": "e95db02741555d9a9e4d5ef358c353a130460669", - "md5": "db05ceaeec468cebc3e199e87474c64a" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module.asc deleted file mode 100644 index 782079b553..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5gIIP/1+jTZtO6bt7iK5985FcPSL2 -/wIe/9r9W+/6miPgtbpdYTgLrWNUgmPPHEsbmmjaIv+NeS8XdsiyJ2TXvPfRYZ0M -Hi8ocD2AA5u8R564BfivBXhtG6lF8+21YWUnOjteNKVrvhctI8xHH3ISdlEE7Ats -xZqPv48TLz8bRJKXtN8CK352kQvizyXw6a0Nlpht1d6xRWibN8JgF7YRZAYJzbXl -PTopmtiSartIteJgvXDMOgYAjrG6T9oKqtOIfa1XbDQbgWZv9N5agInHqLPjj391 -0ztZevcO4VoCNtJm60kCx1vcjUa6BDrugRCCQocrRoxty2G1awBxguREwK1tR0K4 -ONuXM1O/darYE3GV/qFLC5lZXEVT+tWeNelaJAw+PRSVqPvmwZ/iLcDuBKHE3/1P -ImzQz9DWaqM4EpVpMww9nQ9nG4Yl68hRVryuHLI3L1XQf4VMl8dgV+/ZoMV932Vp -GZcjXcOCYpoR/WfNrfD3tgokWHpR4OqrPTu3OYiysL7eDyz6L79mPPBRvr7l6CHU -rrbRYxjOeo7GD3eU6zhdpd710EXo9B46fQOBRy32x56F5WiEUubqSUcyAtCqvEtB -SflnnMw7bDbrLjxboefv2zXkMjffst6uJy1S9na2AmlppdBUHr0QhpXhFi7kyu6g -XjN0kd2HN35tbMNVWMGM -=CMyM ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom deleted file mode 100644 index e5070fa74c..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-android-ndk - 5.9.0-react-native - aar - Bugsnag Android NDK - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - compile - - - com.bugsnag - bugsnag-plugin-android-anr - 5.9.0-react-native - compile - - - com.bugsnag - bugsnag-plugin-android-ndk - 5.9.0-react-native - compile - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom.asc deleted file mode 100644 index 25b4e088ad..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/5.9.0-react-native/bugsnag-android-ndk-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5T9IP/RipJWO8c1A/Nuq1l3RpVT/M -YbGqt6peCP0Y+2vxkqKrenBLMBNigua13MtQjCpFDhRMTH8K5xB+SNiH1IbthAiW -ug2LY49B3rIUdi4/N3HFeSIUrWsNmGjykr+5OW51Javk9QoJsMF+1m6NACuEEGvD -SDZMnx2JiQrjLJqMcm2V116qNtkOY8lCQVMq7axqZOVYdRFttxcHs0698EOpPcag -qrVkMlrxqnRA/etytdHvAqEumT1kXOcM2Ck2dV9IMXQIsX3uGkl54oqEwLP9nUwH -SJaKUBI9VFDA8OAg+ym6JM+/AGC0i+ilAQLny/RjpLZG8ILYiNA7y4xb27XZRbn8 -RuDFE5Sbfc+0M7YelSHt692N4lczAqDXEhfvVzrAbjVWprgD2xuF7H/jT52RAjxk -6aUIKDX6PNfSjw/Tv4XP5eeOMUBiU+5oOUcHntYJPeKRqrrIR+VHg7br5TiPudGx -xXr8KxcuulUatvim8fdIY5goo/RejUrZPkfWUkFs0BnEgoMHdHPkMcHnLGbflG5+ -B2iGpsFpZiir31gG0X9MPhwGGKSE+J/ma+Dv9pdNjjQoprscTwMFMyzqiRgEdekS -vwUVr4saKmYgU5vIgVA+OpfPuEu4YUaxaIKlJPhuDC/Tx85bcAt42bQ3EMwvaGKx -6EGvNtgADcML8vOYo8Wk -=wrHh ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/maven-metadata-local.xml deleted file mode 100644 index 90bcad5f02..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android-ndk/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-android-ndk - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101905 - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar deleted file mode 100644 index 6a5b77a8bd..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 8a66db724b..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5Xv4P/126Itr9oV7q33iE/QePQQat -iR7Jvc2btmalp9RrrsRbjyomKhLjycB7Y+Y75fO4fxf552dUY4UPKb3M2jK7011L -Mc7gg4/DkMgZdpHRLRHSbhqZdY68hXIUB/vhO0Mu4ezIwFKdutIFxdvcxwmHq6Ni -m6H3ZX7hpWD5bVqygTtpHB5XwpcGH5pR2weahCRcK21xlfHiHRMxyyd8xD4QlImu -FMQAugjxCxW595vBltjvqxyzqqMdOebR1IygPsYOl/+b4P/vbDuVqQyDy74rb0e9 -lkFubnVwKPjegMgybIefGbq6YOLgBOn2sclgyf0mFR2pnlp0XTVDz86oU5xl3Gno -6ngb5eOUsoos5o3f0m6AaRPYO7uqMl12Rl9NSrtMvGlqQ5HHEgnNDNOJZgFrVya1 -U4dwddxc6ZK4h9GVjExTOdXsM/wRpANu/qzggLfsL0cHL8oFXigw3+UIO4xTxknf -vP+fXJ+x8vaidxYYzMkCfeYDrfBjk6X1t5PKx+8UcavjT2AhKe+5LyG9ISn+QjS+ -/sDexr5/QM2JtCOjRbfE3+Ryk3at9Kqff5GqX/wR+QbXWRYowkCBKPCYA+5/2p/O -xDQhvXzQy8AIR92cTevRZS0diap92j00nTbVkKUW2E5c7et3NKHZFZuZ1r/eLSet -lCEN9+FZP9QzqwtrdV1J -=BBuU ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar deleted file mode 100644 index ca36a26426..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar.asc deleted file mode 100644 index 5bee0bae14..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5bKMQAJbz8/aLJTn3YLwn/TRPL0mr -VEc4hooHIboR5BoZNk8N55ulPK/cRjPWB/SHrWlfCwTUzOkKsHnEI/y0U2qvFkpB -oJ+xvZDKixVI9sw4D/B9YwsDivWwZfNT12nca9Ec3KleXzh4MNJN0ehzcPQbgbFf -Hh2BXgSSDKd89PgARsgjB166GGauxHtc8pYag+uqdc5je3PDilsgdSNx+q3NCdLO -BTMGWFujxL75ETxUn77NWpjo1fBcTiUMCUIMH48Iy2xY0zFhsKvmWKVgzEGlg/nf -yaaPqCXjq8GKYP4KMZr3FoxResI/MgfPBJKSgrqETiC4L54ZEsmkzHwECRG/cPAU -CrFxCnKci4CTUEXDYwq8W5pkwZ3kehnb8l6pBqX9XucdtXhZTR+fHrunYduwLMSv -4KeoClrvCe8wkFST/didVSRXbCOj4sWM+bKiWnVuSIVM+r8uCGZ3UUiekHAYqx5j -2UlZmgKLDQ/8DE4nPzH2AoD/napUP9I3l4QNgMu8I4Xlrs5yeu0JzsZw/+tiXTCH -QscNL2PyUxYvR1CpC2pFcNAtuwIVjfgy/v8WbsWqYA3PGzmbHxsxNkI9Q6dHKc/6 -eehB+zm8nGQqhfpPY+csmxLsxNhpyifEc9fgdYlSdaktSrzl83FfObLC70JYKMgE -a6nEQbVHxiGbEuwv6Se+ -=NL0n ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module deleted file mode 100644 index b46bdc08db..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module +++ /dev/null @@ -1,133 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-android", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-anr", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-ndk", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-5.9.0-react-native.aar", - "url": "bugsnag-android-5.9.0-react-native.aar", - "size": 701, - "sha512": "b000ee5afc2daaab0f09bfa0585c74893e16f8d0712f91e66c8cccc5ea1a17acc866e94de5e2698461ad0ce454d4b4f58398a9603c4f5051b5394f244d001427", - "sha256": "71846d015ea94fa6ed5c27465a23ed7ddc9f92dcdda65c61e4a8dbd90be83874", - "sha1": "e95db02741555d9a9e4d5ef358c353a130460669", - "md5": "db05ceaeec468cebc3e199e87474c64a" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-anr", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-ndk", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-android-5.9.0-react-native.aar", - "url": "bugsnag-android-5.9.0-react-native.aar", - "size": 701, - "sha512": "b000ee5afc2daaab0f09bfa0585c74893e16f8d0712f91e66c8cccc5ea1a17acc866e94de5e2698461ad0ce454d4b4f58398a9603c4f5051b5394f244d001427", - "sha256": "71846d015ea94fa6ed5c27465a23ed7ddc9f92dcdda65c61e4a8dbd90be83874", - "sha1": "e95db02741555d9a9e4d5ef358c353a130460669", - "md5": "db05ceaeec468cebc3e199e87474c64a" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module.asc deleted file mode 100644 index 62dfd7f2eb..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5rgoQALGlklah8Ex9JN5GiEFT85pb -GbLp0Fi5e3UHJsv/4D0brgiwpY2sW+TXkrgV9GdP7DPmxVCTtYVv17hHwLYxU/OR -C3dEaCjcVk/4bE+qjnI6QLfZY2LZ3M8MMUH210iys4KCcy0zl+7Y133awAuIwQyT -5Ha4ds1f/X8NI/0IlwgNWZpliuJYpWxWAg7Snhz0jJzmx/o0EYb1yPqwTQSMLVg5 -MvJY746TqcK24uM2o6t3dGzdQIQjoYiaSQMNXuHYVIZL7kgAUL1elP5xNFQnGp0d -dxqIBZiPlFaZkgg9HWuTl2LsScGfApXqDD/sTwDtXrciQqXoBJgd6x1/2BcOOl4O -ewBLcGKnesh8xt4PQrHvceLTApJItf+jfSKS/FnVQeBR3MLWVYGewiKD/3+2WtgX -z7yDy1UO6g2TDcGs5fZ/QgpIXmiFgTNbjNRDkJiy9MOKBcQmZwvYC1ga7ogqJlih -3zpH+VNSNCudIQUJpIZxyRqbUo31WkQWrCPmc/ZXlNUw8jLS1lL76tX2gZKK5Hx9 -0FfD8ADnJtr+cxr0jW6ivxx572MYq1k9+rMQXE8EMkC6Z3PMKfnHMzWv38WBj1Dw -DsO55VAnpsx61jstYS8tSNjxG+DBDAv4Y5j3XlIRFIK4iuHhTypFMDB/fEMUdzT6 -udvpItgHWrH66tdf+JjR -=Vyj3 ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom deleted file mode 100644 index 018727f268..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-android - 5.9.0-react-native - aar - Bugsnag Android - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - compile - - - com.bugsnag - bugsnag-plugin-android-anr - 5.9.0-react-native - compile - - - com.bugsnag - bugsnag-plugin-android-ndk - 5.9.0-react-native - compile - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom.asc deleted file mode 100644 index 6202c00211..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/5.9.0-react-native/bugsnag-android-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5Q30P/3k84awWZhaKnMdmmESmaeTa -qITpwyuqGX9bYeEj7L9af7gDw0MDc19T6AeesM094M9NMuPseZ+MYVwb+o4q75Ou -Z58I4+mRV1j5YON1wo/2OtVsHcySyF1gJ0BKglXqJ0mu5C9LHWFWJ85GeqpzeEuX -HDAPkYRYza7U+O4KCTBZV4XFQHPkJlzwMpqmgzb4u5o0JJehZwXG5fvUOqyI4VzY -vEryoPUGSeb0TR5aHfa0g7teALxuV4O9ntAm5tse2Y2IxirIE3bCxgEnuE1+GPEx -rvjzfQnvQH29RoD4GgLvKVvx2l2qTYGQA4hcrYTl2cbiw42nai4TmNvcB3yn4bhH -+mtnLlD5/i9GGjU83qtkFb5aMZZWYNskUb0ZyP8uDEBXUF0ktpV51aUhQpsZBvWi -ksztH452ah03TZCY9uuckw/NitPnMILFJnIGzkgkj69T133EH3ypdJXRUJHEYOCc -synh6oAyiEpu7eoA5JO8Ljo7df0vbhr6ABoYmHosEefmYbQ1br4v0/AAVc7Sr3bh -kIOh4r99Rg/axN6K/PhuI45Tbc2zol7Fwx7JVDffD0cgfHfF5JOY1lPnsplERGa0 -YOivOPzGRm4++AIx4pJxZVLJRepSUvCajOH+o2xwUWChrHlfisNa3xH3w9aUA3fv -20c4tu0VCdXSBTMmSZ9U -=GfUV ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-android/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-android/maven-metadata-local.xml deleted file mode 100644 index 289795a1d1..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-android/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-android - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101905 - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar deleted file mode 100644 index 52e8f513e3..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 65ff4fb459..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5HXQQAJJMJvJYwVmpqdhkdIsP2L8A -5JMZcOtkXWv/wt9/CG56/SvvtTNAbo/YAm9/db5Wu1d9IEj13eTjpE7SjBYWMQpc -Ks7ZuA8DhaLO6EaI7J0tHrduRgt4Zo4/AG+3IhmQn02aA5y9yiT5fIqsxf5YGwjK -BoUr4ya4zeX3xil5Jt7xni3OhQsBP1M1hJMxuRXz+rMZfzxWORKIBQbaNef9pvCp -q1IrcKuQ6wN1BQw+RQ0xTXEfL0KORc9ROgUpZ1aDExspsP1jvul07X6Wcw0rG99B -MQ9OjCZ3bV7tGsNLw1rEc1ir+tOjZdy77UbqpmP4RF/5FZrs9/+WCzE4eGcRjZGX -eeH1hcdw3vRLun2MWaI/nJmOWK1Mcz4Yk4UfEb/9X12ADb1vz7r7ux7snwrTuSSI -rxabI05NX/wVCa23zE8TfUfH0BIDY1pE6JI8WYbABHWlPb75CrY3/KmjZMDqN+wt -3/xtGmA8NqlnwMovItZQnA2uB4SCVmA7eMG2we81GgA2op2qlvD10QIEiQE0qzIK -wqeRDMtUV9qP5ixKXKJh30SPTLUQXIy6xfjg4SU50mPqYl0FSCrU8eo/HHSh9H7F -0yQvIaqtjY6nLNFi2yqjIC2xRvgNojhqqLrCtjExIMDcSUZwu5RR7nyg9lTGYX4J -lsS+aWkyx5GJ5zH7UiEu -=QIGf ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar deleted file mode 100644 index c4ae415157..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar.asc deleted file mode 100644 index 86481b7d46..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5f4MP/1qr6Z1w7ZEeR7YSw4ii0bjv -aMIoz3C+heGpW1XtLiW80VIHQhNy4tvMrqesj81JRTIigICCOb7mtBiWLF4YEjA3 -apy4pa/fmDpKAzFpOk1IC4JqIoRpb7SVMw3bqFI3rNwHdcct6PFp+tAGkVZUgPhc -f/x33U9f5xG4/2Ww5k4wmhdS3p8aeq22X9NvIW7AH4zp5y6zD7WPxtb3fQcqq24l -OtubLdeH5Q3/3zRiKOcICqj5sptZeeUtLA5igqMPCEn+Qw5UF997O+mrFbMHLNId -EIvw1ltOUdAKPZjGQWOQ+DneFqzQ8ND8VUbHRPNTT48qiaESiN2fVaKHt1uz1Hsl -L2B56llT1+cU3qP3fXenyDD2K9z+WfoZ0wpj5OFYitbBQYCeIYxXMORGyfSkvjN5 -OI5HD1H/QbYydmH8onrzRilJeFGTDUNz58saURnJYJ7avgHetlEiLTvD4+i+Hr1u -nxmlk2reSTgJkHdyJXq/rzY1W3XzAlEUZs27POxxXGBiotAe1lnwsnVkSnpRKNHp -MESZJ3a9Qr50tismqGi9hMFF3lVv58zKHkr4sQLTTLqVhu2+LKQvdonr6Pm8ZrbT -owRwkLkaJEP456FbYTtiUeaqIUVfquSFz2yNaMzJTscifJAIHnC91zTfR40lCo2l -31KUDMHbv0Gjagl1HxoY -=vYHp ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module deleted file mode 100644 index 7fff049c8a..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module +++ /dev/null @@ -1,105 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-anr", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-android-anr-5.9.0-react-native.aar", - "url": "bugsnag-plugin-android-anr-5.9.0-react-native.aar", - "size": 40884, - "sha512": "4c97467d63a2db238f6a37b589047cd420418469b0b6b05b602354a88c7ddbd8effa0751ae97ff071810c00737bcb126d65f1cb6cc6894f7dfdbff8ab84c01b9", - "sha256": "d054663d727929f91be15aefa6fa677d30a5e5913d5e30539b9a705ad042e08b", - "sha1": "50cb8ce28f086f3c59d3e8173f4fb40e99c5bb21", - "md5": "98c0dadadfd67bdd9ee96705c16ea81e" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-android-anr-5.9.0-react-native.aar", - "url": "bugsnag-plugin-android-anr-5.9.0-react-native.aar", - "size": 40884, - "sha512": "4c97467d63a2db238f6a37b589047cd420418469b0b6b05b602354a88c7ddbd8effa0751ae97ff071810c00737bcb126d65f1cb6cc6894f7dfdbff8ab84c01b9", - "sha256": "d054663d727929f91be15aefa6fa677d30a5e5913d5e30539b9a705ad042e08b", - "sha1": "50cb8ce28f086f3c59d3e8173f4fb40e99c5bb21", - "md5": "98c0dadadfd67bdd9ee96705c16ea81e" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module.asc deleted file mode 100644 index 8ce554cc45..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5B7UP/14IIDRmTGoXbEEPw9ETK2Gb -8A9Qnfd89I0SlxK+KrXxTZYwvWTg/0jrpJjARAl3a6AWjCyulhY0jZHMH2+/EWis -vZ+m8b8bmWx1FcB6QPQSqXQ/1zd9Pt7y6GTyIUPAt1zJ7b/ucV44nBrOeDO/BzKf -w8uZEOrGE81YVSNg9+x8XPfRoCiz6OTOU8pmMwgGNOzPnn8TClxqmuZ/iTp1rD4b -rJ7ZWusftl7U4oFziFUb7yP/ZLosrJV8v1EXW9C8/9C/wT77AwSTPs5crDiy01Dn -4IWwXNsRKzhs6uCd6R7GlS9T/jnHRc61HxIFNAOzA82u9I6HRwiVUnLfyBwoT6KO -eRcFJqGxSCyMfbofKJEnZxz7upFyRRTFWtSfYhI15XtTZmZC48t2bSdj0Xp7tv7U -suj03vz984kxld6+IPFY2460WtxkkyOuiipPPHCn2RmVSe8Xo8KTtqFEzAJI3j7l -ae3mP4oWGpdy6UCL2SAgGYj3z/IgRYNrT+JeHnomylUM7mkOGQin/Eyqs09Yh7Kx -PTIrh77SxEb++IywznisunpSNnp+fGq9PV76f5xJaq7Au3cMXFUFOPCZTJQnFW6h -XVOaBGIxRjwgZQKIWc5ILVSx9ZR64G4DGKHIxy3NXjd668RwvE4IU5GLF1bPXwoh -+rvRCJ0Y1afrXcubfa8N -=fVeT ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom deleted file mode 100644 index 4f43d2728e..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-plugin-android-anr - 5.9.0-react-native - aar - Bugsnag Android ANR - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - compile - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom.asc deleted file mode 100644 index ee1bd8e93d..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/5.9.0-react-native/bugsnag-plugin-android-anr-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5u1QP/1zWrErxSuQqVev1AI0ZEFR6 -5bZBQW4PMz+1cVkFkrbMTg7yvEThvkov0p5sAKfuEuZgqFTPuwU5iLRO9ZeliDMM -0iN8U9npWM3DVBijADuIYDttouMFF3/NZhMCdTiZJh89awG3qdbLvsXRnBlAGCaW -YBpzMP97JioFzwLMaUvsK+8OjdykFX0WF+LTJOv5yxYX4oAAa7UjIZjLBXm1Y4yx -i6bPK0zXFDLf9jstjCdJ/OVOTjoCPCYGDor/2TH4k8ErBwa9E60NhQKQItS9E7lR -NYoUQfgdrZJhyWDsblDOVft2O/fOXEJ0YMIl6vmXQuys9BbtO2so3vrsY2K6zk2O -iFIlRc05VqNFjA4cmzaUTdm5EPicMMaH4NjTvSCqpwunptYC7jDp0j0GrM+9ZnM4 -TmuX6IQsPyzE83kClbm9tce0Di5355N5dJjnZeXuLbYBjdO29y5Z3JYxxeb6r/Qp -c4O1DjVSOTyw8x4soMk3gCeQo9Ghrzoz4BOlxvqqa0P+/wMTDtZ8eTwzkLOi9EFQ -XxrsOTCcZepUlg2W3ug1zrd0Kch4o1wgnIHJONRgLoK2G1y9aR7f/ox0TFIQ4+fE -2qfg2VfBjzhk76104Ydl5H2PyVlOH0HNpoGz9uBJyOiUt3Bls/nGObjhKwIr+sZo -mYqyK2OlNoms0J7dijGc -=lp8x ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/maven-metadata-local.xml deleted file mode 100644 index 10b91602b5..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-anr/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-plugin-android-anr - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101854 - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar deleted file mode 100644 index 5c16aa3771..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 1a4a467b05..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5rE4QALsyEUJCj3egZaIM+BzLyMsi -wrOEiaO+7zSG8go+1juPju+/rN4IjxeUMAQlyqH0r/0u92st4t0VsvSRjbOvRWEL -CDEFLGMRpAXok4Cp6VPASgT5lDWjUY1geg+2eskG7vFOJaEXFDyICxqsEFqLpNuC -AUR4XtdVfGY1Fmi8o1GDp4BcdEBPe77BiTCTT6NTL21PD6q7Yk4s7mmBMKAXbxoQ -WG8nB++lts4tuCncYXCbfperpuOhbvTlfpMjW/rrQKvp1Rx1wsV6+EglOJKHB9iW -oA8beai61ECsQRxIrlewq2zdGdDMcHsBNNefxAc34flSVlDwcBaMcNotLDznZZYK -7TD84t1T20gkVTTsSoCVvCzVKJgZjur28uZEJGL4VtV6giyvrBSjvy3tgxr5/dxG -m7G026U0uWzWKfcYb4OYVOWvM1uj+r/qN0EVCS+Tx24hSa/oBY4Lg3TZe5QSiQLz -tBFHZclug8kOX2vKElu9iGOxmoHWmWhL7zq+OpGDhM6WAnI2XdwjDlD3ovexzHcm -DiLWPGlpt1wkzTAaVDU4autAKLsEVSY1LXfdNH+SwSrnZH4n1fSPDN5agXHCx+Vg -XPhi1BNUtQ33FA6ibdJM6M4cUdysR/S3MudqrnlD1tiPFL04cB03LNR/+PXOwbgy -bWkC0ytiDoOgeRbbCy/r -=wiNc ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar deleted file mode 100644 index 1d2a9d8cb3..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar.asc deleted file mode 100644 index 3bab02ec0c..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5S2sP/jHz1/9HyVVVE+zu/owTthcx -C1iRak774lerQrNSO3RPTfkLQaympDnzwd576pxPOJmMDQP/L1ECSY3kcfEojVuz -+dUf/MkVFE9QPbRxAIHhz6KzLm7xUAEkn1WED/JKpezwouWTCzqPtFODLKlwLUby -KYy4kyPA7wZV1cOwOl32iaSo0p3ky986UQ8k/Tj2g5hKzQX8GZriRRFSETWtT8Hp -65lhE2ipzIRpDBasJ3lSwuqAykiQCbN/gF2OMafFPqXT1pFcQVeUFt0lwzBNI1rv -rwCTgD/owy36ZcqFedHIeNY5+5jKssdEkOSqy3XrUr4n+tdRH7qW93l627wXfgqL -kEjNy2enipmVltW52MJT9rARAB5hYNAXqptdprsBvOa0f6lZ9AFyylwkQD62rFhL -2LxCKf5xvvF7Bs57aBHo19+Y8eHtDUTyh9rIGmrxhNbnILDzwvrwkvri9r+sH07t -HCBWexG4daDRDdunbYj/1UXAUYKtBdPE9zwsLqRBOjtjd1dKH2flSKuS5m5lu2kj -5QgrobzdZfq9D+xoG+I71jZxDeUypjC3H6mU+VyqiD0fc/aRho6+mQcOc2AthuD9 -Ii9bgpobQkzBK2j0GaS+FjuYOUih+xloCe+nMTI9gWrcuya69eKG32bXKFeqT99Q -+y+N1rNGYuBqzc0lqH8r -=k4ma ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module deleted file mode 100644 index 32b94679ee..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module +++ /dev/null @@ -1,105 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-plugin-android-ndk", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-android-ndk-5.9.0-react-native.aar", - "url": "bugsnag-plugin-android-ndk-5.9.0-react-native.aar", - "size": 1111697, - "sha512": "304c8efac4e51b1da5b21d1b5f15d74fc58d5993868eb3a0224b052443d41a76f14cd5ad7feffad17b2783f97ba49c5b4f5ab29c196f3448a42e8dc6f1176379", - "sha256": "8fa50e9d8846c8feeeeb6aa0aff9b1a86813a5bf4fe1749fb1d4319113ddbf18", - "sha1": "92fb76b8e89f450ba5b5d69bd0e537ff359fd201", - "md5": "d47fb85dbd1cc56d92975c17db7b1c8a" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-android-ndk-5.9.0-react-native.aar", - "url": "bugsnag-plugin-android-ndk-5.9.0-react-native.aar", - "size": 1111697, - "sha512": "304c8efac4e51b1da5b21d1b5f15d74fc58d5993868eb3a0224b052443d41a76f14cd5ad7feffad17b2783f97ba49c5b4f5ab29c196f3448a42e8dc6f1176379", - "sha256": "8fa50e9d8846c8feeeeb6aa0aff9b1a86813a5bf4fe1749fb1d4319113ddbf18", - "sha1": "92fb76b8e89f450ba5b5d69bd0e537ff359fd201", - "md5": "d47fb85dbd1cc56d92975c17db7b1c8a" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module.asc deleted file mode 100644 index e1bb2b4eba..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsaAAoJEJAqRX/iyO/5t1IP/jfZu6SkZMotUv3j+rB0w2qx -c7WDob59O8j+wa9NA6KFfxA0PN4qQHb1XtxGLiFtoEv/Brj8mYSqRNllrgo5CNj2 -S8Oz8r4SspH5cM0yoUbcD5rxDYI2MxVxvf/wGllJl0TuSaVfbSdCGHOXZyUFeIAo -80GTzMJbr0juF7gvH5ukgUhLlT5rtjxjrW0U5asrEIASU4VHJEaWiBddCmlFSdvP -G8mHgiYQ7FzueTXiOi6dIn9yyLb5cvKyzOBQLEpBNzBl1+qJfnhij0FImiSC3q4j -+hCuukllaSudU4jdpl36t9ZUYhNY7+OLM+uJBpsSd+Yh09V87qtUp9p4lxpyqWMq -FnkT2gLkdcFI6j6VkhO5ihujMR81n9IljDsYuvSz1l0MNKdwfNBIUG/hTvWXUMAB -vdBBXKw8LBwb6QMluWuEmZ5JiPbCD1a80YzP9JNvPAvSdDjmNjhSfY6j5AmcAq3x -Ffa5Wp6Mmkf58ncH15Sj/KK0pw8592WVQAwn8r2GYExUO2erMiA16UqR2wD3A97v -mF7jWbNHxpoltMpp/F2zan4AFdN1qtqEVFWhw5qSeELv1WDa4cgpxi3xw489MUgc -tCbsBeAspl/nvFeU/GwrpxY6Z5J4R4Mr1kjgK+1+/Dd9Yjk0GxxoCVv2MZ3loWn1 -fefLpLdg6zjdNjyuU9zq -=l1aK ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom deleted file mode 100644 index 8d2acf5e13..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-plugin-android-ndk - 5.9.0-react-native - aar - Bugsnag Android NDK - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - compile - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom.asc deleted file mode 100644 index c86596ec20..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/5.9.0-react-native/bugsnag-plugin-android-ndk-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsZAAoJEJAqRX/iyO/5g+sP/1TfE/W0inK47IhuvIUX8qkt -bT5U5rLb09TbPvkuvpam06zvuPw0i2Xz3i/y4UIMPEpC9KG4QVFE3wPiZTGQRVzq -A8e+pdd9TMmSrrToai1oV/4tTQgxCRKywzCBYy6OSR2w3R2C5wQnh9WaINufdVOJ -8GBs40ov5CexOmqq8dTBNOIhgK47z1xl5/RXInFvqr2Ya99fAUhCHlDgB0WDfiN0 -+7irdcXIH1y9ESyiK6atwMKTGKUwL90SVfOJyIUR0QbkN31VLJtfeAbxqovm+Qbm -NaF4ZUkUHgPYyuUtrn/aVVr+tC632vSl7uqTauvCHZ+h/ejhTGzgbtqG/wRtf+Kn -OyWqMTpd8AvhVo3yWbAsovX5EPFkaz/kHmPDdT5PjE8lWxo7iVK/nVnHIOtdRTYJ -kpRUJxuZMw0G/73YEqXpq8X6Ddhm9ytaSR/wIjVcqu1XiiEwcNFQRo7tP3sY25aI -PTMwcSVDANgcC1sHolEECPInjorPS/L/7ca+JCe9J5ZeRyREkwvIN3ONxQPiIJG8 -HZ+KZDanaLujDAhxnYOY0oEmckjXJlCH91reSc7bAVHUbF7mXNn7G6NBPWgjgolb -fc7DjTGnlQatRM7UOTg64zNxWopGh/rZFvTQdHM0V/nA9m4oZHFgs6R3mQIA8oRl -qEt0jymvkaeyxwZ1NwdE -=k10a ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/maven-metadata-local.xml deleted file mode 100644 index 80760e0244..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-android-ndk/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-plugin-android-ndk - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101906 - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar deleted file mode 100644 index f6642f644b..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar.asc deleted file mode 100644 index 8cab8d63fe..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native-sources.jar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5TFIP/A5TqCidzqoScyo043NQBXG4 -7laZnxKvy0Zc6UN2eIRn3Rbc7rJUFHqzRKTc+2OsUZSztInaXM6F0+tI6NKlJ4KH -+S3UIK42ikbA/aX+uiGGrLehk2tTZHm5550ni7QRbf1zyyCw+hSP+R0DWNafEYoT -ekRk4CilCfJf0fB36jyd5BuWw8nxUzTQhfQbZ6dunwFKrlEJ5ZANmzLEM1awHuk2 -iuxu4rDOy6Os51bAAXm5atMnnaSpLX28CySMEFmdhQgCw1LJRgjIpJBba5NvDCUc -QalfUTsuo4O8He7shT2OcS110vvP3pl0eExrSST/q1InaTesh9+O5iA6tfK9vvF6 -CysFOXR6QNrcesiinyIWVsPSx02b56/OogPIXuWg2P0du/OIuBVuE78Xqi51ZuRU -eDbkq8Hzw5AR81r7uZysOa8brL2j01YOTAOGU/6POdwQ5WLPp57ryUS5ub0BbpLn -upJtUgf4ne0FUAGgK2DQ5R44OIGpEZtJ4ytNv6pB6ZBth5DnDWrD0Lv9Iw04JwVC -yDl8WJl43Imq7GMkh+Eq1QUkTzSndgGZeXTSrid2GDHzXWxNIMTkwiU4rr6UAbRp -+ygSRpWFuRmNwVBE3obgWVjGrqQA/EVEaJYexwQD0emuF2JhibushgX09vuZJJMU -h00Q0Us0grGHflHRzelC -=hX0P ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar deleted file mode 100644 index a725a0ee4d..0000000000 Binary files a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar and /dev/null differ diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar.asc deleted file mode 100644 index d616fa69ee..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.aar.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsPAAoJEJAqRX/iyO/5mBIQAJe6pvX121b9kNj4spN7GSvA -2FKm4QzuNg+V1hN0yKpQMvmdQmelYCmPr4qUNuCoo30YtIl+zCltHOGgDctu50Qc -JB0++dD+JxTjWfBQYRuy5SdTFCs4K+OAb+svEGVY3a1UWXO5m1wEaYLDVQxVdVrp -GJKuEU1N/1Jo8tSZEovaf4PA4Y+cAT7MhSQVNrV2Qy4b8HcBHtaFZ2XKrRt1mYoj -gsR6rfTh7iczfDP2rbv9d2WComerRaRkHDec22GP3NcsiqqDx+88+ZkKhoHv+CGz -OXq0F4L0KeJ9O7lVvttYtIInGip3Mngi9HSOMUHad47BTj1fxg2wc46cdI5mFzu8 -vyZYMuSx/UYZMRQLwEV/KrqFkNx3tormVXsyzoBpqNRxMzaq6PpgvUmPQcTDfkMW -O20cMt9kruQsdhztc6AlpDHnac9w7F3zQXkpaugfN1uO2vfLIrAliz9t8m6sThKl -vvNPojMMRKj86xyAouIHJ6+ZKVdXuHT28iH/MYl24mlIvkCk/Me6hTF3kNe9MZ8L -7/pLun4Kd5d2KAG6jgUG/eecTiqysFsG6ksmLh7AyHhGTqIKtlQwF7LJnXpvi5tj -qX+kcsSjONhWkmu6cRuqP5c5F+bz4t+BCRHHoNzWyYjtUVJMsfwIeZV2HHhLl1RV -euYY9YMAoZZvxprOy5uF -=ACr8 ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module deleted file mode 100644 index c0ece0cd9b..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module +++ /dev/null @@ -1,105 +0,0 @@ -{ - "formatVersion": "1.1", - "component": { - "group": "com.bugsnag", - "module": "bugsnag-plugin-react-native", - "version": "5.9.0-react-native", - "attributes": { - "org.gradle.status": "release" - } - }, - "createdBy": { - "gradle": { - "version": "6.7", - "buildId": "f3xbk7hiwbg6fdqzsegyzfm65q" - } - }, - "variants": [ - { - "name": "releaseApiPublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-api" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-react-native-5.9.0-react-native.aar", - "url": "bugsnag-plugin-react-native-5.9.0-react-native.aar", - "size": 36419, - "sha512": "c080abf8179fe5f911a7e42e9d0dfc84957f18f6e0f412457435c4abced1cf75c251746df82a2a06492ffcb5a9170665238047f92589fc23e311756204f0f362", - "sha256": "32562345ab89984b3b9f185c75e8e18c9d99074c4797cf4751b92ef7205009c3", - "sha1": "63925aeaf2c1cb15e2972f50b0e5b1df7dc0eecf", - "md5": "e830be34f3306f28f575d32ac621a363" - } - ] - }, - { - "name": "releaseRuntimePublication", - "attributes": { - "org.gradle.category": "library", - "org.gradle.dependency.bundling": "external", - "org.gradle.libraryelements": "aar", - "org.gradle.usage": "java-runtime" - }, - "dependencies": [ - { - "group": "com.bugsnag", - "module": "bugsnag-android-core", - "version": { - "requires": "5.9.0-react-native" - } - }, - { - "group": "androidx.annotation", - "module": "annotation", - "version": { - "requires": "1.1.0" - } - }, - { - "group": "org.jetbrains.kotlin", - "module": "kotlin-stdlib", - "version": { - "requires": "1.3.72" - } - } - ], - "files": [ - { - "name": "bugsnag-plugin-react-native-5.9.0-react-native.aar", - "url": "bugsnag-plugin-react-native-5.9.0-react-native.aar", - "size": 36419, - "sha512": "c080abf8179fe5f911a7e42e9d0dfc84957f18f6e0f412457435c4abced1cf75c251746df82a2a06492ffcb5a9170665238047f92589fc23e311756204f0f362", - "sha256": "32562345ab89984b3b9f185c75e8e18c9d99074c4797cf4751b92ef7205009c3", - "sha1": "63925aeaf2c1cb15e2972f50b0e5b1df7dc0eecf", - "md5": "e830be34f3306f28f575d32ac621a363" - } - ] - } - ] -} diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module.asc deleted file mode 100644 index c4a758b82a..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.module.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsPAAoJEJAqRX/iyO/539sQALbqcPA/NBmxMSjGd0lO9HuC -yN+6VLn4yanymGWOx3uTweIM5hUuH4Qe2dAbcn1yY6bDhdRS2G1FTuo7l7ETZX2h -6rgyRoY2kvlSzANMFDq3GDBioKgDPHKCTqgoINq6eSjTLqOfVdXrJyY9mhI4U7Td -C83H9EaadnzFPKvbFL/bxIQeaJ07tgdU7YW/2+N/C09DNhO/VRyWSkgo3WSJFHaq -iLuwtjh1MYsABCeadgo85NNkvn4vadTOzJy/ye4uCPfS7j+xg6oAsV6TbjEhlgeg -jRtYkAG+Bk9NPE9IWOxgJ+1jusar3gRLYuhI8RhPvEW+o5Pb7I/tRtC6tk/Qtl5b -aX3zGQ4EFGMzpJKa3MTVgEbo+Isngpesiwfw4qf4Kj6F9zdRctMkqHV/heOo04IY -/nLNF54Rk2HzXKNjNfEGUaUeyH/TNIHy33uQt/ZDb+16rAU7gRpnBTL9veZGbvns -vhu19YoKCxsgJmkJavZyRskiW5R6NerJkOfPPPVmURB6w6g9tF0B+skdk9QRjIV+ -L0zozMlsC0er3MJcJ8QiWrkvuYfHc8OIW3zdn5NgJqCdOrD3pLaeaqwHrB2H42XV -83uj8Lvy1Kj9Sy2UIwwghp8meWUTbg2QQwcnbmaTMJ4qdZxZWaIjefBNcKCNctgg -SdmSEz6AATgDBCjI38hY -=H5L1 ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom deleted file mode 100644 index 97e10daca1..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 4.0.0 - com.bugsnag - bugsnag-plugin-react-native - 5.9.0-react-native - aar - Bugsnag Android React Native - Official Bugsnag notifier for Android applications - https://bugsnag.com - - - MIT - https://opensource.org/licenses/MIT - repo - - - - - loopj - James Smith - - - - scm:git@github.com:bugsnag/bugsnag-android.git - scm:git@github.com:bugsnag/bugsnag-android.git - https://github.com/bugsnag/bugsnag-android - - - - com.bugsnag - bugsnag-android-core - 5.9.0-react-native - compile - - - androidx.annotation - annotation - 1.1.0 - compile - - - org.jetbrains.kotlin - kotlin-stdlib - 1.3.72 - compile - - - diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom.asc b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom.asc deleted file mode 100644 index 54e7bf6572..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/5.9.0-react-native/bugsnag-plugin-react-native-5.9.0-react-native.pom.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: BCPG v1.64 - -iQIcBAABCgAGBQJgYvsOAAoJEJAqRX/iyO/5jl0P+gPKAG7mOgQXa2cYtqeTuq/w -ks+kn/gyYQPAdF1TaODgXwYJSVh1Qb18+20L8pkn9dk+D40IFvp/mC8i+eJMpI/i -/opSkzyq7X95s/fdJUc5hcprq8zBOOK17G2r9lXuPPluUJVDekWwGjOtLD9EWiHP -wVEiAovsLRgIJ/QSssyIH/viF8mJz0a7XU3KO6doNp2tqIqPHksiANiWdnkUnJM5 -5EgCfiP6us6imxFYpjEyWdsGU9m4ThWj1FB+yKRiNTirrwy7ToVUjVMWDGm+yvdR -gKGn2UHdpPNEhN+W82td/NrAFBnWBg9FUhA4e6in+oT6sUNP9Hi4MW5Ekr/7T4mX -HBO7D61fg5X/pCsam7HlBuCEr44cym3dMhI/D8BPSB79tdQo0HegELTJfR0Ur7f5 -INL5nPOOyUk8CNVv1a0noIcbD6i+w0Nr912wQvqy4RwbS54yajRlLL4mLXbsqLPT -gqI5mwzV1XlU31eXx8cBwFKNCSOxVkzwnRSGKIYMaSxuCv+fHAYYf9YIe/nWPSeE -cj7x6BHdJ4eTHL/WdYFMt+7nbJrYXHeet6+oKgQsGdvDQkaxNghijBdw10FMFhBC -dhEi+NevVOZjz4GYBdOvmUxmoKvFLWLbaqoF3+k/aDmQOAOXRDdpSR/o409GwMro -Y6EckQvhLXUmglWEr75E -=+WRp ------END PGP SIGNATURE----- diff --git a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/maven-metadata-local.xml b/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/maven-metadata-local.xml deleted file mode 100644 index 4d8e9a5bd9..0000000000 --- a/packages/react-native/android/com/bugsnag/bugsnag-plugin-react-native/maven-metadata-local.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - com.bugsnag - bugsnag-plugin-react-native - - 5.9.0-react-native - 5.9.0-react-native - - 5.9.0-react-native - - 20210330101855 - - diff --git a/packages/react-native/ios/.bugsnag-cocoa-version b/packages/react-native/ios/.bugsnag-cocoa-version index fb3d503f98..ebde1cf6d9 100644 --- a/packages/react-native/ios/.bugsnag-cocoa-version +++ b/packages/react-native/ios/.bugsnag-cocoa-version @@ -1 +1 @@ -5a002460e6a1bc0e51505709c7194a35ac340048 +2f5925e6d61217901e8b6e25f9f146aa9f9d3fa1 diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.podspec.json b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.podspec.json index 3a8bc612aa..31fc8c4c46 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.podspec.json +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.podspec.json @@ -1,6 +1,6 @@ { "name": "Bugsnag", - "version": "6.8.4", + "version": "6.9.0", "summary": "The Bugsnag crash reporting framework for Apple platforms.", "homepage": "https://bugsnag.com", "license": "MIT", @@ -9,7 +9,7 @@ }, "source": { "git": "https://github.com/bugsnag/bugsnag-cocoa.git", - "tag": "v6.8.4" + "tag": "v6.9.0" }, "frameworks": [ "Foundation", diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.xcodeproj/project.pbxproj b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.xcodeproj/project.pbxproj index 6b9b82173b..4d14f9cfd4 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.xcodeproj/project.pbxproj +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag.xcodeproj/project.pbxproj @@ -680,6 +680,7 @@ 01840B7425DC26E200F95648 /* BSGEventUploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 01840B6E25DC26E200F95648 /* BSGEventUploader.m */; }; 01840B7525DC26E200F95648 /* BSGEventUploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 01840B6E25DC26E200F95648 /* BSGEventUploader.m */; }; 0187D464255BD7B800C503D9 /* BugsnagApiClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = CB9103632502320A00E9D1E2 /* BugsnagApiClientTest.m */; }; + 019480D42625F3EB00E833ED /* BSGAppKitTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 019480D32625F3EB00E833ED /* BSGAppKitTests.m */; }; 01B14C56251CE55F00118748 /* report-react-native-promise-rejection.json in Resources */ = {isa = PBXBuildFile; fileRef = 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */; }; 01B14C57251CE55F00118748 /* report-react-native-promise-rejection.json in Resources */ = {isa = PBXBuildFile; fileRef = 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */; }; 01B14C58251CE55F00118748 /* report-react-native-promise-rejection.json in Resources */ = {isa = PBXBuildFile; fileRef = 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */; }; @@ -1317,12 +1318,15 @@ 0163BF5825823D8D008DC28B /* NotificationBreadcrumbTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationBreadcrumbTests.m; sourceTree = ""; }; 016875C4258D003200DFFF69 /* NSUserDefaultsStub.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NSUserDefaultsStub.h; sourceTree = ""; }; 016875C5258D003200DFFF69 /* NSUserDefaultsStub.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NSUserDefaultsStub.m; sourceTree = ""; }; + 017824BD262D65A000D18AFA /* Bugsnag.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Bugsnag.xcconfig; sourceTree = ""; }; 01840B6D25DC26E200F95648 /* BSGEventUploader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BSGEventUploader.h; sourceTree = ""; }; 01840B6E25DC26E200F95648 /* BSGEventUploader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSGEventUploader.m; sourceTree = ""; }; 01937CF9257A7B4C00F2DE31 /* Bugsnag+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Bugsnag+Private.h"; sourceTree = ""; }; 01937D09257A7ED000F2DE31 /* BugsnagSessionTracker+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagSessionTracker+Private.h"; sourceTree = ""; }; 01937D11257A814D00F2DE31 /* BugsnagMetadata+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagMetadata+Private.h"; sourceTree = ""; }; 01937D2E257A83A900F2DE31 /* BugsnagApp+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagApp+Private.h"; sourceTree = ""; }; + 019480C42625EE9800E833ED /* BSGAppKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BSGAppKit.h; sourceTree = ""; }; + 019480D32625F3EB00E833ED /* BSGAppKitTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BSGAppKitTests.m; sourceTree = ""; }; 0195FC3B256BC81400DE6646 /* BugsnagEvent+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagEvent+Private.h"; sourceTree = ""; }; 0198762E2567D5AB000A7AF3 /* BugsnagStackframe+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BugsnagStackframe+Private.h"; sourceTree = ""; }; 01B14C55251CE55F00118748 /* report-react-native-promise-rejection.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "report-react-native-promise-rejection.json"; sourceTree = ""; }; @@ -1641,6 +1645,7 @@ 00AD1C6824869B0E00A27979 = { isa = PBXGroup; children = ( + 017824BD262D65A000D18AFA /* Bugsnag.xcconfig */, 01C2769B2601F44D006901EA /* CHANGELOG.md */, 01C2769C2601F455006901EA /* CONTRIBUTING.md */, 00E636B2248702A1006CBF1A /* README.md */, @@ -1699,6 +1704,7 @@ 00AD1C7F24869B0E00A27979 /* Tests */ = { isa = PBXGroup; children = ( + 019480D32625F3EB00E833ED /* BSGAppKitTests.m */, 00896A3F2486DBDD00DC48C2 /* BSGConfigurationBuilderTests.m */, 008966C62486D43600DC48C2 /* BSGConnectivityTest.m */, 01BDB1CE25DEBF4600A91FAF /* BSGEventUploadKSCrashReportOperationTests.m */, @@ -1831,6 +1837,7 @@ 008969142486DAD000DC48C2 /* BSG_RFC3339DateTool.m */, 010FF28225ED2A8D00E4F2B0 /* BSGAppHangDetector.h */, 010FF28325ED2A8D00E4F2B0 /* BSGAppHangDetector.m */, + 019480C42625EE9800E833ED /* BSGAppKit.h */, CBCF77A125010648004AF22A /* BSGJSONSerialization.h */, CBCF77A225010648004AF22A /* BSGJSONSerialization.m */, 008968112486DA5600DC48C2 /* BSGSerialization.h */, @@ -2838,6 +2845,7 @@ 008967132486D43700DC48C2 /* BugsnagEventTests.m in Sources */, 0089675B2486D43700DC48C2 /* BugsnagEnabledBreadcrumbTest.m in Sources */, 008966EC2486D43700DC48C2 /* BugsnagDeviceTest.m in Sources */, + 019480D42625F3EB00E833ED /* BSGAppKitTests.m in Sources */, 008967462486D43700DC48C2 /* BugsnagTests.m in Sources */, 008967A62486D43700DC48C2 /* KSString_Tests.m in Sources */, 004E353D2487B3B8007FBAE4 /* BugsnagSwiftTests.swift in Sources */, @@ -3177,6 +3185,7 @@ /* Begin XCBuildConfiguration section */ 00AD1C8424869B0E00A27979 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 017824BD262D65A000D18AFA /* Bugsnag.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; APPLICATION_EXTENSION_API_ONLY = YES; @@ -3246,12 +3255,12 @@ SDKROOT = iphoneos; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - WARNING_CFLAGS = "-Werror=incomplete-implementation"; }; name = Debug; }; 00AD1C8524869B0E00A27979 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 017824BD262D65A000D18AFA /* Bugsnag.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; APPLICATION_EXTENSION_API_ONLY = YES; @@ -3315,7 +3324,6 @@ VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - WARNING_CFLAGS = "-Werror=incomplete-implementation"; }; name = Release; }; @@ -3369,6 +3377,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.3; LD_RUNPATH_SEARCH_PATHS = ( @@ -3388,6 +3397,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.3; LD_RUNPATH_SEARCH_PATHS = ( @@ -3406,6 +3416,7 @@ 00AD1CBF24869C1200A27979 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_MODULES_AUTOLINK = NO; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; DEFINES_MODULE = YES; @@ -3428,6 +3439,7 @@ 00AD1CC024869C1200A27979 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_MODULES_AUTOLINK = NO; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; DEFINES_MODULE = YES; @@ -3452,6 +3464,7 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -3472,6 +3485,7 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -3535,6 +3549,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -3555,6 +3570,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = ./Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BSGNotificationBreadcrumbs.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BSGNotificationBreadcrumbs.m index aeed4a1b4e..87c1f8c0de 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BSGNotificationBreadcrumbs.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BSGNotificationBreadcrumbs.m @@ -15,7 +15,7 @@ #if TARGET_OS_IOS || TARGET_OS_TV #import "BSGUIKit.h" #else -#import +#import "BSGAppKit.h" #endif @@ -24,7 +24,7 @@ @interface BSGNotificationBreadcrumbs () -@property NSDictionary *notificationNameMap; +@property (nonatomic) NSDictionary *notificationNameMap; @end @@ -37,7 +37,7 @@ - (instancetype)initWithConfiguration:(BugsnagConfiguration *)configuration _configuration = configuration; _notificationCenter = NSNotificationCenter.defaultCenter; #if TARGET_OS_OSX - _workspaceNotificationCenter = NSWorkspace.sharedWorkspace.notificationCenter; + _workspaceNotificationCenter = [NSWORKSPACE sharedWorkspace].notificationCenter; #endif _breadcrumbSink = breadcrumbSink; _notificationNameMap = @{ @@ -261,7 +261,7 @@ - (void)addBreadcrumbForNotification:(NSNotification *)notification { [self addBreadcrumbWithType:BSGBreadcrumbTypeState forNotificationName:notification.name]; } -- (void)addBreadcrumbForTableViewNotification:(NSNotification *)notification { +- (void)addBreadcrumbForTableViewNotification:(__attribute__((unused)) NSNotification *)notification { #if TARGET_OS_IOS || TARGET_OS_TV NSIndexPath *indexPath = ((UITableView *)notification.object).indexPathForSelectedRow; [self addBreadcrumbWithType:BSGBreadcrumbTypeNavigation forNotificationName:notification.name metadata: @@ -273,15 +273,15 @@ - (void)addBreadcrumbForTableViewNotification:(NSNotification *)notification { #endif } -- (void)addBreadcrumbForMenuItemNotification:(NSNotification *)notification { +- (void)addBreadcrumbForMenuItemNotification:(__attribute__((unused)) NSNotification *)notification { #if TARGET_OS_OSX NSMenuItem *menuItem = [[notification userInfo] valueForKey:@"MenuItem"]; [self addBreadcrumbWithType:BSGBreadcrumbTypeState forNotificationName:notification.name metadata: - [menuItem isKindOfClass:[NSMenuItem class]] ? @{BSGKeyAction : menuItem.title} : nil]; + [menuItem isKindOfClass:NSMENUITEM] ? @{BSGKeyAction : menuItem.title} : nil]; #endif } -- (void)addBreadcrumbForControlNotification:(NSNotification *)notification { +- (void)addBreadcrumbForControlNotification:(__attribute__((unused)) NSNotification *)notification { #if TARGET_OS_IOS NSString *label = ((UIControl *)notification.object).accessibilityLabel; [self addBreadcrumbWithType:BSGBreadcrumbTypeUser forNotificationName:notification.name metadata: diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BugsnagBreadcrumbs.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BugsnagBreadcrumbs.m index ce85805dcd..d622a2a124 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BugsnagBreadcrumbs.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Breadcrumbs/BugsnagBreadcrumbs.m @@ -31,11 +31,11 @@ @interface BugsnagBreadcrumbs () -@property (readonly) NSString *breadcrumbsPath; +@property (readonly, nonatomic) NSString *breadcrumbsPath; -@property BugsnagConfiguration *config; -@property unsigned int nextFileNumber; -@property unsigned int maxBreadcrumbs; +@property (nonatomic) BugsnagConfiguration *config; +@property (nonatomic) unsigned int nextFileNumber; +@property (nonatomic) unsigned int maxBreadcrumbs; @end @@ -144,8 +144,8 @@ - (void)writeBreadcrumbData:(NSData *)data toFileNumber:(unsigned int)fileNumber } if (fileNumber >= self.maxBreadcrumbs) { - NSString *path = [self pathForFileNumber:fileNumber - self.maxBreadcrumbs]; - if (![[NSFileManager defaultManager] removeItemAtPath:path error:&error]) { + NSString *oldPath = [self pathForFileNumber:fileNumber - self.maxBreadcrumbs]; + if (![[NSFileManager defaultManager] removeItemAtPath:oldPath error:&error]) { bsg_log_err(@"Unable to delete old breadcrumb: %@", error); } } @@ -224,7 +224,7 @@ void BugsnagBreadcrumbsWriteCrashReport(const BSG_KSCrashReportWriter *writer) { writer->beginArray(writer, "breadcrumbs"); for (unsigned int i = g_context.firstFileNumber; i < g_context.nextFileNumber; i++) { int result = snprintf(path, sizeof(path), "%s/%u.json", g_context.directoryPath, i); - if (result < 0 || result >= sizeof(path)) { + if (result < 0 || result >= (int)sizeof(path)) { bsg_log_err(@"Breadcrumb path is too long"); continue; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Bugsnag.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Bugsnag.m index d7d71d0ccc..c054587463 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Bugsnag.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Bugsnag.m @@ -192,7 +192,7 @@ + (void)leaveBreadcrumbWithMessage:(NSString *_Nonnull)message + (NSArray *_Nonnull)breadcrumbs { if ([self bugsnagStarted]) { - return self.client.breadcrumbs.breadcrumbs; + return self.client.breadcrumbs.breadcrumbs ?: @[]; } else { return @[]; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.h index 4f3c8bac91..e138f36b30 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.h @@ -12,13 +12,9 @@ #import "BSG_KSCrashType.h" #import "BugsnagConfiguration.h" -@class BugsnagNotifier; - @interface BugsnagCrashSentry : NSObject -- (void)install:(BugsnagConfiguration *)config - notifier:(BugsnagNotifier *)notifier - onCrash:(BSGReportCallback)onCrash; +- (void)install:(BugsnagConfiguration *)config onCrash:(BSGReportCallback)onCrash; - (BSG_KSCrashType)mapKSToBSGCrashTypes:(BugsnagErrorTypes *)errorTypes; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.m index 0c43a11ea2..be960b4bbb 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagCrashSentry.m @@ -19,9 +19,7 @@ @implementation BugsnagCrashSentry -- (void)install:(BugsnagConfiguration *)config - notifier:(BugsnagNotifier *)notifier - onCrash:(BSGReportCallback)onCrash +- (void)install:(BugsnagConfiguration *)config onCrash:(BSGReportCallback)onCrash { BSG_KSCrash *ksCrash = [BSG_KSCrash sharedInstance]; ksCrash.introspectMemory = NO; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker+Private.h index 776444bab3..2d0572b000 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker+Private.h @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN @property (copy, nonatomic) NSString *codeBundleId; -@property (nullable) BugsnagSession *currentSession; +@property (nullable, nonatomic) BugsnagSession *currentSession; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker.m index dc4dc6d80e..28feab0d7a 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSessionTracker.m @@ -29,7 +29,7 @@ NSString *const BSGSessionUpdateNotification = @"BugsnagSessionChanged"; @interface BugsnagSessionTracker () -@property (weak, nonatomic) BugsnagConfiguration *config; +@property (strong, nonatomic) BugsnagConfiguration *config; @property (weak, nonatomic) BugsnagClient *client; @property (strong, nonatomic) BugsnagSessionFileStore *sessionStore; @property (strong, nonatomic) BugsnagSessionTrackingApiClient *apiClient; @@ -40,7 +40,7 @@ @interface BugsnagSessionTracker () */ @property (nonatomic, strong, readonly) SessionTrackerCallback callback; -@property NSMutableDictionary *extraRuntimeInfo; +@property (nonatomic) NSMutableDictionary *extraRuntimeInfo; @end @implementation BugsnagSessionTracker @@ -111,7 +111,7 @@ - (void)startNewSessionIfAutoCaptureEnabled { - (void)startNewSessionWithAutoCaptureValue:(BOOL)isAutoCaptured { NSSet *releaseStages = self.config.enabledReleaseStages; - if (releaseStages != nil && ![releaseStages containsObject:self.config.releaseStage]) { + if (releaseStages != nil && ![releaseStages containsObject:self.config.releaseStage ?: @""]) { return; } if (self.config.sessionURL == nil) { diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSystemState.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSystemState.m index 38b5db6c18..d4ce2b1e86 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSystemState.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/BugsnagSystemState.m @@ -11,7 +11,7 @@ #import "BugsnagSystemState.h" #if TARGET_OS_OSX -#import +#import "BSGAppKit.h" #else #import "BSGUIKit.h" #endif @@ -79,7 +79,7 @@ id blankIfNil(id value) { bool isActive = true; #if TARGET_OS_OSX // MacOS "active" serves the same purpose as "foreground" in iOS - isInForeground = [NSApplication sharedApplication].active; + isInForeground = [NSAPPLICATION sharedApplication].active; #else UIApplicationState appState = [BSG_KSSystemInfo currentAppState]; isInForeground = [BSG_KSSystemInfo isInForeground:appState]; @@ -171,44 +171,52 @@ - (instancetype)initWithConfiguration:(BugsnagConfiguration *)config { __weak __typeof__(self) weakSelf = self; NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; #if TARGET_OS_OSX - [center addObserverForName:NSApplicationWillTerminateNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:NSApplicationWillTerminateNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:YES forKey:SYSTEMSTATE_APP_WAS_TERMINATED]; // No need to update since we are shutting down. }]; // MacOS "active" serves the same purpose as "foreground" in iOS - [center addObserverForName:NSApplicationDidBecomeActiveNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:NSApplicationDidBecomeActiveNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:YES forKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; [strongSelf setValue:@YES forAppKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; }]; - [center addObserverForName:NSApplicationDidResignActiveNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:NSApplicationDidResignActiveNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:NO forKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; [strongSelf setValue:@NO forAppKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; }]; #else - [center addObserverForName:UIApplicationWillTerminateNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:UIApplicationWillTerminateNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:YES forKey:SYSTEMSTATE_APP_WAS_TERMINATED]; // No need to update since we are shutting down. }]; - [center addObserverForName:UIApplicationWillEnterForegroundNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:UIApplicationWillEnterForegroundNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:YES forKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; [strongSelf setValue:@YES forAppKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; }]; - [center addObserverForName:UIApplicationDidEnterBackgroundNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:UIApplicationDidEnterBackgroundNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:NO forKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; [strongSelf setValue:@NO forAppKey:SYSTEMSTATE_APP_IS_IN_FOREGROUND]; }]; - [center addObserverForName:UIApplicationDidBecomeActiveNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:UIApplicationDidBecomeActiveNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:YES forKey:SYSTEMSTATE_APP_IS_ACTIVE]; [strongSelf setValue:@YES forAppKey:SYSTEMSTATE_APP_IS_ACTIVE]; }]; - [center addObserverForName:UIApplicationWillResignActiveNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { + [center addObserverForName:UIApplicationWillResignActiveNotification object:nil queue:nil + usingBlock:^(__attribute__((unused)) NSNotification * _Nonnull note) { __strong __typeof__(self) strongSelf = weakSelf; [strongSelf.kvStore setBoolean:NO forKey:SYSTEMSTATE_APP_IS_ACTIVE]; [strongSelf setValue:@NO forAppKey:SYSTEMSTATE_APP_IS_ACTIVE]; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+AppHangs.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+AppHangs.m index 0b8502b2fa..3f36a7ce29 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+AppHangs.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+AppHangs.m @@ -55,7 +55,7 @@ - (void)appHangDetectedWithThreads:(nonnull NSArray *)threads { handledState:handledState user:self.configuration.user metadata:[self.metadata deepCopy] - breadcrumbs:self.breadcrumbs.breadcrumbs + breadcrumbs:self.breadcrumbs.breadcrumbs ?: @[] errors:@[error] threads:threads session:self.sessionTracker.runningSession]; @@ -75,7 +75,7 @@ - (void)appHangEnded { const BOOL fatalOnly = self.configuration.appHangThresholdMillis == BugsnagAppHangThresholdFatalOnly; if (!fatalOnly && self.appHangEvent) { - [self notifyInternal:self.appHangEvent block:nil]; + [self notifyInternal:(BugsnagEvent * _Nonnull)self.appHangEvent block:nil]; } self.appHangEvent = nil; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+OutOfMemory.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+OutOfMemory.m index 944ee0a24f..806a9a6dbb 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+OutOfMemory.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+OutOfMemory.m @@ -33,7 +33,10 @@ - (BugsnagEvent *)generateOutOfMemoryEvent { device.orientation = self.stateMetadataFromLastLaunch[BSGKeyDeviceState][BSGKeyOrientation]; BugsnagMetadata *metadata = [[BugsnagMetadata alloc] initWithDictionary:self.metadataFromLastLaunch ?: @{}]; - [metadata addMetadata:self.stateMetadataFromLastLaunch[BSGKeyDeviceState] toSection:BSGKeyDevice]; + NSDictionary *deviceState = self.stateMetadataFromLastLaunch[BSGKeyDeviceState]; + if ([deviceState isKindOfClass:[NSDictionary class]]) { + [metadata addMetadata:deviceState toSection:BSGKeyDevice]; + } NSDictionary *sessionDict = self.systemState.lastLaunchState[BSGKeySession]; BugsnagSession *session = sessionDict ? [[BugsnagSession alloc] initWithDictionary:sessionDict] : nil; @@ -49,11 +52,11 @@ - (BugsnagEvent *)generateOutOfMemoryEvent { [[BugsnagEvent alloc] initWithApp:app device:device handledState:[BugsnagHandledState handledStateWithSeverityReason:LikelyOutOfMemory] - user:session.user + user:session.user ?: [[BugsnagUser alloc] init] metadata:metadata - breadcrumbs:self.breadcrumbs.breadcrumbs + breadcrumbs:self.breadcrumbs.breadcrumbs ?: @[] errors:@[error] - threads:nil + threads:@[] session:session]; return event; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+Private.h index a610e89234..ca5f9b7132 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient+Private.h @@ -39,11 +39,11 @@ NS_ASSUME_NONNULL_BEGIN @property (nullable, nonatomic) NSString *codeBundleId; -@property (readonly) NSString *configMetadataFile; +@property (readonly, nonatomic) NSString *configMetadataFile; -@property (nullable) NSDictionary *configMetadataFromLastLaunch; +@property (nullable, nonatomic) NSDictionary *configMetadataFromLastLaunch; -@property (nullable, retain, nonatomic) BugsnagConfiguration *configuration; +@property (retain, nonatomic) BugsnagConfiguration *configuration; @property (strong, nonatomic) BugsnagCrashSentry *crashSentry; @@ -52,7 +52,7 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) BSGEventUploader *eventUploader; -@property NSMutableDictionary *extraRuntimeInfo; +@property (nonatomic) NSMutableDictionary *extraRuntimeInfo; #if TARGET_OS_IOS @property (strong, nonatomic) NSString *lastOrientation; @@ -60,9 +60,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) BugsnagMetadata *metadata; // Used in BugsnagReactNative -@property (readonly) NSString *metadataFile; +@property (readonly, nonatomic) NSString *metadataFile; -@property (nullable) NSDictionary *metadataFromLastLaunch; +@property (nullable, nonatomic) NSDictionary *metadataFromLastLaunch; @property (strong, nonatomic) BugsnagNotifier *notifier; // Used in BugsnagReactNative @@ -76,9 +76,9 @@ NS_ASSUME_NONNULL_BEGIN @property (strong, nonatomic) NSMutableArray *stateEventBlocks; -@property (readonly) NSString *stateMetadataFile; +@property (readonly, nonatomic) NSString *stateMetadataFile; -@property (nullable) NSDictionary *stateMetadataFromLastLaunch; +@property (nullable, nonatomic) NSDictionary *stateMetadataFromLastLaunch; @property (strong, nonatomic) BugsnagSystemState *systemState; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient.m index 9845271f1d..ed4be81456 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient.m @@ -81,7 +81,7 @@ #if BSG_PLATFORM_IOS #import "BSGUIKit.h" #elif BSG_PLATFORM_OSX -#import +#import "BSGAppKit.h" #endif NSString *const BSTabCrash = @"crash"; @@ -123,7 +123,7 @@ - (NSDictionary *)BSG_mergedInto:(NSDictionary *)dest; * * @param writer report writer which will receive updated metadata */ -void BSSerializeDataCrashHandler(const BSG_KSCrashReportWriter *writer, int type) { +void BSSerializeDataCrashHandler(const BSG_KSCrashReportWriter *writer, __attribute__((unused)) int type) { BOOL isCrash = YES; if (hasRecordedSessions) { // a session is available // persist session info @@ -223,9 +223,9 @@ void BSGWriteSessionCrashData(BugsnagSession *session) { @interface BugsnagClient () -@property BSGNotificationBreadcrumbs *notificationBreadcrumbs; +@property (nonatomic) BSGNotificationBreadcrumbs *notificationBreadcrumbs; -@property (weak) NSTimer *appLaunchTimer; +@property (weak, nonatomic) NSTimer *appLaunchTimer; @end @@ -249,7 +249,7 @@ - (instancetype)initWithConfiguration:(BugsnagConfiguration *)configuration { _configuration = [configuration copy]; _state = [[BugsnagMetadata alloc] initWithDictionary:@{BSGKeyApp: @{BSGKeyIsLaunching: @YES}}]; self.notifier = [BugsnagNotifier new]; - self.systemState = [[BugsnagSystemState alloc] initWithConfiguration:self.configuration]; + self.systemState = [[BugsnagSystemState alloc] initWithConfiguration:configuration]; BSGFileLocations *fileLocations = [BSGFileLocations current]; @@ -352,7 +352,7 @@ - (void)notifyObservers:(BugsnagStateEvent *)event { - (void)start { [self.configuration validate]; - [self.crashSentry install:self.configuration notifier:self.notifier onCrash:&BSSerializeDataCrashHandler]; + [self.crashSentry install:self.configuration onCrash:&BSSerializeDataCrashHandler]; [self.systemState recordAppUUID]; // Needs to be called after crashSentry installed but before -computeDidCrashLastLaunch [self computeDidCrashLastLaunch]; [self.breadcrumbs removeAllBreadcrumbs]; @@ -418,7 +418,7 @@ - (void)start { [self.pluginClient loadPlugins]; if (self.configuration.launchDurationMillis > 0) { - self.appLaunchTimer = [NSTimer scheduledTimerWithTimeInterval:self.configuration.launchDurationMillis / 1000.0 + self.appLaunchTimer = [NSTimer scheduledTimerWithTimeInterval:(double)self.configuration.launchDurationMillis / 1000.0 target:self selector:@selector(appLaunchTimerFired:) userInfo:nil repeats:NO]; } @@ -428,7 +428,7 @@ - (void)start { } if (self.eventFromLastLaunch) { - [self.eventUploader uploadEvent:self.eventFromLastLaunch completionHandler:nil]; + [self.eventUploader uploadEvent:(BugsnagEvent * _Nonnull)self.eventFromLastLaunch completionHandler:nil]; self.eventFromLastLaunch = nil; } @@ -444,7 +444,7 @@ - (void)start { self.stateMetadataFromLastLaunch = nil; } -- (void)appLaunchTimerFired:(NSTimer *)timer { +- (void)appLaunchTimerFired:(__attribute__((unused)) NSTimer *)timer { [self markLaunchCompleted]; } @@ -467,7 +467,7 @@ - (void)sendLaunchCrashSynchronously { dispatch_semaphore_signal(semaphore); }; if (self.eventFromLastLaunch) { - [self.eventUploader uploadEvent:self.eventFromLastLaunch completionHandler:completionHandler]; + [self.eventUploader uploadEvent:(BugsnagEvent * _Nonnull)self.eventFromLastLaunch completionHandler:completionHandler]; self.eventFromLastLaunch = nil; } else { [self.eventUploader uploadLatestStoredEvent:completionHandler]; @@ -519,10 +519,12 @@ - (BOOL)didLikelyOOM { } // If the app code changed between launches, assume no OOM. - if (![prevAppState[SYSTEMSTATE_APP_VERSION] isEqualToString:currAppState[SYSTEMSTATE_APP_VERSION]]) { + NSString *currentAppVersion = currAppState[SYSTEMSTATE_APP_VERSION]; + if (!currentAppVersion || ![prevAppState[SYSTEMSTATE_APP_VERSION] isEqualToString:currentAppVersion]) { return NO; } - if (![prevAppState[SYSTEMSTATE_APP_BUNDLE_VERSION] isEqualToString:currAppState[SYSTEMSTATE_APP_BUNDLE_VERSION]]) { + NSString *currentAppBundleVersion = currAppState[SYSTEMSTATE_APP_BUNDLE_VERSION]; + if (!currentAppBundleVersion || ![prevAppState[SYSTEMSTATE_APP_BUNDLE_VERSION] isEqualToString:currentAppBundleVersion]) { return NO; } @@ -613,7 +615,7 @@ - (void)setStarted:(BOOL)started { /** * Removes observers and listeners to prevent allocations when the app is terminated */ -- (void)unsubscribeFromNotifications:(id)sender { +- (void)unsubscribeFromNotifications:(__attribute__((unused)) id)sender { [[NSNotificationCenter defaultCenter] removeObserver:self]; [BSGConnectivity stopMonitoring]; @@ -646,11 +648,11 @@ - (void)watchLifecycleEvents:(NSNotificationCenter *)center { object:nil]; } -- (void)willEnterForeground:(id)sender { +- (void)willEnterForeground:(__attribute__((unused)) id)sender { [self.sessionTracker handleAppForegroundEvent]; } -- (void)willEnterBackground:(id)sender { +- (void)willEnterBackground:(__attribute__((unused)) id)sender { [self.sessionTracker handleAppBackgroundEvent]; } @@ -711,7 +713,7 @@ - (void)leaveBreadcrumbWithMessage:(NSString *_Nonnull)message andType:(BSGBreadcrumbType)type { [self addBreadcrumbWithBlock:^(BugsnagBreadcrumb *_Nonnull crumbs) { crumbs.message = message; - crumbs.metadata = metadata; + crumbs.metadata = metadata ?: @{}; crumbs.type = type; }]; } @@ -763,7 +765,7 @@ - (void)removeOnBreadcrumbBlock:(BugsnagOnBreadcrumbBlock _Nonnull)block { // MARK: - Other methods // ============================================================================= -- (void)setContext:(NSString *_Nullable)context { +- (void)setContext:(nullable NSString *)context { self.configuration.context = context; [self notifyObservers:[[BugsnagStateEvent alloc] initWithName:kStateEventContext data:context]]; } @@ -864,7 +866,7 @@ - (void)notify:(NSException *)exception * 2. -[BugsnagClient notifyError:block:] * 3. -[BugsnagClient notify:handledState:block:] */ - int depth = 3; + NSUInteger depth = 3; NSArray *callStack = exception.callStackReturnAddresses; if (!callStack.count) { @@ -894,7 +896,7 @@ - (void)notify:(NSException *)exception handledState:handledState user:self.user metadata:metadata - breadcrumbs:self.breadcrumbs.breadcrumbs + breadcrumbs:self.breadcrumbs.breadcrumbs ?: @[] errors:@[error] threads:threads session:self.sessionTracker.runningSession]; @@ -977,7 +979,7 @@ - (void)addAutoBreadcrumbForEvent:(BugsnagEvent *)event { } [self addAutoBreadcrumbOfType:BSGBreadcrumbTypeError - withMessage:event.errors[0].errorClass + withMessage:event.errors[0].errorClass ?: @"" andMetadata:metadata]; } @@ -1001,7 +1003,7 @@ - (void)metadataChanged:(BugsnagMetadata *)metadata { * @param notification The change notification */ #if BSG_PLATFORM_IOS -- (void)batteryChanged:(NSNotification *)notification { +- (void)batteryChanged:(__attribute__((unused)) NSNotification *)notification { if (![UIDEVICE currentDevice]) { return; } @@ -1059,7 +1061,7 @@ - (void)orientationChanged:(NSNotification *)notification { self.lastOrientation = orientation; } -- (void)lowMemoryWarning:(NSNotification *)notif { +- (void)lowMemoryWarning:(__attribute__((unused)) NSNotification *)notif { [self.state addMetadata:[BSG_RFC3339DateTool stringFromDate:[NSDate date]] withKey:BSEventLowMemoryWarning toSection:BSGKeyDeviceState]; @@ -1179,7 +1181,7 @@ - (NSArray *)collectThreads:(BOOL)unhandled { // discard the following // 1. [BugsnagReactNative getPayloadInfo:resolve:reject:] // 2. [BugsnagClient collectThreads:] - int depth = 2; + NSUInteger depth = 2; NSArray *callStack = BSGArraySubarrayFromIndex(NSThread.callStackReturnAddresses, depth); BSGThreadSendPolicy sendThreads = self.configuration.sendThreads; BOOL recordAllThreads = sendThreads == BSGThreadSendPolicyAlways diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BSGConfigurationBuilder.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BSGConfigurationBuilder.m index 52312be739..846b544ffa 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BSGConfigurationBuilder.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BSGConfigurationBuilder.m @@ -98,11 +98,13 @@ + (void)loadEndpoints:(BugsnagConfiguration *)config options:(NSDictionary *)opt if (options[BSGKeyEndpoints] && [options[BSGKeyEndpoints] isKindOfClass:[NSDictionary class]]) { NSDictionary *endpoints = options[BSGKeyEndpoints]; - if ([endpoints[BSGKeyNotifyEndpoint] isKindOfClass:[NSString class]]) { - config.endpoints.notify = endpoints[BSGKeyNotifyEndpoint]; + NSString *notify = endpoints[BSGKeyNotifyEndpoint]; + if ([notify isKindOfClass:[NSString class]]) { + config.endpoints.notify = notify; } - if ([endpoints[BSGKeySessionsEndpoint] isKindOfClass:[NSString class]]) { - config.endpoints.sessions = endpoints[BSGKeySessionsEndpoint]; + NSString *sessions = endpoints[BSGKeySessionsEndpoint]; + if ([sessions isKindOfClass:[NSString class]]) { + config.endpoints.sessions = sessions; } } } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BugsnagConfiguration.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BugsnagConfiguration.m index 58c421fb60..ab9601d851 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BugsnagConfiguration.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BugsnagConfiguration.m @@ -77,7 +77,7 @@ + (instancetype)loadConfigFromOptions:(NSDictionary *)options { * * @param zone This parameter is ignored. Memory zones are no longer used by Objective-C. */ -- (nonnull id)copyWithZone:(nullable NSZone *)zone { +- (nonnull id)copyWithZone:(nullable __attribute__((unused)) NSZone *)zone { BugsnagConfiguration *copy = [[BugsnagConfiguration alloc] initWithApiKey:[self.apiKey copy]]; // Omit apiKey - it's set explicitly in the line above [copy setAppHangThresholdMillis:self.appHangThresholdMillis]; @@ -265,7 +265,7 @@ - (instancetype)initWithDictionaryRepresentation:(NSDictionary * */ - (BOOL)shouldSendReports { return self.enabledReleaseStages.count == 0 || - [self.enabledReleaseStages containsObject:self.releaseStage]; + [self.enabledReleaseStages containsObject:self.releaseStage ?: @""]; } - (void)setUser:(NSString *_Nullable)userId @@ -540,19 +540,19 @@ - (BOOL)shouldRecordBreadcrumbType:(BSGBreadcrumbType)type { case BSGBreadcrumbTypeManual: return YES; case BSGBreadcrumbTypeError : - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeError; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeError) != 0; case BSGBreadcrumbTypeLog: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeLog; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeLog) != 0; case BSGBreadcrumbTypeNavigation: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeNavigation; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeNavigation) != 0; case BSGBreadcrumbTypeProcess: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeProcess; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeProcess) != 0; case BSGBreadcrumbTypeRequest: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeRequest; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeRequest) != 0; case BSGBreadcrumbTypeState: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeState; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeState) != 0; case BSGBreadcrumbTypeUser: - return self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeUser; + return (self.enabledBreadcrumbTypes & BSGEnabledBreadcrumbTypeUser) != 0; } return NO; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGConnectivity.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGConnectivity.m index 460a89a512..cf8a08e3e8 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGConnectivity.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGConnectivity.m @@ -74,7 +74,7 @@ BOOL BSGConnectivityShouldReportChange(SCNetworkReachabilityFlags flags) { * Textual representation of a connection type */ NSString *BSGConnectivityFlagRepresentation(SCNetworkReachabilityFlags flags) { - BOOL connected = (flags & kSCNetworkReachabilityFlagsReachable); + BOOL connected = (flags & kSCNetworkReachabilityFlagsReachable) != 0; #if BSG_PLATFORM_IOS || BSG_PLATFORM_TVOS return connected ? ((flags & kSCNetworkReachabilityFlagsIsWWAN) ? BSGConnectivityCellular : BSGConnectivityWiFi) @@ -88,12 +88,12 @@ BOOL BSGConnectivityShouldReportChange(SCNetworkReachabilityFlags flags) { * Callback invoked by SCNetworkReachability, which calls an Objective-C block * that handles the connection change. */ -void BSGConnectivityCallback(SCNetworkReachabilityRef target, +void BSGConnectivityCallback(__attribute__((unused)) SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, - void *info) + __attribute__((unused)) void *info) { if (bsg_reachability_change_block && BSGConnectivityShouldReportChange(flags)) { - BOOL connected = (flags & kSCNetworkReachabilityFlagsReachable); + BOOL connected = (flags & kSCNetworkReachabilityFlagsReachable) != 0; bsg_reachability_change_block(connected, BSGConnectivityFlagRepresentation(flags)); } } @@ -109,12 +109,12 @@ + (void)monitorURL:(NSURL *)URL usingCallback:(BSGConnectivityChangeBlock)block bsg_reachability_change_block = block; - NSString *host = [URL host]; - if (![self isValidHostname:host]) { + const char *nodename = URL.host.UTF8String; + if (!nodename || ![self isValidHostname:@(nodename)]) { return; } - bsg_reachability_ref = SCNetworkReachabilityCreateWithName(NULL, [host UTF8String]); + bsg_reachability_ref = SCNetworkReachabilityCreateWithName(NULL, nodename); if (bsg_reachability_ref) { // Can be null if a bad hostname was specified SCNetworkReachabilitySetCallback(bsg_reachability_ref, BSGConnectivityCallback, NULL); SCNetworkReachabilitySetDispatchQueue(bsg_reachability_ref, reachabilityQueue); diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploadFileOperation.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploadFileOperation.m index 39cd67f88c..8a9a6fb3d9 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploadFileOperation.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploadFileOperation.m @@ -23,7 +23,7 @@ - (instancetype)initWithFile:(NSString *)file delegate:(id)delegate completion requestHeaders[BugsnagHTTPHeaderNameSentAt] = [BSG_RFC3339DateTool stringFromDate:[NSDate date]]; requestHeaders[BugsnagHTTPHeaderNameStacktraceTypes] = [event.stacktraceTypes componentsJoinedByString:@","]; - [delegate.apiClient sendJSONPayload:requestPayload headers:requestHeaders toURL:configuration.notifyURL - completionHandler:^(BugsnagApiClientDeliveryStatus status, NSError *error) { + NSURL *notifyURL = configuration.notifyURL; + if (!notifyURL) { + bsg_log_err(@"Could not upload event %@ because notifyURL was nil", self.name); + completionHandler(); + return; + } + + [delegate.apiClient sendJSONPayload:requestPayload headers:requestHeaders toURL:notifyURL + completionHandler:^(BugsnagApiClientDeliveryStatus status, __attribute__((unused)) NSError *deliveryError) { switch (status) { case BugsnagApiClientDeliveryStatusDelivered: @@ -139,7 +146,7 @@ - (void)runWithDelegate:(id)delegate completion // MARK: Subclassing -- (BugsnagEvent *)loadEventAndReturnError:(NSError **)errorPtr { +- (BugsnagEvent *)loadEventAndReturnError:(__attribute__((unused)) NSError * __autoreleasing *)errorPtr { // Must be implemented by all subclasses [self doesNotRecognizeSelector:_cmd]; return nil; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploader.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploader.m index 1a770893a4..ec91612421 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploader.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BSGEventUploader.m @@ -140,7 +140,11 @@ - (void)uploadLatestStoredEvent:(void (^)(void))completionHandler { } [files sortUsingComparator:^NSComparisonResult(NSString *lhs, NSString *rhs) { - return [creationDates[lhs] compare:creationDates[rhs]]; + NSDate *rhsDate = creationDates[rhs]; + if (!rhsDate) { + return NSOrderedDescending; + } + return [creationDates[lhs] compare:rhsDate]; }]; return files; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.h index 9023ad53bb..b487b48a19 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.h @@ -42,7 +42,7 @@ typedef NS_ENUM(NSInteger, BugsnagApiClientDeliveryStatus) { - (NSString *)SHA1HashStringWithData:(NSData *)data; -@property(readonly) NSOperationQueue *sendQueue; +@property (readonly, nonatomic) NSOperationQueue *sendQueue; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.m index f6176537f9..e3ede19bbe 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagApiClient.m @@ -95,10 +95,11 @@ - (void)sendJSONPayload:(NSDictionary *)payload NSMutableURLRequest *request = [self prepareRequest:url headers:mutableHeaders]; bsg_log_debug(@"Sending %lu byte payload to %@", (unsigned long)data.length, url); - [[self.session uploadTaskWithRequest:request fromData:data completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + [[self.session uploadTaskWithRequest:request fromData:data completionHandler:^(__attribute__((unused)) NSData *responseData, + NSURLResponse *response, NSError *connectionError) { if (![response isKindOfClass:[NSHTTPURLResponse class]]) { bsg_log_debug(@"Request to %@ completed with error %@", url, error); - completionHandler(BugsnagApiClientDeliveryStatusFailed, error ?: + completionHandler(BugsnagApiClientDeliveryStatusFailed, connectionError ?: [NSError errorWithDomain:@"BugsnagApiClientErrorDomain" code:0 userInfo:@{ NSLocalizedDescriptionKey: @"Request failed: no response was received", NSURLErrorFailingURLErrorKey: url }]); @@ -113,7 +114,7 @@ - (void)sendJSONPayload:(NSDictionary *)payload return; } - error = [NSError errorWithDomain:@"BugsnagApiClientErrorDomain" code:1 userInfo:@{ + connectionError = [NSError errorWithDomain:@"BugsnagApiClientErrorDomain" code:1 userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Request failed: unacceptable status code %ld (%@)", (long)statusCode, [NSHTTPURLResponse localizedStringForStatusCode:statusCode]], NSURLErrorFailingURLErrorKey: url }]; @@ -126,11 +127,11 @@ - (void)sendJSONPayload:(NSDictionary *)payload statusCode != HTTPStatusCodeProxyAuthenticationRequired && statusCode != HTTPStatusCodeClientTimeout && statusCode != HTTPStatusCodeTooManyRequests) { - completionHandler(BugsnagApiClientDeliveryStatusUndeliverable, error); + completionHandler(BugsnagApiClientDeliveryStatusUndeliverable, connectionError); return; } - completionHandler(BugsnagApiClientDeliveryStatusFailed, error); + completionHandler(BugsnagApiClientDeliveryStatusFailed, connectionError); }] resume]; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.h index abe1b71ba7..2cb08547bb 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.h @@ -21,8 +21,8 @@ */ - (void)deliverSessionsInStore:(BugsnagSessionFileStore *)store; -@property (copy) NSString *codeBundleId; +@property (copy, nonatomic) NSString *codeBundleId; -@property BugsnagNotifier *notifier; +@property (nonatomic) BugsnagNotifier *notifier; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.m index 67f783b60c..684e0f180b 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Delivery/BugsnagSessionTrackingApiClient.m @@ -14,7 +14,7 @@ #import "BSG_RFC3339DateTool.h" @interface BugsnagSessionTrackingApiClient () -@property NSMutableSet *activeIds; +@property (nonatomic) NSMutableSet *activeIds; @property(nonatomic) BugsnagConfiguration *config; @end @@ -43,20 +43,17 @@ - (void)deliverSessionsInStore:(BugsnagSessionFileStore *)store { return; } - NSDictionary *filesWithIds = [store allFilesByName]; - - for (NSString *fileId in [filesWithIds allKeys]) { - + [[store allFilesByName] enumerateKeysAndObjectsUsingBlock:^(NSString *fileId, NSDictionary *fileContents, __attribute__((unused)) BOOL *stop) { // De-duplicate files as deletion of the file is asynchronous and so multiple calls // to this method will result in multiple send requests @synchronized (self.activeIds) { if ([self.activeIds containsObject:fileId]) { - continue; + return; } [self.activeIds addObject:fileId]; } - BugsnagSession *session = [[BugsnagSession alloc] initWithDictionary:filesWithIds[fileId]]; + BugsnagSession *session = [[BugsnagSession alloc] initWithDictionary:fileContents]; [self.sendQueue addOperationWithBlock:^{ BugsnagSessionTrackingPayload *payload = [[BugsnagSessionTrackingPayload alloc] @@ -90,7 +87,7 @@ - (void)deliverSessionsInStore:(BugsnagSessionFileStore *)store { } }]; }]; - } + }]; } @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppHangDetector.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppHangDetector.m index 9ef681f931..c05652bf94 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppHangDetector.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppHangDetector.m @@ -12,20 +12,50 @@ #import #import "BSG_KSMach.h" +#import "BugsnagCollections.h" #import "BugsnagLogger.h" #import "BugsnagThread+Recording.h" #import "BugsnagThread+Private.h" +#if TARGET_OS_IOS +#import "BSGUIKit.h" +#endif + @interface BSGAppHangDetector () @property (nonatomic) CFRunLoopObserverRef observer; +@property (nonatomic) BOOL isInBackground; + @end @implementation BSGAppHangDetector +#if TARGET_OS_IOS + +- (instancetype)init { + if (self = [super init]) { + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(applicationDidEnterBackground) + name:UIApplicationDidEnterBackgroundNotification object:nil]; + + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(applicationWillEnterForeground) + name:UIApplicationWillEnterForegroundNotification object:nil]; + } + return self; +} + +- (void)applicationDidEnterBackground { + self.isInBackground = YES; +} + +- (void)applicationWillEnterForeground { + self.isInBackground = NO; +} + +#endif + - (void)dealloc { if (_observer) { CFRunLoopRemoveObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes); @@ -52,17 +82,19 @@ - (void)startWithDelegate:(id)delegate { const BOOL fatalOnly = configuration.appHangThresholdMillis == BugsnagAppHangThresholdFatalOnly; const BOOL recordAllThreads = configuration.sendThreads == BSGThreadSendPolicyAlways; - const NSTimeInterval threshold = fatalOnly ? 2 : configuration.appHangThresholdMillis / 1000.0; + const NSTimeInterval threshold = fatalOnly ? 2.0 : (double)configuration.appHangThresholdMillis / 1000.0; bsg_log_debug(@"Starting App Hang detector with threshold = %g seconds", threshold); dispatch_queue_t backgroundQueue; __block dispatch_semaphore_t semaphore; __weak typeof(delegate) weakDelegate = delegate; + __weak typeof(self) weakSelf = self; backgroundQueue = dispatch_queue_create("com.bugsnag.app-hang-detector", DISPATCH_QUEUE_SERIAL); - void (^ observerBlock)(CFRunLoopObserverRef, CFRunLoopActivity) = ^(CFRunLoopObserverRef observer, CFRunLoopActivity activity) { + void (^ observerBlock)(CFRunLoopObserverRef, CFRunLoopActivity) = + ^(__attribute__((unused)) CFRunLoopObserverRef observer, CFRunLoopActivity activity) { // "Inside the event processing loop after the run loop wakes up, but before processing the event that woke it up" if (activity == kCFRunLoopAfterWaiting) { if (!semaphore) { @@ -75,6 +107,12 @@ - (void)startWithDelegate:(id)delegate { dispatch_time_t timeout = dispatch_time(now, (int64_t)(threshold * NSEC_PER_SEC)); dispatch_after(after, backgroundQueue, ^{ if (dispatch_semaphore_wait(semaphore, timeout) != 0) { + if (weakSelf.isInBackground) { + bsg_log_debug(@"Ignoring app hang because app is in the background"); + dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); + return; + } + if (bsg_ksmachisBeingTraced()) { bsg_log_debug("Ignoring app hang because debugger is attached"); dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); @@ -87,19 +125,22 @@ - (void)startWithDelegate:(id)delegate { if (recordAllThreads) { threads = [BugsnagThread allThreads:YES callStackReturnAddresses:NSThread.callStackReturnAddresses]; // By default the calling thread is marked as "Error reported from this thread", which is not correct case for app hangs. - [threads enumerateObjectsUsingBlock:^(BugsnagThread * _Nonnull thread, NSUInteger idx, BOOL * _Nonnull stop) { + [threads enumerateObjectsUsingBlock:^(BugsnagThread * _Nonnull thread, NSUInteger idx, + __attribute__((unused)) BOOL * _Nonnull stop) { thread.errorReportingThread = idx == 0; }]; } else { - threads = [NSArray arrayWithObjects:[BugsnagThread mainThread], nil]; //!OCLint + threads = BSGArrayWithObject([BugsnagThread mainThread]); } - [weakDelegate appHangDetectedWithThreads:threads]; + __strong typeof(weakDelegate) strongDelegate = weakDelegate; + + [strongDelegate appHangDetectedWithThreads:threads]; dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); bsg_log_info("App hang has ended"); - [weakDelegate appHangEnded]; + [strongDelegate appHangEnded]; } }); } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppKit.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppKit.h new file mode 100644 index 0000000000..44be5da635 --- /dev/null +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGAppKit.h @@ -0,0 +1,41 @@ +// +// BSGAppKit.h +// Bugsnag +// +// Created by Nick Dowell on 13/04/2021. +// Copyright © 2021 Bugsnag Inc. All rights reserved. +// + +#import + +// Daemons and other processes running in non-UI sessions should not link against AppKit. +// These macros exist to allow the use of AppKit without adding a link-time dependency on it. + +// Calling code should be prepared for classes to not be found when AppKit is not linked. +#define NSAPPLICATION NSClassFromString(@"NSApplication") +#define NSMENUITEM NSClassFromString(@"NSMenuItem") +#define NSWORKSPACE NSClassFromString(@"NSWorkspace") + +#define NSApplicationDidBecomeActiveNotification @"NSApplicationDidBecomeActiveNotification" +#define NSApplicationDidBecomeActiveNotification @"NSApplicationDidBecomeActiveNotification" +#define NSApplicationDidFinishLaunchingNotification @"NSApplicationDidFinishLaunchingNotification" +#define NSApplicationDidHideNotification @"NSApplicationDidHideNotification" +#define NSApplicationDidResignActiveNotification @"NSApplicationDidResignActiveNotification" +#define NSApplicationDidResignActiveNotification @"NSApplicationDidResignActiveNotification" +#define NSApplicationDidUnhideNotification @"NSApplicationDidUnhideNotification" +#define NSApplicationWillBecomeActiveNotification @"NSApplicationWillBecomeActiveNotification" +#define NSApplicationWillTerminateNotification @"NSApplicationWillTerminateNotification" +#define NSApplicationWillTerminateNotification @"NSApplicationWillTerminateNotification" +#define NSControlTextDidBeginEditingNotification @"NSControlTextDidBeginEditingNotification" +#define NSControlTextDidEndEditingNotification @"NSControlTextDidEndEditingNotification" +#define NSMenuWillSendActionNotification @"NSMenuWillSendActionNotification" +#define NSTableViewSelectionDidChangeNotification @"NSTableViewSelectionDidChangeNotification" +#define NSUndoManagerDidRedoChangeNotification @"NSUndoManagerDidRedoChangeNotification" +#define NSUndoManagerDidUndoChangeNotification @"NSUndoManagerDidUndoChangeNotification" +#define NSWindowDidBecomeKeyNotification @"NSWindowDidBecomeKeyNotification" +#define NSWindowDidEnterFullScreenNotification @"NSWindowDidEnterFullScreenNotification" +#define NSWindowDidExitFullScreenNotification @"NSWindowDidExitFullScreenNotification" +#define NSWindowWillCloseNotification @"NSWindowWillCloseNotification" +#define NSWindowWillMiniaturizeNotification @"NSWindowWillMiniaturizeNotification" +#define NSWorkspaceScreensDidSleepNotification @"NSWorkspaceScreensDidSleepNotification" +#define NSWorkspaceScreensDidWakeNotification @"NSWorkspaceScreensDidWakeNotification" diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.h index 8aedfe573d..ce1b38988f 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.h @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN - NSNumbers are not NaN or infinity Other rules may apply. Calling this method or attempting a conversion are the definitive ways to tell if a given object can be converted to JSON data. */ -+ (BOOL)isValidJSONObject:(id)obj; ++ (BOOL)isValidJSONObject:(nullable id)obj; /* Generate JSON data from a Foundation object. If the object will not produce valid JSON then an error will be returned. Setting the NSJSONWritingPrettyPrinted option will generate JSON with whitespace designed to make the output more readable. If that option is not set, the most compact possible JSON will be generated. If an error occurs, the error parameter will be set and the return value will be nil. The resulting data is a encoded in UTF-8. */ diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.m index c344a0764e..3e37cc3080 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGJSONSerialization.m @@ -17,15 +17,15 @@ @implementation BSGJSONSerialization }]; } -+ (BOOL)isValidJSONObject:(id)obj { ++ (BOOL)isValidJSONObject:(nullable id)obj { @try { - return [NSJSONSerialization isValidJSONObject:obj]; + return obj && [NSJSONSerialization isValidJSONObject:(id _Nonnull)obj]; } @catch (NSException *exception) { return NO; } } -+ (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error { ++ (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError * __autoreleasing *)error { @try { return [NSJSONSerialization dataWithJSONObject:obj options:opt error:error]; } @catch (NSException *exception) { @@ -36,7 +36,7 @@ + (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)op } } -+ (nullable id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError **)error { ++ (nullable id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError * __autoreleasing *)error { @try { return [NSJSONSerialization JSONObjectWithData:data options:opt error:error]; } @catch (NSException *exception) { @@ -47,7 +47,7 @@ + (nullable id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)o } } -+ (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(NSJSONWritingOptions)opt error:(NSError **)error { ++ (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(NSJSONWritingOptions)opt error:(NSError * __autoreleasing *)error { @try { return [NSJSONSerialization writeJSONObject:obj toStream:stream options:opt error:error]; } @catch (NSException *exception) { @@ -58,7 +58,7 @@ + (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:( } } -+ (nullable id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadingOptions)opt error:(NSError **)error { ++ (nullable id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadingOptions)opt error:(NSError * __autoreleasing *)error { @try { return [NSJSONSerialization JSONObjectWithStream:stream options:opt error:error]; } @catch (NSException *exception) { @@ -69,7 +69,7 @@ + (nullable id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadi } } -+ (BOOL)writeJSONObject:(id)JSONObject toFile:(NSString *)file options:(NSJSONWritingOptions)options error:(NSError **)errorPtr { ++ (BOOL)writeJSONObject:(id)JSONObject toFile:(NSString *)file options:(NSJSONWritingOptions)options error:(NSError * __autoreleasing *)errorPtr { if (![BSGJSONSerialization isValidJSONObject:JSONObject]) { if (errorPtr) { *errorPtr = [NSError errorWithDomain:@"BSGJSONSerializationErrorDomain" code:0 userInfo:@{ @@ -81,7 +81,7 @@ + (BOOL)writeJSONObject:(id)JSONObject toFile:(NSString *)file options:(NSJSONWr return [data writeToFile:file options:NSDataWritingAtomic error:errorPtr]; } -+ (nullable id)JSONObjectWithContentsOfFile:(NSString *)file options:(NSJSONReadingOptions)options error:(NSError **)errorPtr { ++ (nullable id)JSONObjectWithContentsOfFile:(NSString *)file options:(NSJSONReadingOptions)options error:(NSError * __autoreleasing *)errorPtr { NSData *data = [NSData dataWithContentsOfFile:file options:0 error:errorPtr]; if (!data) { return nil; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGSerialization.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGSerialization.m index 1261169e37..eadb82c141 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGSerialization.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGSerialization.m @@ -39,7 +39,7 @@ id BSGSanitizeObject(id obj) { __block NSMutableDictionary *output = [NSMutableDictionary dictionaryWithCapacity:[input count]]; [input enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, - BOOL *_Nonnull stop) { + __attribute__((unused)) BOOL *_Nonnull stop) { if ([key isKindOfClass:[NSString class]]) { id cleanedObject = BSGSanitizeObject(obj); if (cleanedObject) diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGUIKit.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGUIKit.h index bbe3eae937..d05f39acbf 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGUIKit.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSGUIKit.h @@ -11,6 +11,7 @@ // When used in some memory constrained contexts such as a file provider extension, linking to UIKit is problematic. // These macros exist to allow the use of UIKit without adding a link-time dependency on it. +// Calling code should be prepared for classes to not be found when UIKit is not linked. #define UIAPPLICATION NSClassFromString(@"UIApplication") #define UIDEVICE NSClassFromString(@"UIDevice") diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.h index 046a1c0ed5..b38bcb4922 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.h @@ -51,7 +51,7 @@ * * @return The RFC3339 date string. */ -+ (NSString *)stringFromUNIXTimestamp:(unsigned long long)timestamp; ++ (NSString *)stringFromUNIXTimestamp:(NSTimeInterval)timestamp; /** * Determines whether a string might contain an RFC3339 formatted date. diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.m index eeb8db3264..c4b369de8b 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BSG_RFC3339DateTool.m @@ -81,7 +81,7 @@ + (NSDate *)dateFromString:(NSString *)string { return [g_timezoneAllowedDateFormatter dateFromString:string]; } -+ (NSString *)stringFromUNIXTimestamp:(unsigned long long)timestamp { ++ (NSString *)stringFromUNIXTimestamp:(NSTimeInterval)timestamp { return [self stringFromDate:[NSDate dateWithTimeIntervalSince1970:timestamp]]; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.h index 374c4a1153..b60e7e76ad 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.h @@ -23,13 +23,22 @@ NS_ASSUME_NONNULL_BEGIN +// MARK: NSArray + +/// Returns an array with the object, or an empty array if object is nil. +NSArray * BSGArrayWithObject(id _Nullable object); + +void BSGArrayAddIfNonnull(NSMutableArray *array, id _Nullable object); + /// Returns an array containing the results of mapping the given block over the array's elements -NSArray * BSGArrayMap(NSArray *array, id (^ transform)(id)); +NSArray * BSGArrayMap(NSArray * _Nullable array, id _Nullable (^ transform)(id value)); /// Returns a new array containing the elements starting at position `index`, or /// an empty array if `index` is beyond the array's range range of elements. NSArray * BSGArraySubarrayFromIndex(NSArray *array, NSUInteger index); +// MARK: - NSDictionary + /** * Merge values from source dictionary with destination * @@ -43,4 +52,20 @@ NSDictionary *BSGDictMerge(NSDictionary *source, NSDictionary *destination); /// Any values that are not valid JSON will be replaced by a string description. NSDictionary * BSGJSONDictionary(NSDictionary *dictionary); +// MARK: - NSSet + +void BSGSetAddIfNonnull(NSMutableSet *array, id _Nullable object); + +// MARK: - Deserialization + +NSDictionary * _Nullable BSGDeserializeDict(id _Nullable rawValue); + +id _Nullable BSGDeserializeObject(id _Nullable rawValue, id _Nullable (^ deserializer)(NSDictionary * _Nonnull dict)); + +id _Nullable BSGDeserializeArrayOfObjects(id _Nullable rawValue, id _Nullable (^ deserializer)(NSDictionary * _Nonnull dict)); + +NSString * _Nullable BSGDeserializeString(id _Nullable rawValue); + +NSDate * _Nullable BSGDeserializeDate(id _Nullable rawValue); + NS_ASSUME_NONNULL_END diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.m index 7e08d0b11e..4fbebcd24a 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagCollections.m @@ -21,9 +21,22 @@ #import "BugsnagCollections.h" +#import "BSG_RFC3339DateTool.h" #import "BSGJSONSerialization.h" -NSArray * BSGArrayMap(NSArray *array, id (^ transform)(id)) { +// MARK: NSArray + +NSArray * BSGArrayWithObject(id _Nullable object) { + return object ? @[(id _Nonnull)object] : @[]; +} + +void BSGArrayAddIfNonnull(NSMutableArray *array, id _Nullable object) { + if (object) { + [array addObject:(id _Nonnull)object]; + } +} + +NSArray * BSGArrayMap(NSArray *array, id _Nullable (^ transform)(id)) { NSMutableArray *mappedArray = [NSMutableArray array]; for (id object in array) { id mapped = transform(object); @@ -41,6 +54,8 @@ return [array subarrayWithRange:NSMakeRange(index, array.count - index)]; } +// MARK: - NSDictionary + NSDictionary *BSGDictMerge(NSDictionary *source, NSDictionary *destination) { if ([destination count] == 0) { return source; @@ -85,3 +100,50 @@ } return json; } + +// MARK: - NSSet + +void BSGSetAddIfNonnull(NSMutableSet *set, id _Nullable object) { + if (object) { + [set addObject:(id _Nonnull)object]; + } +} + +// MARK: - Deserialization + +NSDictionary * _Nullable BSGDeserializeDict(id _Nullable rawValue) { + if (![rawValue isKindOfClass:[NSDictionary class]]) { + return nil; + } + return (NSDictionary *)rawValue; +} + +id _Nullable BSGDeserializeObject(id _Nullable rawValue, id _Nullable (^ deserializer)(NSDictionary * _Nonnull dict)) { + if (![rawValue isKindOfClass:[NSDictionary class]]) { + return nil; + } + return deserializer((NSDictionary *)rawValue); +} + +id _Nullable BSGDeserializeArrayOfObjects(id _Nullable rawValue, id _Nullable (^ deserializer)(NSDictionary * _Nonnull dict)) { + if (![rawValue isKindOfClass:[NSArray class]]) { + return nil; + } + return BSGArrayMap((NSArray *)rawValue, ^id _Nullable(id _Nonnull value) { + return BSGDeserializeObject(value, deserializer); + }); +} + +NSString * _Nullable BSGDeserializeString(id _Nullable rawValue) { + if (![rawValue isKindOfClass:[NSString class]]) { + return nil; + } + return (NSString *)rawValue; +} + +NSDate * _Nullable BSGDeserializeDate(id _Nullable rawValue) { + if (![rawValue isKindOfClass:[NSString class]]) { + return nil; + } + return [BSG_RFC3339DateTool dateFromString:(NSString *)rawValue]; +} diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagKVStore.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagKVStore.c index e4352854d2..0ee8fc5f28 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagKVStore.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Helpers/BugsnagKVStore.c @@ -138,7 +138,7 @@ void bsgkv_setBytes(const char* key, const uint8_t* value, int length, int* err) } retry_after_eintr: - if(write(fd, value, length) == length) { + if (write(fd, value, (size_t)length) == length) { goto cleanup_success; } @@ -173,7 +173,8 @@ void bsgkv_getBytes(const char* key, uint8_t* value, int* length, int* err) { *err = errno; return; } - ssize_t bytesRead = read(fd, value, *length); + size_t bytesRequested = (size_t)*length; + ssize_t bytesRead = read(fd, value, bytesRequested); if(bytesRead < 0) { *err = errno; return; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m index 810b336212..348ff54a8e 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrash.m @@ -47,7 +47,7 @@ #import "BSGUIKit.h" #endif #if TARGET_OS_OSX -#import +#import "BSGAppKit.h" #endif // ============================================================================ diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashC.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashC.c index a8f9d59e2f..047305b9f0 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashC.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashC.c @@ -72,7 +72,7 @@ BSG_KSCrash_Context *crashContext(void) { void bsg_kscrash_i_onCrash(BSG_KSCrash_Context *context) { BSG_KSLOG_DEBUG("Updating application state to note crash."); - bsg_kscrashstate_notifyAppCrash(context->crash.crashType); + bsg_kscrashstate_notifyAppCrash(); if (context->config.printTraceToStdout) { bsg_kscrashreport_logCrash(context); diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashReport.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashReport.c index e00756b2a4..ed6ab2d213 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashReport.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashReport.c @@ -735,19 +735,21 @@ void bsg_kscrw_i_writeBacktraceEntry( const uintptr_t address, const Dl_info *const info) { writer->beginObject(writer, key); { - if (info->dli_fname != NULL) { - writer->addStringElement(writer, BSG_KSCrashField_ObjectName, - bsg_ksfulastPathEntry(info->dli_fname)); - } - writer->addUIntegerElement(writer, BSG_KSCrashField_ObjectAddr, - (uintptr_t)info->dli_fbase); - if (info->dli_sname != NULL) { - const char *sname = info->dli_sname; - writer->addStringElement(writer, BSG_KSCrashField_SymbolName, - sname); + if (info->dli_saddr != NULL) { + if (info->dli_fname != NULL) { + writer->addStringElement(writer, BSG_KSCrashField_ObjectName, + bsg_ksfulastPathEntry(info->dli_fname)); + } + writer->addUIntegerElement(writer, BSG_KSCrashField_ObjectAddr, + (uintptr_t)info->dli_fbase); + if (info->dli_sname != NULL) { + const char *sname = info->dli_sname; + writer->addStringElement(writer, BSG_KSCrashField_SymbolName, + sname); + } + writer->addUIntegerElement(writer, BSG_KSCrashField_SymbolAddr, + (uintptr_t)info->dli_saddr); } - writer->addUIntegerElement(writer, BSG_KSCrashField_SymbolAddr, - (uintptr_t)info->dli_saddr); writer->addUIntegerElement(writer, BSG_KSCrashField_InstructionAddr, address); } @@ -1240,8 +1242,8 @@ void bsg_kscrw_i_writeError(const BSG_KSCrashReportWriter *const writer, } const char *machExceptionName = bsg_ksmachexceptionName(machExceptionType); - const char *machCodeName = - machCode == 0 ? NULL : bsg_ksmachkernelReturnCodeName(machCode); + const char *machCodeName = machCode == 0 ? NULL : + bsg_ksmachkernelReturnCodeName((kern_return_t)machCode); const char *sigName = bsg_kssignal_signalName(sigNum); const char *sigCodeName = bsg_kssignal_signalCodeName(sigNum, sigCode); @@ -1485,7 +1487,7 @@ void bsg_kscrw_i_updateStackOverflowStatus( void bsg_kscrw_i_callUserCrashHandler(BSG_KSCrash_Context *const crashContext, BSG_KSCrashReportWriter *writer) { BSG_KSCrashType type = crashContext->crash.crashType; - crashContext->config.onCrashNotify(writer, type); + crashContext->config.onCrashNotify(writer, (int)type); } // ============================================================================ diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.h index 4df100ec12..54676e3b3c 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.h @@ -107,7 +107,7 @@ void bsg_kscrashstate_notifyAppTerminate(void); /** Notify the crash reporter that the application has crashed. */ -void bsg_kscrashstate_notifyAppCrash(BSG_KSCrashType type); +void bsg_kscrashstate_notifyAppCrash(void); /** Read-only access into the current state. */ diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.m index 8d09ecbdda..2709c1d9c5 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSCrashState.m @@ -119,7 +119,7 @@ int bsg_kscrashstate_i_onIntegerElement(const char *const name, } // FP value might have been written as a whole number. - return bsg_kscrashstate_i_onFloatingPointElement(name, value, userData); + return bsg_kscrashstate_i_onFloatingPointElement(name, (double)value, userData); } int bsg_kscrashstate_i_onNullElement(__unused const char *const name, @@ -177,15 +177,20 @@ bool bsg_kscrashstate_i_loadState(BSG_KSCrash_State *const context, if (path == NULL) { return false; } + NSString *file = [NSFileManager.defaultManager stringWithFileSystemRepresentation:path length:strlen(path)]; + if (!file) { + BSG_KSLOG_ERROR(@"Invalid path: %s", path); + return false; + } NSError *error = nil; - NSData *data = [NSData dataWithContentsOfFile:[NSString stringWithUTF8String:path] options:0 error:&error]; + NSData *data = [NSData dataWithContentsOfFile:file options:0 error:&error]; if (error != nil) { if (!(error.domain == NSCocoaErrorDomain && error.code == NSFileReadNoSuchFileError)) { BSG_KSLOG_ERROR(@"%s: Could not load file: %@", path, error); } return false; } - id objectContext = [BSG_KSJSONCodec decode:data options:0 error:&error]; + id objectContext = [BSG_KSJSONCodec decode:data error:&error]; if (error != nil) { BSG_KSLOG_ERROR(@"%s: Could not load file: %@", path, error); return false; @@ -346,7 +351,7 @@ void bsg_kscrashstate_notifyAppTerminate(void) { bsg_kscrashstate_i_saveState(state, stateFilePath); } -void bsg_kscrashstate_notifyAppCrash(BSG_KSCrashType type) { +void bsg_kscrashstate_notifyAppCrash(void) { BSG_KSCrash_State *const state = bsg_g_state; const char *const stateFilePath = bsg_g_stateFilePath; bsg_kscrashstate_updateDurationStats(state); diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.h index 0026dcb546..2a5e9c3a00 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.h @@ -26,6 +26,7 @@ #define BSG_KSSystemField_AppStartTime "app_start_time" #define BSG_KSSystemField_AppUUID "app_uuid" +#define BSG_KSSystemField_BinaryArch "binary_arch" #define BSG_KSSystemField_BootTime "boot_time" #define BSG_KSSystemField_BundleID "CFBundleIdentifier" #define BSG_KSSystemField_BundleName "CFBundleName" @@ -35,8 +36,6 @@ #define BSG_KSSystemField_CPUArch "cpu_arch" #define BSG_KSSystemField_CPUType "cpu_type" #define BSG_KSSystemField_CPUSubType "cpu_subtype" -#define BSG_KSSystemField_BinaryCPUType "binary_cpu_type" -#define BSG_KSSystemField_BinaryCPUSubType "binary_cpu_subtype" #define BSG_KSSystemField_DeviceAppHash "device_app_hash" #define BSG_KSSystemField_Executable "CFBundleExecutable" #define BSG_KSSystemField_ExecutablePath "CFBundleExecutablePath" @@ -54,6 +53,7 @@ #define BSG_KSSystemField_SystemVersion "system_version" #define BSG_KSSystemField_ClangVersion "clang_version" #define BSG_KSSystemField_TimeZone "time_zone" +#define BSG_KSSystemField_Translated "proc_translated" #define BSG_KSSystemField_BuildType "build_type" #define BSG_KSSystemField_iOSSupportVersion "iOSSupportVersion" diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.m index 8e02348b1e..65c1ad1562 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_KSSystemInfo.m @@ -91,7 +91,7 @@ static inline bool is_jailbroken() { } NSData *data = [NSData dataWithBytesNoCopy:buffer - length:length freeWhenDone:NO]; + length:(NSUInteger)length freeWhenDone:NO]; if (!data) { BSG_KSLOG_ERROR("Could not read SystemVersion.plist"); return; @@ -299,9 +299,19 @@ + (NSString *)CPUArchForCPUType:(cpu_type_t)cpuType case CPU_SUBTYPE_ARM_V7S: return @"armv7s"; #endif + case CPU_SUBTYPE_ARM_V8: + return @"armv8"; } break; } + case CPU_TYPE_ARM64: { + switch (subType) { + case CPU_SUBTYPE_ARM64E: + return @"arm64e"; + default: + return @"arm64"; + } + } case CPU_TYPE_X86: return @"x86"; case CPU_TYPE_X86_64: @@ -436,9 +446,9 @@ + (NSDictionary *)systemInfo { #endif // TARGET_OS_IOS NSDictionary *env = NSProcessInfo.processInfo.environment; - sysInfo[@(BSG_KSSystemField_SystemVersion)] = env[@"SIMULATOR_RUNTIME_VERSION"]; - sysInfo[@(BSG_KSSystemField_Machine)] = env[@"SIMULATOR_MODEL_IDENTIFIER"]; - sysInfo[@(BSG_KSSystemField_Model)] = @"simulator"; + sysInfo[@BSG_KSSystemField_SystemVersion] = env[@"SIMULATOR_RUNTIME_VERSION"]; + sysInfo[@BSG_KSSystemField_Machine] = env[@"SIMULATOR_MODEL_IDENTIFIER"]; + sysInfo[@BSG_KSSystemField_Model] = @"simulator"; #else // !TARGET_OS_SIMULATOR @@ -463,11 +473,11 @@ + (NSDictionary *)systemInfo { NSString *systemName = @"tvOS"; #endif - sysInfo[@(BSG_KSSystemField_SystemName)] = systemName; - sysInfo[@(BSG_KSSystemField_SystemVersion)] = sysVersion[@"ProductVersion"]; + sysInfo[@BSG_KSSystemField_SystemName] = systemName; + sysInfo[@BSG_KSSystemField_SystemVersion] = sysVersion[@"ProductVersion"]; #if TARGET_OS_IOS - sysInfo[@(BSG_KSSystemField_iOSSupportVersion)] = sysVersion[@"iOSSupportVersion"]; + sysInfo[@BSG_KSSystemField_iOSSupportVersion] = sysVersion[@"iOSSupportVersion"]; #endif // Bugsnag payload mapping: @@ -477,15 +487,15 @@ + (NSDictionary *)systemInfo { if ([systemName isEqual:@"Mac OS"]) { // On macOS hw.model contains the "Model Identifier" e.g. MacBookPro16,1 - sysInfo[@(BSG_KSSystemField_Machine)] = [self stringSysctl:@"hw.model"]; + sysInfo[@BSG_KSSystemField_Machine] = [self stringSysctl:@"hw.model"]; // and hw.machine contains the instruction set - e.g. "arm64" or "x86_64" // we omit this since it doesn't match what we're expecting or want. } else { // On iOS & tvOS hw.machine contains the "Model Identifier" or // "ProductType" - e.g. "iPhone6,1" - sysInfo[@(BSG_KSSystemField_Machine)] = [self stringSysctl:@"hw.machine"]; + sysInfo[@BSG_KSSystemField_Machine] = [self stringSysctl:@"hw.machine"]; // and hw.model contains the "Internal Name" or "Board ID" - e.g. "D79AP" - sysInfo[@(BSG_KSSystemField_Model)] = [self stringSysctl:@"hw.model"]; + sysInfo[@BSG_KSSystemField_Model] = [self stringSysctl:@"hw.model"]; } #endif // TARGET_OS_SIMULATOR @@ -506,8 +516,7 @@ + (NSDictionary *)systemInfo { sysInfo[@BSG_KSSystemField_CPUArch] = [self currentCPUArch]; sysInfo[@BSG_KSSystemField_CPUType] = [self int32Sysctl:@BSGKeyHwCputype]; sysInfo[@BSG_KSSystemField_CPUSubType] = [self int32Sysctl:@BSGKeyHwCpusubtype]; - sysInfo[@BSG_KSSystemField_BinaryCPUType] = @(header->cputype); - sysInfo[@BSG_KSSystemField_BinaryCPUSubType] = @(header->cpusubtype); + sysInfo[@BSG_KSSystemField_BinaryArch] = [self CPUArchForCPUType:header->cputype subType:header->cpusubtype]; sysInfo[@BSG_KSSystemField_TimeZone] = [[NSTimeZone localTimeZone] abbreviation]; sysInfo[@BSG_KSSystemField_ProcessName] = [NSProcessInfo processInfo].processName; sysInfo[@BSG_KSSystemField_ProcessID] = @([NSProcessInfo processInfo].processIdentifier); @@ -515,12 +524,21 @@ + (NSDictionary *)systemInfo { sysInfo[@BSG_KSSystemField_DeviceAppHash] = [self deviceAndAppHash]; sysInfo[@BSG_KSSystemField_BuildType] = [BSG_KSSystemInfo buildType]; - sysInfo[@(BSG_KSSystemField_Memory)] = @{ - @(BSG_KSCrashField_Free): @(bsg_ksmachfreeMemory()), - @(BSG_KSCrashField_Usable): @(bsg_ksmachusableMemory()), - @(BSG_KSSystemField_Size): [self int64Sysctl:@"hw.memsize"] + sysInfo[@BSG_KSSystemField_Memory] = @{ + @BSG_KSCrashField_Free: @(bsg_ksmachfreeMemory()), + @BSG_KSCrashField_Usable: @(bsg_ksmachusableMemory()), + @BSG_KSSystemField_Size: [self int64Sysctl:@"hw.memsize"] }; +#if TARGET_OS_OSX || TARGET_OS_MACCATALYST + // https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment + int proc_translated = 0; + size_t size = sizeof(proc_translated); + if (!sysctlbyname("sysctl.proc_translated", &proc_translated, &size, NULL, 0) && proc_translated) { + sysInfo[@BSG_KSSystemField_Translated] = @YES; + } +#endif + NSDictionary *statsInfo = [[BSG_KSCrash sharedInstance] captureAppStats]; sysInfo[@BSG_KSCrashField_AppStats] = statsInfo; return sysInfo; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSDynamicLinker.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSDynamicLinker.c index e3bae02846..d31812ac59 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSDynamicLinker.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSDynamicLinker.c @@ -62,9 +62,13 @@ bool bsg_ksdldladdr(const uintptr_t address, Dl_info *const info) { if (image == NULL) { return false; } - const uintptr_t addressWithSlide = address - image->slide; + if (address < (uintptr_t)image->slide) { + return false; + } + const uintptr_t addressWithSlide = address - (uintptr_t)image->slide; const uintptr_t segmentBase = - bsg_mach_headers_image_at_base_of_image_index(image->header) + image->slide; + bsg_mach_headers_image_at_base_of_image_index(image->header) + + (uintptr_t)image->slide; if (segmentBase == 0) { return false; } @@ -102,7 +106,7 @@ bool bsg_ksdldladdr(const uintptr_t address, Dl_info *const info) { } if (bestMatch != NULL) { info->dli_saddr = - (void *)(bestMatch->n_value + image->slide); + (void *)(bestMatch->n_value + (uintptr_t)image->slide); info->dli_sname = (char *)((intptr_t)stringTable + (intptr_t)bestMatch->n_un.n_strx); if (*info->dli_sname == '_') { diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSFileUtils.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSFileUtils.c index fcbeec9603..812e17b107 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSFileUtils.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSFileUtils.c @@ -54,7 +54,7 @@ bool bsg_ksfuwriteBytesToFD(const int fd, const char *const bytes, // function retries with the remaining bytes until all bytes are written, // handling potential error cases as needed. while (bytesRemaining > 0) { - bytesWritten = write(fd, unwrittenBytes, bytesRemaining); + bytesWritten = write(fd, unwrittenBytes, (size_t)bytesRemaining); if (bytesWritten == -1) { // Retry as-is if a signal interrupt occurred, as its a recoverable // error. Otherwise exit early as the file descriptor cannot be written diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodec.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodec.c index 4619bd3974..e5059ce6f6 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodec.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodec.c @@ -105,7 +105,7 @@ static size_t uint64_to_string(uint64_t value, char* dst) { char buff[MAX_UINT64_DIGITS+1]; buff[sizeof(buff)-1] = 0; - int index = sizeof(buff) - 2; + size_t index = sizeof(buff) - 2; for(;;) { buff[index] = (value%10) + '0'; value /= 10; @@ -129,9 +129,9 @@ static size_t uint64_to_string(uint64_t value, char* dst) { static size_t int64_to_string(int64_t value, char* dst) { if (value < 0) { dst[0] = '-'; - return uint64_to_string(-value, dst+1) + 1; + return uint64_to_string((uint64_t)-value, dst+1) + 1; } - return uint64_to_string(value, dst); + return uint64_to_string((uint64_t)value, dst); } /** @@ -170,7 +170,7 @@ static size_t positive_double_to_string(const double value, char* dst, const int } // log10() is a compiler intrinsic. - int exponent = log10(value); + int exponent = (int)log10(value); // Values < 1.0 must subtract 1 from exponent to handle zero wraparound. if (value < 1.0) { exponent--; @@ -187,9 +187,9 @@ static size_t positive_double_to_string(const double value, char* dst, const int // Put all of the digits we'll use into an integer. double digits_and_remainder = normalized * pow(10, max_sig_digits-1); - uint64_t digits = digits_and_remainder; + uint64_t digits = (uint64_t)digits_and_remainder; // Also round up if necessary (note: 0.5 is exact in both binary and decimal). - if (digits_and_remainder - digits >= 0.5) { + if (digits_and_remainder - (double)digits >= 0.5) { digits++; // Special case: Adding one bumps us to next magnitude. if (digits >= (uint64_t)pow(10, max_sig_digits)) { @@ -204,7 +204,7 @@ static size_t positive_double_to_string(const double value, char* dst, const int digits /= 10; } // Extract the single-digit whole part. - dst[0] = digits + '0'; + dst[0] = (char)digits + '0'; dst[1] = '.'; // Strip off trailing zeroes, and also the '.' if there is no fractional part. @@ -232,7 +232,7 @@ static size_t positive_double_to_string(const double value, char* dst, const int *dst = 0; } - return dst - orig_dst; + return (size_t)(dst - orig_dst); } /** @@ -346,7 +346,7 @@ int bsg_ksjsoncodec_i_appendEscapedString( if ((unsigned char)*src < ' ') { unsigned int last = *src % 16; - unsigned int first = (*src - last) / 16; + unsigned int first = ((unsigned int)*src - last) / 16; *dst++ = '\\'; *dst++ = 'u'; @@ -512,7 +512,7 @@ int bsg_ksjsonaddUIntegerElement(BSG_KSJSONEncodeContext *const context, unlikely_if(result != BSG_KSJSON_OK) { return result; } char buff[30]; uint64_to_string(value, buff); - return addJSONData(context, buff, (int)strlen(buff)); + return addJSONData(context, buff, strlen(buff)); } int bsg_ksjsonaddJSONElement(BSG_KSJSONEncodeContext *const context, diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.h index d1861a302d..c790529fa5 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.h @@ -80,8 +80,6 @@ typedef NS_OPTIONS(NSUInteger, BSG_KSJSONDecodeOption) { * * @param JSONData The UTF-8 data to decode. * - * @param options Options for how to decode the data. - * * @param error Place to store any error that occurs (nil = ignore). Will be * set to nil on success. * @@ -89,7 +87,6 @@ typedef NS_OPTIONS(NSUInteger, BSG_KSJSONDecodeOption) { * option is not set, nil when an error occurs. */ + (id)decode:(NSData *)JSONData - options:(BSG_KSJSONDecodeOption)options error:(NSError **)error; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.m index 0cc67cdaec..f114df9802 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSJSONCodecObjC.m @@ -232,7 +232,8 @@ - (void)dealloc { int bsg_ksjsoncodecobjc_i_onElement(BSG_KSJSONCodec *codec, NSString *name, id element) { - if (codec->_currentContainer == nil) { + id currentContainer = codec->_currentContainer; + if (!currentContainer) { codec.error = [NSError bsg_errorWithDomain:@"KSJSONCodecObjC" code:0 @@ -241,11 +242,10 @@ int bsg_ksjsoncodecobjc_i_onElement(BSG_KSJSONCodec *codec, NSString *name, return BSG_KSJSON_ERROR_INVALID_DATA; } - if ([codec->_currentContainer isKindOfClass:[NSMutableDictionary class]]) { - [(NSMutableDictionary *)codec->_currentContainer setValue:element - forKey:name]; + if ([currentContainer isKindOfClass:[NSMutableDictionary class]]) { + [(NSMutableDictionary *)currentContainer setValue:element forKey:name]; } else { - [(NSMutableArray *)codec->_currentContainer addObject:element]; + [(NSMutableArray *)currentContainer addObject:element]; } return BSG_KSJSON_OK; } @@ -297,10 +297,11 @@ int bsg_ksjsoncodecobjc_i_onNullElement(const char *const cName, NSString *name = stringFromCString(cName); BSG_KSJSONCodec *codec = (__bridge BSG_KSJSONCodec *)userData; + id currentContainer = codec->_currentContainer; if ((codec->_ignoreNullsInArrays && - [codec->_currentContainer isKindOfClass:[NSArray class]]) || + [currentContainer isKindOfClass:[NSArray class]]) || (codec->_ignoreNullsInObjects && - [codec->_currentContainer isKindOfClass:[NSDictionary class]])) { + [currentContainer isKindOfClass:[NSDictionary class]])) { return BSG_KSJSON_OK; } @@ -513,7 +514,6 @@ + (NSData *)encode:(id)object } + (id)decode:(NSData *)JSONData - options:(BSG_KSJSONDecodeOption)decodeOptions error:(NSError *__autoreleasing *)error { *error = nil; id result = nil; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.c index e6af66db9d..a850b56e66 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.c @@ -132,7 +132,7 @@ const char *bsg_ksmachexceptionName(const exception_type_t exceptionType) { return NULL; } -const char *bsg_ksmachkernelReturnCodeName(const unsigned long long returnCode) { +const char *bsg_ksmachkernelReturnCodeName(const kern_return_t returnCode) { switch (returnCode) { RETURN_NAME_FOR_ENUM(KERN_SUCCESS); RETURN_NAME_FOR_ENUM(KERN_INVALID_ADDRESS); @@ -510,7 +510,7 @@ double bsg_ksmachtimeDifferenceInSeconds(const uint64_t endTime, conversion = 1e-9 * (double)info.numer / (double)info.denom; } - return conversion * (endTime - startTime); + return conversion * (double)(endTime - startTime); } /** Check if the current process is being traced or not. diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.h index 765e85b5cd..d93a8889c3 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMach.h @@ -87,7 +87,7 @@ const char *bsg_ksmachexceptionName(exception_type_t exceptionType); * * @return The code's name or NULL if not found. */ -const char *bsg_ksmachkernelReturnCodeName(unsigned long long returnCode); +const char *bsg_ksmachkernelReturnCodeName(const kern_return_t returnCode); // ============================================================================ #pragma mark - Thread State Info - diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMachHeaders.c b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMachHeaders.c index 4b30496090..1a8f9f4723 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMachHeaders.c +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/KSCrash/Source/KSCrash/Recording/Tools/BSG_KSMachHeaders.c @@ -206,7 +206,10 @@ BSG_Mach_Header_Info *bsg_mach_headers_image_at_address(const uintptr_t address) if (cmdPtr == 0) { continue; } - uintptr_t addressWSlide = address - img->slide; + if (address < (uintptr_t)img->slide) { + continue; + } + uintptr_t addressWSlide = address - (uintptr_t)img->slide; for (uint32_t iCmd = 0; iCmd < img->header->ncmds; iCmd++) { const struct load_command *loadCmd = (struct load_command *)cmdPtr; @@ -285,20 +288,20 @@ static uintptr_t bsg_mach_header_info_get_section_addr_named(const BSG_Mach_Head if (loadCmd->cmd == LC_SEGMENT) { const struct segment_command *segment = (void *)cmdPtr; char *sectionPtr = (void *)(cmdPtr + sizeof(*segment)); - for (uint32_t i = 0; i < segment->nsects; i++) { + for (uint32_t j = 0; j < segment->nsects; j++) { struct section *section = (void *)sectionPtr; if (strcmp(name, section->sectname) == 0) { - return section->addr + header->slide; + return section->addr + (uintptr_t)header->slide; } sectionPtr += sizeof(*section); } } else if (loadCmd->cmd == LC_SEGMENT_64) { const struct segment_command_64 *segment = (void *)cmdPtr; char *sectionPtr = (void *)(cmdPtr + sizeof(*segment)); - for (uint32_t i = 0; i < segment->nsects; i++) { + for (uint32_t j = 0; j < segment->nsects; j++) { struct section_64 *section = (void *)sectionPtr; if (strcmp(name, section->sectname) == 0) { - return (uintptr_t)section->addr + header->slide; + return (uintptr_t)section->addr + (uintptr_t)header->slide; } sectionPtr += sizeof(*section); } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata+Private.h index c6e478966b..f1eece0674 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata+Private.h @@ -18,7 +18,7 @@ typedef void (^BugsnagObserverBlock)(BugsnagStateEvent *event); #pragma mark Properties -@property (readonly) NSMutableDictionary *dictionary; +@property (readonly, nonatomic) NSMutableDictionary *dictionary; #pragma mark Methods diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata.m index 5d24e7cf85..c379cce4c0 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Metadata/BugsnagMetadata.m @@ -117,7 +117,7 @@ - (void)removeObserverWithBlock:(BugsnagObserverBlock _Nonnull)block { // MARK: - -- (instancetype)mutableCopyWithZone:(NSZone *)zone { +- (instancetype)mutableCopyWithZone:(__attribute__((unused)) NSZone *)zone { @synchronized(self) { NSMutableDictionary *dict = [self.dictionary mutableCopy]; return [[BugsnagMetadata alloc] initWithDictionary:dict]; @@ -216,9 +216,7 @@ - (void)clearMetadataFromSection:(NSString *)section withKey:(NSString *)key { @synchronized(self) { - if ([[[self dictionary] objectForKey:section] objectForKey:key]) { - [[[self dictionary] objectForKey:section] removeObjectForKey:key]; - } + [(NSMutableDictionary *)self.dictionary[section] removeObjectForKey:key]; } [self notifyObservers]; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagApp.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagApp.m index e4c023980f..3a1c916ab9 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagApp.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagApp.m @@ -7,6 +7,8 @@ // #import "BugsnagApp.h" + +#import "BSG_KSSystemInfo.h" #import "BugsnagKeys.h" #import "BugsnagConfiguration.h" #import "BugsnagCollections.h" @@ -18,7 +20,9 @@ */ NSDictionary *BSGParseAppMetadata(NSDictionary *event) { NSMutableDictionary *app = [NSMutableDictionary new]; - app[@"name"] = [event valueForKeyPath:@"system.CFBundleExecutable"]; + app[@"name"] = [event valueForKeyPath:@"system." BSG_KSSystemField_BundleExecutable]; + app[@"binaryArch"] = [event valueForKeyPath:@"system." BSG_KSSystemField_BinaryArch]; + app[@"runningOnRosetta"] = [event valueForKeyPath:@"system." BSG_KSSystemField_Translated]; return app; } @@ -70,7 +74,7 @@ - (NSDictionary *)toDict NSMutableDictionary *dict = [NSMutableDictionary new]; dict[@"bundleVersion"] = self.bundleVersion; dict[@"codeBundleId"] = self.codeBundleId; - dict[@"dsymUUIDs"] = self.dsymUuid ? @[self.dsymUuid] : nil; + dict[@"dsymUUIDs"] = BSGArrayWithObject(self.dsymUuid); dict[@"id"] = self.id; dict[@"releaseStage"] = self.releaseStage; dict[@"type"] = self.type; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagAppWithState+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagAppWithState+Private.h index 879899e90f..55d8d53567 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagAppWithState+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagAppWithState+Private.h @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN + (BugsnagAppWithState *)appFromJson:(NSDictionary *)json; -+ (BugsnagAppWithState *)appWithDictionary:(NSDictionary *)event config:(BugsnagConfiguration *)config codeBundleId:(NSString *)codeBundleId; ++ (BugsnagAppWithState *)appWithDictionary:(NSDictionary *)event config:(BugsnagConfiguration *)config codeBundleId:(nullable NSString *)codeBundleId; - (NSDictionary *)toDict; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb+Private.h index 906e92301e..230705598b 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb+Private.h @@ -12,8 +12,6 @@ NS_ASSUME_NONNULL_BEGIN @interface BugsnagBreadcrumb () -+ (NSArray *)breadcrumbArrayFromJson:(NSArray *)json; - + (nullable instancetype)breadcrumbFromDict:(NSDictionary *)dict; + (nullable instancetype)breadcrumbWithBlock:(void (^)(BugsnagBreadcrumb *))block; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb.m index 5027d11537..d0b82435cd 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagBreadcrumb.m @@ -201,18 +201,6 @@ + (instancetype)breadcrumbWithBlock:(BSGBreadcrumbConfiguration)block { return nil; } -+ (NSArray *)breadcrumbArrayFromJson:(NSArray *)json { - NSMutableArray *data = [NSMutableArray new]; - - for (NSDictionary *dict in json) { - BugsnagBreadcrumb *crumb = [BugsnagBreadcrumb breadcrumbFromDict:dict]; - if (crumb) { - [data addObject:crumb]; - } - } - return data; -} - + (instancetype)breadcrumbFromDict:(NSDictionary *)dict { BOOL isValidCrumb = [dict[BSGKeyType] isKindOfClass:[NSString class]] && [dict[BSGKeyTimestamp] isKindOfClass:[NSString class]] diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError+Private.h index af5ef98cc8..ec65da6989 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError+Private.h @@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN NSString *BSGParseErrorClass(NSDictionary *error, NSString *errorType); -NSString *BSGParseErrorMessage(NSDictionary *report, NSDictionary *error, NSString *errorType); +NSString * _Nullable BSGParseErrorMessage(NSDictionary *report, NSDictionary *error, NSString *errorType); BSGErrorType BSGParseErrorType(NSString *errorType); diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError.m index 606fb3de16..1f302a0c93 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagError.m @@ -132,7 +132,7 @@ + (BugsnagError *)errorFromJson:(NSDictionary *)json { error.errorClass = json[BSGKeyErrorClass]; error.errorMessage = json[BSGKeyMessage]; error.stacktrace = data; - error.typeString = json[BSGKeyType]; + error.typeString = json[BSGKeyType] ?: BSGErrorTypeStringCocoa; return error; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent+Private.h index e922277941..989987a576 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent+Private.h @@ -18,21 +18,21 @@ NS_ASSUME_NONNULL_BEGIN @property (readwrite, copy, nullable, nonatomic) NSDictionary *customException; /// Number of frames to discard at the top of the generated stacktrace. Stacktraces from raised exceptions are unaffected. -@property NSUInteger depth; +@property (nonatomic) NSUInteger depth; /// A unique hash identifying this device for the application or vendor. @property (readwrite, copy, nullable, nonatomic) NSString *deviceAppHash; /// The release stages used to notify at the time this report is captured. -@property (readwrite, copy, nullable) NSArray *enabledReleaseStages; +@property (readwrite, copy, nullable, nonatomic) NSArray *enabledReleaseStages; /// Raw error data added to metadata. -@property (readwrite, copy, nullable) NSDictionary *error; +@property (readwrite, copy, nullable, nonatomic) NSDictionary *error; /// The event state (whether the error is handled/unhandled.) @property (readwrite, nonatomic) BugsnagHandledState *handledState; -@property (strong, nonatomic) BugsnagMetadata *metadata; +@property (strong, nullable, nonatomic) BugsnagMetadata *metadata; /// The release stage of the application @property (readwrite, copy, nullable, nonatomic) NSString *releaseStage; @@ -42,16 +42,16 @@ NS_ASSUME_NONNULL_BEGIN /// An array of string representations of BSGErrorType describing the types of stackframe / stacktrace in this error. @property (readonly, nonatomic) NSArray *stacktraceTypes; -@property (readwrite, nonatomic, nonnull) BugsnagUser *user; +@property (readwrite, nonnull, nonatomic) BugsnagUser *user; -- (instancetype)initWithApp:(nullable BugsnagAppWithState *)app - device:(nullable BugsnagDeviceWithState *)device +- (instancetype)initWithApp:(BugsnagAppWithState *)app + device:(BugsnagDeviceWithState *)device handledState:(BugsnagHandledState *)handledState - user:(nullable BugsnagUser *)user - metadata:(nullable BugsnagMetadata *)metadata + user:(BugsnagUser *)user + metadata:(BugsnagMetadata *)metadata breadcrumbs:(NSArray *)breadcrumbs errors:(NSArray *)errors - threads:(nullable NSArray *)threads + threads:(NSArray *)threads session:(nullable BugsnagSession *)session; - (instancetype)initWithJson:(NSDictionary *)json; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent.m index b423ab18d8..05aab39eed 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagEvent.m @@ -39,8 +39,6 @@ #import "BugsnagUser+Private.h" -static NSString *const DEFAULT_EXCEPTION_TYPE = @"cocoa"; - id BSGLoadConfigValue(NSDictionary *report, NSString *valueName) { NSString *keypath = [NSString stringWithFormat:@"user.config.%@", valueName]; NSString *fallbackKeypath = [NSString stringWithFormat:@"user.config.config.%@", valueName]; @@ -184,18 +182,45 @@ - (instancetype)initWithApp:(BugsnagAppWithState *)app - (instancetype)initWithJson:(NSDictionary *)json { if (self = [super init]) { - _app = [BugsnagAppWithState appFromJson:json[BSGKeyApp]]; - _breadcrumbs = BSGArrayMap(json[BSGKeyBreadcrumbs], ^id (NSDictionary *json) { return [BugsnagBreadcrumb breadcrumbFromDict:json]; }); - _context = json[BSGKeyContext]; - _device = [BugsnagDeviceWithState deviceFromJson:json[BSGKeyDevice]]; - _error = json[BSGKeyMetadata][BSGKeyError]; - _errors = BSGArrayMap(json[BSGKeyExceptions], ^id (NSDictionary *json) { return [BugsnagError errorFromJson:json]; }); - _groupingHash = json[BSGKeyGroupingHash]; + _app = BSGDeserializeObject(json[BSGKeyApp], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagAppWithState appFromJson:dict]; + }) ?: [[BugsnagAppWithState alloc] init]; + + _breadcrumbs = BSGDeserializeArrayOfObjects(json[BSGKeyBreadcrumbs], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagBreadcrumb breadcrumbFromDict:dict]; + }) ?: @[]; + + _context = BSGDeserializeString(json[BSGKeyContext]); + + _device = BSGDeserializeObject(json[BSGKeyDevice], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagDeviceWithState deviceFromJson:dict]; + }) ?: [[BugsnagDeviceWithState alloc] init]; + + _error = BSGDeserializeDict(json[BSGKeyMetadata][BSGKeyError]); + + _errors = BSGDeserializeArrayOfObjects(json[BSGKeyExceptions], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagError errorFromJson:dict]; + }) ?: @[]; + + _groupingHash = BSGDeserializeString(json[BSGKeyGroupingHash]); + _handledState = [BugsnagHandledState handledStateFromJson:json]; - _metadata = [[BugsnagMetadata alloc] initWithDictionary:json[BSGKeyMetadata]]; - _session = [BugsnagSession fromJson:json[BSGKeySession]]; - _threads = BSGArrayMap(json[BSGKeyThreads], ^id (NSDictionary *json) { return [BugsnagThread threadFromJson:json]; }); - _user = [[BugsnagUser alloc] initWithDictionary:json[BSGKeyUser]]; + + _metadata = BSGDeserializeObject(json[BSGKeyMetadata], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [[BugsnagMetadata alloc] initWithDictionary:dict]; + }) ?: [[BugsnagMetadata alloc] init]; + + _session = BSGDeserializeObject(json[BSGKeySession], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagSession fromJson:dict]; + }); + + _threads = BSGDeserializeArrayOfObjects(json[BSGKeyThreads], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [BugsnagThread threadFromJson:dict]; + }) ?: @[]; + + _user = BSGDeserializeObject(json[BSGKeyUser], ^id _Nullable(NSDictionary * _Nonnull dict) { + return [[BugsnagUser alloc] initWithDictionary:dict]; + }) ?: [[BugsnagUser alloc] init]; } return self; } @@ -278,10 +303,9 @@ - (instancetype)initWithKSCrashData:(NSDictionary *)event { } else { depth = 0; } - BugsnagSession *session; - if (event[BSGKeyUser][@"id"]) { - session = [[BugsnagSession alloc] initWithDictionary:event[BSGKeyUser]]; - } + BugsnagSession *session = BSGDeserializeObject(event[BSGKeyUser], ^id _Nullable(NSDictionary * _Nonnull userDict) { + return userDict[@"id"] ? [[BugsnagSession alloc] initWithDictionary:userDict] : nil; + }); // generate threads/error info NSArray *binaryImages = event[@"binary_images"]; @@ -302,7 +326,7 @@ - (instancetype)initWithKSCrashData:(NSDictionary *)event { NSArray *errors = @[[[BugsnagError alloc] initWithEvent:event errorReportingThread:errorReportingThread]]; if (errorReportingThread.crashInfoMessage) { - [errors[0] updateWithCrashInfoMessage:errorReportingThread.crashInfoMessage]; + [errors[0] updateWithCrashInfoMessage:(NSString * _Nonnull)errorReportingThread.crashInfoMessage]; error[@"crashInfo"] = errorReportingThread.crashInfoMessage; } @@ -320,16 +344,21 @@ - (instancetype)initWithKSCrashData:(NSDictionary *)event { handledState.unhandledOverridden = isUnhandledOverridden; } - NSMutableDictionary *userAtCrash = [self parseOnCrashData:event]; - if (userAtCrash != nil) { - for (NSString *section in [userAtCrash allKeys]) { - [metadata addMetadata:userAtCrash[section] toSection:section]; + [[self parseOnCrashData:event] enumerateKeysAndObjectsUsingBlock:^(id key, id obj, __attribute__((unused)) BOOL *stop) { + if ([key isKindOfClass:[NSString class]] && + [obj isKindOfClass:[NSDictionary class]]) { + [metadata addMetadata:obj toSection:key]; } - } + }]; + NSString *deviceAppHash = [event valueForKeyPath:@"system.device_app_hash"]; BugsnagDeviceWithState *device = [BugsnagDeviceWithState deviceWithKSCrashReport:event]; BugsnagUser *user = [self parseUser:event deviceAppHash:deviceAppHash deviceId:device.id]; - BugsnagConfiguration *config = [[BugsnagConfiguration alloc] initWithDictionaryRepresentation:[event valueForKeyPath:@"user.config"]]; + + NSDictionary *configDict = [event valueForKeyPath:@"user.config"]; + BugsnagConfiguration *config = [[BugsnagConfiguration alloc] initWithDictionaryRepresentation: + [configDict isKindOfClass:[NSDictionary class]] ? configDict : @{}]; + BugsnagAppWithState *app = [BugsnagAppWithState appWithDictionary:event config:config codeBundleId:self.codeBundleId]; BugsnagEvent *obj = [self initWithApp:app device:device @@ -356,60 +385,25 @@ - (instancetype)initWithKSCrashData:(NSDictionary *)event { * the Bugsnag Error API JSON schema, with the exception that they are * wrapped in a KSCrash JSON object. * - * @param event a KSCrash report + * @param crashReport a KSCrash report * * @return a BugsnagEvent containing the parsed information */ -- (instancetype)initWithUserData:(NSDictionary *)event { - NSDictionary *bugsnagPayload = [event valueForKeyPath:@"user.event"]; - // deserialize exceptions - NSArray *errorDicts = bugsnagPayload[BSGKeyExceptions]; - NSMutableArray *errors = [NSMutableArray new]; - - if (errorDicts != nil) { - for (NSDictionary *dict in errorDicts) { - BugsnagError *error = [BugsnagError errorFromJson:dict]; - - if (error != nil) { - [errors addObject:error]; - } - } +- (instancetype)initWithUserData:(NSDictionary *)crashReport { + NSDictionary *json = BSGDeserializeDict([crashReport valueForKeyPath:@"user.event"]); + if (!json || !(self = [self initWithJson:json])) { + return nil; } + _apiKey = BSGDeserializeString(json[BSGKeyApiKey]); + _context = BSGDeserializeString(json[BSGKeyContext]); + _groupingHash = BSGDeserializeString(json[BSGKeyGroupingHash]); + _error = [self getMetadataFromSection:BSGKeyError]; - // deserialize threads - NSArray *threadDicts = bugsnagPayload[BSGKeyThreads]; - NSMutableArray *threads = [NSMutableArray new]; - - if (threadDicts != nil) { - for (NSDictionary *dict in threadDicts) { - BugsnagThread *thread = [BugsnagThread threadFromJson:dict]; - - if (thread != nil) { - [threads addObject:thread]; - } - } + if (_errors.count) { + BugsnagError *error = _errors[0]; + _customException = BSGParseCustomException(crashReport, error.errorClass, error.errorMessage); } - BugsnagSession *session = [BugsnagSession fromJson:bugsnagPayload[BSGKeySession]]; - - BugsnagEvent *obj = [self initWithApp:[BugsnagAppWithState appFromJson:bugsnagPayload[BSGKeyApp]] - device:[BugsnagDeviceWithState deviceFromJson:bugsnagPayload[BSGKeyDevice]] - handledState:[BugsnagHandledState handledStateFromJson:bugsnagPayload] - user:[[BugsnagUser alloc] initWithDictionary:bugsnagPayload[BSGKeyUser]] - metadata:[[BugsnagMetadata alloc] initWithDictionary:bugsnagPayload[BSGKeyMetadata]] - breadcrumbs:[BugsnagBreadcrumb breadcrumbArrayFromJson:bugsnagPayload[BSGKeyBreadcrumbs]] - errors:errors - threads:threads - session:session]; - obj.apiKey = bugsnagPayload[BSGKeyApiKey]; - obj.context = bugsnagPayload[BSGKeyContext]; - obj.groupingHash = bugsnagPayload[BSGKeyGroupingHash]; - obj.error = [self getMetadataFromSection:BSGKeyError]; - - if ([errors count] > 0) { - BugsnagError *err = errors[0]; - obj.customException = BSGParseCustomException(event, err.errorClass, err.errorMessage); - } - return obj; + return self; } - (NSMutableDictionary *)parseOnCrashData:(NSDictionary *)report { @@ -460,7 +454,7 @@ - (void)setApiKey:(NSString *)apiKey { } - (BOOL)shouldBeSent { - return [self.enabledReleaseStages containsObject:self.releaseStage] || + return [self.enabledReleaseStages containsObject:self.releaseStage ?: @""] || (self.enabledReleaseStages.count == 0); } @@ -490,14 +484,6 @@ - (void)setSeverity:(BSGSeverity)severity { // MARK: - User // ============================================================================= -/** - * The current user - */ -@synthesize user = _user; -- (BugsnagUser *_Nonnull)user { - return _user; -} - /** * Set user metadata * @@ -545,9 +531,9 @@ - (NSDictionary *)toJsonWithRedactedKeys:(NSSet *)redactedKeys { event[BSGKeyExceptions] = ({ NSMutableArray *array = [NSMutableArray array]; - [self.errors enumerateObjectsUsingBlock:^(BugsnagError *error, NSUInteger idx, BOOL *stop) { + [self.errors enumerateObjectsUsingBlock:^(BugsnagError *error, NSUInteger idx, __attribute__((unused)) BOOL *stop) { if (self.customException != nil && idx == 0) { - [array addObject:self.customException]; + [array addObject:(NSDictionary * _Nonnull)self.customException]; } else { [array addObject:[error toDictionary]]; } @@ -602,7 +588,15 @@ - (NSDictionary *)toJsonWithRedactedKeys:(NSSet *)redactedKeys { event[BSGKeyUser] = [self.user toJson]; if (self.session) { - event[BSGKeySession] = [self generateSessionDict]; + // Different from the payload returned by [BugsnagSession toDictionary] or [BugsnagSession toJson] + event[BSGKeySession] = @{ + BSGKeyId: self.session.id ?: @"", + @"startedAt": [BSG_RFC3339DateTool stringFromDate:self.session.startedAt] ?: @"", + @"events": @{ + @"handled": @(self.session.handledCount), + @"unhandled": @(self.session.unhandledCount) + } + }; } return event; } @@ -613,7 +607,7 @@ - (NSMutableDictionary *)sanitiseMetadata:(NSMutableDictionary *)metadata redact metadata[sectionKey] = [metadata[sectionKey] mutableCopy]; } else { NSString *message = [NSString stringWithFormat:@"Expected an NSDictionary but got %@ %@", - NSStringFromClass([metadata[sectionKey] class]), metadata[sectionKey]]; + NSStringFromClass([(id _Nonnull)metadata[sectionKey] class]), metadata[sectionKey]]; bsg_log_err(@"%@", message); // Leave an indication of the error in the payload for diagnosis metadata[sectionKey] = [@{@"bugsnag.error": message} mutableCopy]; @@ -661,20 +655,6 @@ - (BOOL)isRedactedKey:(NSString *)key redactedKeys:(NSSet *)redactedKeys { return false; } -- (NSDictionary *)generateSessionDict { - NSDictionary *events = @{ - @"handled": @(self.session.handledCount), - @"unhandled": @(self.session.unhandledCount) - }; - - NSDictionary *sessionJson = @{ - BSGKeyId: self.session.id, - @"startedAt": [BSG_RFC3339DateTool stringFromDate:self.session.startedAt], - @"events": events - }; - return sessionJson; -} - - (BOOL)unhandled { return self.handledState.unhandled; } @@ -735,18 +715,14 @@ - (void)clearMetadataFromSection:(NSString *_Nonnull)sectionName [stacktraceTypes addObject:BSGSerializeErrorType(error.type)]; for (BugsnagStackframe *stackframe in error.stacktrace) { - if (stackframe.type) { - [stacktraceTypes addObject:stackframe.type]; - } + BSGSetAddIfNonnull(stacktraceTypes, stackframe.type); } } for (BugsnagThread *thread in self.threads) { [stacktraceTypes addObject:BSGSerializeThreadType(thread.type)]; for (BugsnagStackframe *stackframe in thread.stacktrace) { - if (stackframe.type) { - [stacktraceTypes addObject:stackframe.type]; - } + BSGSetAddIfNonnull(stacktraceTypes, stackframe.type); } } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.h index 70c44f19f7..0076c9250d 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.h @@ -12,10 +12,10 @@ NS_ASSUME_NONNULL_BEGIN @interface BugsnagNotifier : NSObject -@property NSString *name; -@property NSString *version; -@property NSString *url; -@property NSMutableArray *dependencies; +@property (copy, nonatomic) NSString *name; +@property (copy, nonatomic) NSString *version; +@property (copy, nonatomic) NSString *url; +@property (nonatomic) NSMutableArray *dependencies; - (NSDictionary *)toDict; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.m index bbe01e5e8f..5c12248cd7 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagNotifier.m @@ -23,7 +23,7 @@ - (instancetype)init { #else self.name = @"Bugsnag Objective-C"; #endif - self.version = @"6.8.4"; + self.version = @"6.9.0"; self.url = @"https://github.com/bugsnag/bugsnag-cocoa"; self.dependencies = [NSMutableArray new]; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession+Private.h index 348d167e33..a204f909eb 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession+Private.h @@ -16,20 +16,20 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark Initializers -+ (instancetype)fromJson:(NSDictionary *)json; ++ (nullable instancetype)fromJson:(NSDictionary *)json; -- (instancetype)initWithDictionary:(NSDictionary *)dict; +- (nullable instancetype)initWithDictionary:(NSDictionary *)dict; - (instancetype)initWithId:(NSString *)sessionId startDate:(NSDate *)startDate - user:(nullable BugsnagUser *)user + user:(BugsnagUser *)user autoCaptured:(BOOL)autoCaptured app:(BugsnagApp *)app device:(BugsnagDevice *)device; - (instancetype)initWithId:(NSString *)sessionId startDate:(NSDate *)startDate - user:(nullable BugsnagUser *)user + user:(BugsnagUser *)user handledCount:(NSUInteger)handledCount unhandledCount:(NSUInteger)unhandledCount app:(BugsnagApp *)app @@ -37,13 +37,13 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark Properties -@property (readonly) BOOL autoCaptured; +@property (readonly, nonatomic) BOOL autoCaptured; -@property NSUInteger handledCount; +@property (nonatomic) NSUInteger handledCount; -@property (getter=isStopped) BOOL stopped; +@property (getter=isStopped, nonatomic) BOOL stopped; -@property NSUInteger unhandledCount; +@property (nonatomic) NSUInteger unhandledCount; @property (readwrite, nonnull, nonatomic) BugsnagUser *user; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession.m index c183b16a60..08bc860b7a 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSession.m @@ -23,12 +23,12 @@ @implementation BugsnagSession -- (instancetype)initWithId:(NSString *_Nonnull)sessionId - startDate:(NSDate *_Nonnull)startDate - user:(BugsnagUser *_Nullable)user +- (instancetype)initWithId:(NSString *)sessionId + startDate:(NSDate *)startDate + user:(BugsnagUser *)user autoCaptured:(BOOL)autoCaptured - app:(BugsnagApp *_Nonnull)app - device:(BugsnagDevice *_Nonnull)device { + app:(BugsnagApp *)app + device:(BugsnagDevice *)device { if (self = [super init]) { _id = sessionId; _startedAt = [startDate copy]; @@ -40,48 +40,58 @@ - (instancetype)initWithId:(NSString *_Nonnull)sessionId return self; } -+ (instancetype)fromJson:(NSDictionary *)json { ++ (nullable instancetype)fromJson:(NSDictionary *)json { if (!json) { return nil; } - BugsnagSession *session = [BugsnagSession new]; - session.id = json[kBugsnagSessionId]; - - NSString *timestamp = json[kBugsnagStartedAt]; - - if (timestamp != nil) { - session.startedAt = [BSG_RFC3339DateTool dateFromString:timestamp]; + NSString *sessionId = BSGDeserializeString(json[kBugsnagSessionId]); + if (!sessionId) { + return nil; } NSDictionary *events = json[@"events"]; - - if (events != nil) { - session.unhandledCount = [events[@"unhandled"] unsignedIntegerValue]; - session.handledCount = [events[@"handled"] unsignedIntegerValue]; - } - return session; + return [[BugsnagSession alloc] initWithId:sessionId + startDate:BSGDeserializeDate(json[kBugsnagStartedAt]) ?: [NSDate date] + user:[[BugsnagUser alloc] init] + handledCount:[events[@"handled"] unsignedIntegerValue] + unhandledCount:[events[@"unhandled"] unsignedIntegerValue] + app:[[BugsnagApp alloc] init] + device:[[BugsnagDevice alloc] init]]; } -- (instancetype)initWithDictionary:(NSDictionary *_Nonnull)dict { +- (nullable instancetype)initWithDictionary:(NSDictionary *)dict { + NSString *sessionId = BSGDeserializeString(dict[kBugsnagSessionId]); + if (!sessionId) { + return nil; + } if (self = [super init]) { - _id = dict[kBugsnagSessionId]; + _id = sessionId; _unhandledCount = [dict[kBugsnagUnhandledCount] unsignedIntegerValue]; _handledCount = [dict[kBugsnagHandledCount] unsignedIntegerValue]; - _startedAt = [BSG_RFC3339DateTool dateFromString:dict[kBugsnagStartedAt]]; - _user = [[BugsnagUser alloc] initWithDictionary:dict[kBugsnagUser]]; - _app = [BugsnagApp deserializeFromJson:dict[BSGKeyApp]]; - _device = [BugsnagDevice deserializeFromJson:dict[BSGKeyDevice]]; + _startedAt = BSGDeserializeDate(dict[kBugsnagStartedAt]) ?: [NSDate date]; + + _user = BSGDeserializeObject(dict[kBugsnagUser], ^id _Nullable(NSDictionary * _Nonnull json) { + return [[BugsnagUser alloc] initWithDictionary:json]; + }) ?: [[BugsnagUser alloc] initWithDictionary:@{}]; + + _app = BSGDeserializeObject(dict[BSGKeyApp], ^id _Nullable(NSDictionary * _Nonnull json) { + return [BugsnagApp deserializeFromJson:json]; + }) ?: [[BugsnagApp alloc] init]; + + _device = BSGDeserializeObject(dict[BSGKeyDevice], ^id _Nullable(NSDictionary * _Nonnull json) { + return [BugsnagDevice deserializeFromJson:json]; + }) ?: [[BugsnagDevice alloc] init]; } return self; } -- (_Nonnull instancetype)initWithId:(NSString *_Nonnull)sessionId - startDate:(NSDate *_Nonnull)startDate - user:(BugsnagUser *_Nullable)user +- (_Nonnull instancetype)initWithId:(NSString *)sessionId + startDate:(NSDate *)startDate + user:(BugsnagUser *)user handledCount:(NSUInteger)handledCount unhandledCount:(NSUInteger)unhandledCount - app:(BugsnagApp *_Nonnull)app - device:(BugsnagDevice *_Nonnull)device { + app:(BugsnagApp *)app + device:(BugsnagDevice *)device { if (self = [super init]) { _id = sessionId; _startedAt = startDate; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSessionTrackingPayload.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSessionTrackingPayload.h index 17420d96ab..b89d263052 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSessionTrackingPayload.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagSessionTrackingPayload.h @@ -14,7 +14,7 @@ @interface BugsnagSessionTrackingPayload : NSObject -@property NSArray *sessions; +@property (nonatomic) NSArray *sessions; - (instancetype)initWithSessions:(NSArray *)sessions config:(BugsnagConfiguration *)config diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe+Private.h index 92228afa73..7fe0a5592d 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe+Private.h @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN @interface BugsnagStackframe () -+ (NSArray *)stackframesWithBacktrace:(uintptr_t *)backtrace length:(int)length; ++ (NSArray *)stackframesWithBacktrace:(uintptr_t *)backtrace length:(NSUInteger)length; + (NSArray *)stackframesWithCallStackReturnAddresses:(NSArray *)callStackReturnAddresses; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe.m index 7dfde07e73..b877df3f33 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStackframe.m @@ -92,10 +92,10 @@ + (BugsnagStackframe *)frameFromDict:(NSDictionary *)dict } } -+ (NSArray *)stackframesWithBacktrace:(uintptr_t *)backtrace length:(int)length { ++ (NSArray *)stackframesWithBacktrace:(uintptr_t *)backtrace length:(NSUInteger)length { NSMutableArray *frames = [NSMutableArray array]; - for (int i = 0; i < length; i++) { + for (NSUInteger i = 0; i < length; i++) { uintptr_t address = backtrace[i]; if (address == 1) { // We sometimes get a frame address of 0x1 at the bottom of the call stack. @@ -128,9 +128,9 @@ + (BugsnagStackframe *)frameFromDict:(NSDictionary *)dict } + (NSArray *)stackframesWithCallStackReturnAddresses:(NSArray *)callStackReturnAddresses { - int length = (int)callStackReturnAddresses.count; + NSUInteger length = callStackReturnAddresses.count; uintptr_t addresses[length]; - for (int i = 0; i < length; i++) { + for (NSUInteger i = 0; i < length; i++) { addresses[i] = (uintptr_t)callStackReturnAddresses[i].unsignedLongLongValue; } return [BugsnagStackframe stackframesWithBacktrace:addresses length:length]; diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStateEvent.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStateEvent.h index 29c423390a..5b471b45f8 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStateEvent.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagStateEvent.h @@ -16,12 +16,11 @@ static NSString *const kStateEventUser = @"UserUpdate"; @interface BugsnagStateEvent : NSObject -@property NSString *type; +@property (copy, nonatomic) NSString *type; -@property id data; +@property (nullable, nonatomic) id data; -- (instancetype)initWithName:(NSString *)name - data:(id)data; +- (instancetype)initWithName:(NSString *)name data:(nullable id)data; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Private.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Private.h index 42b9481a3f..7d0f32f8ee 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Private.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Private.h @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN + (instancetype)threadFromJson:(NSDictionary *)json; -@property (readonly) NSString *crashInfoMessage; +@property (readonly, nullable, nonatomic) NSString *crashInfoMessage; @property (readwrite, nonatomic) BOOL errorReportingThread; @@ -30,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN depth:(NSUInteger)depth errorType:(nullable NSString *)errorType; -+ (NSMutableArray *)serializeThreads:(NSArray *)threads; ++ (NSMutableArray *)serializeThreads:(nullable NSArray *)threads; + (NSMutableArray *)threadsFromArray:(NSArray *)threads binaryImages:(NSArray *)binaryImages diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Recording.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Recording.m index 3fb1494b0a..48b9f6ad26 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Recording.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread+Recording.m @@ -33,14 +33,14 @@ static void resume_threads() { #define kMaxAddresses 150 // same as BSG_kMaxBacktraceDepth struct backtrace_t { - int length; + NSUInteger length; uintptr_t addresses[kMaxAddresses]; }; static void backtrace_for_thread(thread_t thread, struct backtrace_t *output) { - BSG_STRUCT_MCONTEXT_L machineContext = {0}; + BSG_STRUCT_MCONTEXT_L machineContext = {{0}}; if (bsg_ksmachthreadState(thread, &machineContext)) { - output->length = bsg_ksbt_backtraceThreadState(&machineContext, output->addresses, 0, kMaxAddresses); + output->length = (NSUInteger)bsg_ksbt_backtraceThreadState(&machineContext, output->addresses, 0, kMaxAddresses); } else { output->length = 0; } @@ -53,8 +53,8 @@ @implementation BugsnagThread (Recording) + (NSArray *)allThreads:(BOOL)allThreads callStackReturnAddresses:(NSArray *)callStackReturnAddresses { struct backtrace_t backtrace; - backtrace.length = (int)MIN(callStackReturnAddresses.count, kMaxAddresses); - for (int i = 0; i < backtrace.length; i++) { + backtrace.length = MIN(callStackReturnAddresses.count, kMaxAddresses); + for (NSUInteger i = 0; i < (NSUInteger)backtrace.length; i++) { backtrace.addresses[i] = (uintptr_t)callStackReturnAddresses[i].unsignedLongLongValue; } if (allThreads) { @@ -81,7 +81,7 @@ @implementation BugsnagThread (Recording) struct backtrace_t backtraces[threadCount]; - for (int i = 0; i < threadCount; i++) { + for (mach_msg_type_number_t i = 0; i < threadCount; i++) { BOOL isCurrentThread = MACH_PORT_INDEX(threads[i]) == MACH_PORT_INDEX(bsg_ksmachthread_self()); if (isCurrentThread) { backtraces[i].length = 0; // currentThreadBacktrace will be used instead @@ -94,7 +94,7 @@ @implementation BugsnagThread (Recording) NSMutableArray *objects = [NSMutableArray arrayWithCapacity:threadCount]; - for (int i = 0; i < threadCount; i++) { + for (mach_msg_type_number_t i = 0; i < threadCount; i++) { BOOL isCurrentThread = MACH_PORT_INDEX(threads[i]) == MACH_PORT_INDEX(bsg_ksmachthread_self()); struct backtrace_t *backtrace = isCurrentThread ? currentThreadBacktrace : &backtraces[i]; [objects addObject:[[BugsnagThread alloc] initWithMachThread:threads[i] @@ -104,7 +104,7 @@ @implementation BugsnagThread (Recording) index:i]]; } - for (int i = 0; i < threadCount; i++) { + for (mach_msg_type_number_t i = 0; i < threadCount; i++) { mach_port_deallocate(mach_task_self(), threads[i]); } vm_deallocate(mach_task_self(), (vm_address_t)threads, sizeof(thread_t) * threadCount); @@ -116,9 +116,9 @@ + (instancetype)currentThreadWithBacktrace:(struct backtrace_t *)backtrace { thread_t thread = mach_thread_self(); thread_t *threads = NULL; mach_msg_type_number_t threadCount = 0; - int threadIndex = 0; + mach_msg_type_number_t threadIndex = 0; if (task_threads(mach_task_self(), &threads, &threadCount) == KERN_SUCCESS) { - for (int i = 0; i < threadCount; i++) { + for (mach_msg_type_number_t i = 0; i < threadCount; i++) { if (MACH_PORT_INDEX(threads[i]) == MACH_PORT_INDEX(thread)) { threadIndex = i; } @@ -162,7 +162,7 @@ + (nullable instancetype)mainThread { index:0]; } - for (int i = 0; i < threadCount; i++) { + for (mach_msg_type_number_t i = 0; i < threadCount; i++) { mach_port_deallocate(mach_task_self(), threads[i]); } vm_deallocate(mach_task_self(), (vm_address_t)threads, sizeof(thread_t) * threadCount); @@ -172,9 +172,9 @@ + (nullable instancetype)mainThread { - (instancetype)initWithMachThread:(thread_t)machThread backtraceAddresses:(uintptr_t *)backtraceAddresses - backtraceLength:(int)backtraceLength + backtraceLength:(NSUInteger)backtraceLength errorReportingThread:(BOOL)errorReportingThread - index:(int)index { + index:(unsigned)index { char name[64] = ""; if (!bsg_ksmachgetThreadName(machThread, name, sizeof(name)) || !name[0]) { diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread.m index 253035ff4a..11d32079b7 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Payload/BugsnagThread.m @@ -57,11 +57,11 @@ - (instancetype)initWithId:(NSString *)id - (instancetype)initWithThread:(NSDictionary *)thread binaryImages:(NSArray *)binaryImages { if (self = [super init]) { - _errorReportingThread = [thread[@(BSG_KSCrashField_Crashed)] boolValue]; - _id = [thread[@(BSG_KSCrashField_Index)] stringValue]; + _errorReportingThread = [thread[@BSG_KSCrashField_Crashed] boolValue]; + _id = [thread[@BSG_KSCrashField_Index] stringValue]; _type = BSGThreadTypeCocoa; - _crashInfoMessage = [thread[@(BSG_KSCrashField_CrashInfoMessage)] copy]; - NSArray *backtrace = thread[@(BSG_KSCrashField_Backtrace)][@(BSG_KSCrashField_Contents)]; + _crashInfoMessage = [thread[@BSG_KSCrashField_CrashInfoMessage] copy]; + NSArray *backtrace = thread[@BSG_KSCrashField_Backtrace][@BSG_KSCrashField_Contents]; BugsnagStacktrace *frames = [[BugsnagStacktrace alloc] initWithTrace:backtrace binaryImages:binaryImages]; _stacktrace = [frames.trace copy]; } @@ -138,7 +138,7 @@ + (NSDictionary *)enhanceThreadInfo:(NSDictionary *)thread NSMutableArray *stacktrace = [NSMutableArray array]; for (NSDictionary *frame in backtrace) { - NSMutableDictionary *mutableFrame = (NSMutableDictionary *) [frame mutableCopy]; + NSMutableDictionary *mutableFrame = [frame mutableCopy]; if (seen++ >= depth) { // Mark the frame so we know where it came from if (seen == 1 && !stackOverflow) { @@ -150,10 +150,11 @@ + (NSDictionary *)enhanceThreadInfo:(NSDictionary *)thread [stacktrace addObject:mutableFrame]; } } - NSMutableDictionary *copy = [NSMutableDictionary dictionaryWithDictionary:thread]; - copy[@"backtrace"] = [NSMutableDictionary dictionaryWithDictionary:copy[@"backtrace"]]; - copy[@"backtrace"][@"contents"] = stacktrace; - return copy; + NSMutableDictionary *mutableBacktrace = [thread[@"backtrace"] mutableCopy]; + mutableBacktrace[@"contents"] = stacktrace; + NSMutableDictionary *mutableThread = [thread mutableCopy]; + mutableThread[@"backtrace"] = mutableBacktrace; + return mutableThread; } return thread; } diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Plugins/BugsnagPluginClient.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Plugins/BugsnagPluginClient.m index d297c49528..e145976783 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Plugins/BugsnagPluginClient.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Plugins/BugsnagPluginClient.m @@ -14,8 +14,8 @@ static NSString *const kPluginReactNative = @"BugsnagReactNativePlugin"; @interface BugsnagPluginClient () -@property NSSet> *plugins; -@property BugsnagClient *client; +@property (nonatomic) NSSet> *plugins; +@property (nonatomic) BugsnagClient *client; @end @implementation BugsnagPluginClient diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BSGFileLocations.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BSGFileLocations.m index 22da673493..68693a66d5 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BSGFileLocations.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BSGFileLocations.m @@ -42,7 +42,8 @@ static BOOL ensureDirExists(NSString *path) { rootPath = [NSString stringWithFormat:@"%@/com.bugsnag.Bugsnag/%@/%@", url.path, - [NSBundle mainBundle].bundleIdentifier, + // Processes that don't have an Info.plist have no bundleIdentifier + NSBundle.mainBundle.bundleIdentifier ?: NSProcessInfo.processInfo.processName, fsVersion]; // If we can't even create the root dir, all is lost, and no file ops can be allowed. diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagFileStore.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagFileStore.m index 599194b3a1..0909e65f5e 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagFileStore.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagFileStore.m @@ -245,9 +245,6 @@ - (NSMutableDictionary *)readFile:(NSString *)path NSMutableDictionary *fileContents = [BSG_KSJSONCodec decode:jsonData - options:BSG_KSJSONDecodeOptionIgnoreNullInArray | - BSG_KSJSONDecodeOptionIgnoreNullInObject | - BSG_KSJSONDecodeOptionKeepPartialObject error:error]; if (error != nil && *error != nil) { diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagSessionFileStore.m b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagSessionFileStore.m index 3ab62d019e..78714328d9 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagSessionFileStore.m +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Storage/BugsnagSessionFileStore.m @@ -13,7 +13,7 @@ @interface BugsnagSessionFileStore () -@property NSUInteger maxPersistedSessions; +@property (nonatomic) NSUInteger maxPersistedSessions; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagBreadcrumb.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagBreadcrumb.h index 61a6c6f678..cae86eaeb0 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagBreadcrumb.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagBreadcrumb.h @@ -102,23 +102,23 @@ typedef NS_OPTIONS(NSUInteger, BSGEnabledBreadcrumbType) { /** * The date when the breadcrumb was left */ -@property(readonly, nullable) NSDate *timestamp; +@property (readonly, nullable, nonatomic) NSDate *timestamp; /** * The type of breadcrumb */ -@property(readwrite) BSGBreadcrumbType type; +@property (readwrite, nonatomic) BSGBreadcrumbType type; /** * The description of the breadcrumb */ -@property(readwrite, copy, nonnull) NSString *message; +@property (readwrite, copy, nonnull, nonatomic) NSString *message; /** * Diagnostic data relating to the breadcrumb. * * The dictionary should be a valid JSON object. */ -@property(readwrite, copy, nonnull) NSDictionary *metadata; +@property (readwrite, copy, nonnull, nonatomic) NSDictionary *metadata; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagConfiguration.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagConfiguration.h index 8448efe667..d81bf2e585 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagConfiguration.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagConfiguration.h @@ -185,7 +185,7 @@ typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull session); /** * The URL session used to send requests to Bugsnag. */ -@property(readwrite, strong, nonnull) NSURLSession *session; +@property (readwrite, strong, nonnull, nonatomic) NSURLSession *session; /** * Controls whether Bugsnag should capture and serialize the state of all threads at the time @@ -195,18 +195,17 @@ typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull session); * BSGThreadSendPolicyNever to disable or BSGThreadSendPolicyUnhandledOnly * to only do so for unhandled errors. */ -@property BSGThreadSendPolicy sendThreads; +@property (nonatomic) BSGThreadSendPolicy sendThreads; /** * Optional handler invoked when an error or crash occurs */ -@property void (*_Nullable onCrashHandler) - (const BSG_KSCrashReportWriter *_Nonnull writer); +@property (nullable, nonatomic) void (* onCrashHandler)(const BSG_KSCrashReportWriter *); /** * YES if uncaught exceptions and other crashes should be reported automatically */ -@property BOOL autoDetectErrors; +@property (nonatomic) BOOL autoDetectErrors; /** * The minimum number of milliseconds of main thread unresponsiveness that will trigger the @@ -225,7 +224,7 @@ typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull session); * If this value is updated after +[Bugsnag start] is called, only subsequent automatic sessions * will be captured. */ -@property BOOL autoTrackSessions; +@property (nonatomic) BOOL autoTrackSessions; /** * The amount of time (in milliseconds) after starting Bugsnag that should be considered part of @@ -254,7 +253,7 @@ typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull session); /** * The types of breadcrumbs which will be captured. By default, this is all types. */ -@property BSGEnabledBreadcrumbType enabledBreadcrumbTypes; +@property (nonatomic) BSGEnabledBreadcrumbType enabledBreadcrumbTypes; /** * The app's bundleVersion, set from the CFBundleVersion. Equivalent to `versionCode` on Android. @@ -285,13 +284,13 @@ typedef BOOL (^BugsnagOnSessionBlock)(BugsnagSession *_Nonnull session); * * By default, 25 breadcrumbs are stored: this can be amended up to a maximum of 100. */ -@property NSUInteger maxBreadcrumbs; +@property (nonatomic) NSUInteger maxBreadcrumbs; /** * Whether User information should be persisted to disk between application runs. * Defaults to True. */ -@property BOOL persistUser; +@property (nonatomic) BOOL persistUser; // ----------------------------------------------------------------------------- // MARK: - Methods diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagErrorTypes.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagErrorTypes.h index 8d9a767dd4..a3c0df0abf 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagErrorTypes.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagErrorTypes.h @@ -18,48 +18,48 @@ * * This flag is true by default. */ -@property BOOL appHangs; +@property (nonatomic) BOOL appHangs; /** * Determines whether Out of Memory events should be reported to bugsnag. * * This flag is true by default. */ -@property BOOL ooms; +@property (nonatomic) BOOL ooms; /** * Determines whether NSExceptions should be reported to bugsnag. * * This flag is true by default. */ -@property BOOL unhandledExceptions; +@property (nonatomic) BOOL unhandledExceptions; /** * Determines whether signals should be reported to bugsnag. * * This flag is true by default. */ -@property BOOL signals; +@property (nonatomic) BOOL signals; /** * Determines whether C errors should be reported to bugsnag. * * This flag is true by default. */ -@property BOOL cppExceptions; +@property (nonatomic) BOOL cppExceptions; /** * Determines whether Mach Exceptions should be reported to bugsnag. * * This flag is true by default. */ -@property BOOL machExceptions; +@property (nonatomic) BOOL machExceptions; /** * Sets whether Bugsnag should automatically capture and report unhandled promise rejections. * This only applies to React Native apps. * By default, this value is true. */ -@property BOOL unhandledRejections; +@property (nonatomic) BOOL unhandledRejections; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagEvent.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagEvent.h index 6879e38139..e5bde39320 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagEvent.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagEvent.h @@ -43,56 +43,56 @@ typedef NS_ENUM(NSUInteger, BSGSeverity) { * A loose representation of what was happening in the application at the time * of the event */ -@property(readwrite, copy, nullable) NSString *context; +@property (readwrite, copy, nullable, nonatomic) NSString *context; /** * The severity of the error generating the report */ -@property(readwrite) BSGSeverity severity; +@property (readwrite, nonatomic) BSGSeverity severity; /** * Information extracted from the error that caused the event. The list contains * at least one error that represents the root cause, with subsequent elements populated * from the cause. */ -@property(readwrite, copy, nonnull) NSArray *errors; +@property (readwrite, copy, nonnull, nonatomic) NSArray *errors; /** * Customized hash for grouping this report with other errors */ -@property(readwrite, copy, nullable) NSString *groupingHash; +@property (readwrite, copy, nullable, nonatomic) NSString *groupingHash; /** * Breadcrumbs from user events leading up to the error */ -@property(readwrite, copy, nonnull) NSArray *breadcrumbs; +@property (readwrite, copy, nonnull, nonatomic) NSArray *breadcrumbs; /** * A per-event override for the apiKey. * - The default value of nil results in the BugsnagConfiguration apiKey being used. * - Writes are not persisted to BugsnagConfiguration. */ -@property(readwrite, copy, nullable, nonatomic) NSString *apiKey; +@property (readwrite, copy, nullable, nonatomic) NSString *apiKey; /** * Device information such as OS name and version */ -@property(readonly, nonnull) BugsnagDeviceWithState *device; +@property (readonly, nonnull, nonatomic) BugsnagDeviceWithState *device; /** * App information such as the name, version, and bundle ID */ -@property(readonly, nonnull) BugsnagAppWithState *app; +@property (readonly, nonnull, nonatomic) BugsnagAppWithState *app; /** * Whether the event was a crash (i.e. unhandled) or handled error in which the system * continued running. */ -@property(readwrite) BOOL unhandled; +@property (readwrite, nonatomic) BOOL unhandled; /** * Thread traces for the error that occurred, if collection was enabled. */ -@property(readwrite, copy, nonnull) NSArray *threads; +@property (readwrite, copy, nonnull, nonatomic) NSArray *threads; /** * The original object that caused the error in your application. This value will only be populated for @@ -102,7 +102,7 @@ typedef NS_ENUM(NSUInteger, BSGSeverity) { * Bugsnag dashboard. Use event.errors to access and amend the representation of * the error that will be sent. */ -@property(strong, nullable, nonatomic) id originalError; +@property (strong, nullable, nonatomic) id originalError; // ============================================================================= @@ -112,7 +112,7 @@ typedef NS_ENUM(NSUInteger, BSGSeverity) { /** * The current user */ -@property(readonly, nonatomic, nonnull) BugsnagUser *user; +@property (readonly, nonnull, nonatomic) BugsnagUser *user; /** * Set user metadata diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagStackframe.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagStackframe.h index 813755445c..882396b432 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagStackframe.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagStackframe.h @@ -57,12 +57,12 @@ FOUNDATION_EXPORT BugsnagStackframeType const BugsnagStackframeTypeCocoa; /** * Whether the frame was within the program counter */ -@property BOOL isPc; +@property (nonatomic) BOOL isPc; /** * Whether the frame was within the link register */ -@property BOOL isLr; +@property (nonatomic) BOOL isLr; /** * The type of the stack frame, if it differs from that of the containing error or event. diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagThread.h b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagThread.h index 44716fc298..bfaac04048 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagThread.h +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagThread.h @@ -44,6 +44,6 @@ typedef NS_OPTIONS(NSUInteger, BSGThreadType) { * Determines the type of thread based on the originating platform * (intended for internal use only) */ -@property BSGThreadType type; +@property (nonatomic) BSGThreadType type; @end diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/CHANGELOG.md b/packages/react-native/ios/vendor/bugsnag-cocoa/CHANGELOG.md index 0b9292548a..6054134c64 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/CHANGELOG.md +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/CHANGELOG.md @@ -1,6 +1,19 @@ Changelog ========= +## 6.9.0 (2021-04-21) + +### Enhancements + +* App hangs that occur while the app is in the background will no longer be reported. + [#1075](https://github.com/bugsnag/bugsnag-cocoa/pull/1075) + +* Add `binaryArch` and `runningOnRosetta` to the `app` metadata tab. + [#1073](https://github.com/bugsnag/bugsnag-cocoa/pull/1073) + +* Bugsnag can now be used without AppKit, allowing use in daemons and other processes running in non-UI sessions. + [#1072](https://github.com/bugsnag/bugsnag-cocoa/pull/1072) + ## 6.8.4 (2021-04-14) ### Enhancements diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/Framework/Info.plist b/packages/react-native/ios/vendor/bugsnag-cocoa/Framework/Info.plist index 3052529a45..84a1eee484 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/Framework/Info.plist +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/Framework/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 6.8.4 + 6.9.0 CFBundleVersion 1 diff --git a/packages/react-native/ios/vendor/bugsnag-cocoa/VERSION b/packages/react-native/ios/vendor/bugsnag-cocoa/VERSION index 9ffc8cfb6c..97f5781528 100644 --- a/packages/react-native/ios/vendor/bugsnag-cocoa/VERSION +++ b/packages/react-native/ios/vendor/bugsnag-cocoa/VERSION @@ -1 +1 @@ -6.8.4 +6.9.0 diff --git a/packages/react-native/package-lock.json b/packages/react-native/package-lock.json index f61b1f3a48..5225cab5d9 100644 --- a/packages/react-native/package-lock.json +++ b/packages/react-native/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bugsnag/react-native", - "version": "7.9.4", + "version": "7.9.5-alpha.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index b14759f2ce..2cfd655d42 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@bugsnag/react-native", - "version": "7.9.4", + "version": "7.9.5-alpha.0", "main": "src/notifier.js", "types": "types/bugsnag.d.ts", "description": "Bugsnag error reporter for React Native applications", @@ -61,5 +61,8 @@ "@bugsnag/plugin-react-native-session": "^7.9.2", "@bugsnag/plugin-react-native-unhandled-rejection": "^7.9.2", "iserror": "^0.0.2" + }, + "scripts": { + "prepare": "./prepare-android-vendor.sh" } } diff --git a/packages/react-native/prepare-android-vendor.config b/packages/react-native/prepare-android-vendor.config new file mode 100644 index 0000000000..8a5129d241 --- /dev/null +++ b/packages/react-native/prepare-android-vendor.config @@ -0,0 +1,2 @@ +version +5.9.1 diff --git a/packages/react-native/prepare-android-vendor.sh b/packages/react-native/prepare-android-vendor.sh new file mode 100755 index 0000000000..b4eb3b4ffc --- /dev/null +++ b/packages/react-native/prepare-android-vendor.sh @@ -0,0 +1,111 @@ +#!/usr/bin/env bash + +set -xeuo pipefail + +TEMP_DIR= +cleanup() { + if [ "$TEMP_DIR" != "" ]; then + rm -rf "$TEMP_DIR" + fi +} +trap cleanup EXIT + +SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) +SCRIPT_NAME="${0##*/}" +CONFIG_FILE="$SCRIPT_DIR/prepare-android-vendor.config" + +MODE=$(head -1 "$CONFIG_FILE") +ARG=$(tail -1 "$CONFIG_FILE") + +MAVEN_REPO_DIR="$HOME/.m2/repository/com/bugsnag" +ARTIFACT_NAMES=( + bugsnag-android + bugsnag-android-core + bugsnag-android-ndk + bugsnag-plugin-android-ndk + bugsnag-plugin-android-anr + bugsnag-plugin-react-native + ) +REPO_FILE_VARIANTS=( + '-sources.jar' + '-sources.jar.asc' + '.aar' + '.aar.asc' + '.module' + '.module.asc' + '.pom' + '.pom.asc' + ) + +revendor_from_dir() { + local src_dir="$(cd "$1" && pwd)" + if [ ! -f "$src_dir/gradlew" ]; then + echo "Source directory doesn't look like the bugsnag-android repo: $src_dir" + exit 1 + fi + + local dst_dir="$SCRIPT_DIR/android" + local com_dir="$dst_dir/com" + + # artefact version needs to be unique to avoid clash with bugsnag-android artefacts + # deployed on mavenCentral/jcenter, append a 'react-native' suffix + local bugsnag_android_version=$(cat $src_dir/gradle.properties | grep VERSION_NAME) + local bugsnag_version_rn="${bugsnag_android_version#*=}-react-native" + + echo "Clearing local maven repo $MAVEN_REPO_DIR" + rm -rf "$MAVEN_REPO_DIR" + + echo "Building local copy of bugsnag-android $bugsnag_version_rn" + "$src_dir/gradlew" -p "$src_dir" clean assembleRelease publishToMavenLocal -PVERSION_NAME=$bugsnag_version_rn + + echo "Rebuilding vendor dir $dst_dir" + rm -rf "$com_dir" + mkdir -p "$com_dir" + cp -r "$MAVEN_REPO_DIR" "$com_dir/" +} + +use_bugsnag_version() { + local version=$1 + local dst_dir="$SCRIPT_DIR/android" + local bugsnag_dir="$dst_dir/com/bugsnag" + + rm -rf "$bugsnag_dir" + + for name in ${ARTIFACT_NAMES[@]}; do + local dstdir="$bugsnag_dir/$name" + mkdir -p "$dstdir" + pushd "$dstdir" + for variant in ${REPO_FILE_VARIANTS[@]}; do + curl https://repo1.maven.org/maven2/com/bugsnag/$name/$version/$name-$version$variant >>$name-$version$variant + done + done +} + +revendor_from_sha() { + local tag=$1 + echo "Checking out https://github.com/bugsnag/bugsnag-android.git with tag $tag" + TEMP_DIR="$(mktemp -d)" + pushd "$TEMP_DIR" >/dev/null + git clone https://github.com/bugsnag/bugsnag-android.git + cd bugsnag-android + git checkout $tag + git submodule update --init --recursive + popd >/dev/null + revendor_from_dir "$TEMP_DIR/bugsnag-android" +} + +case $MODE in + version) + use_bugsnag_version $ARG + ;; + sha) + revendor_from_sha $ARG + ;; + local) + revendor_from_dir "$ARG" + ;; + *) + echo "$MODE: Unknown mode in $CONFIG_FILE" + exit 1 + ;; +esac; diff --git a/packages/react-native/update-android.sh b/packages/react-native/update-android.sh index 64f448f9ec..7f3a5b92c6 100755 --- a/packages/react-native/update-android.sh +++ b/packages/react-native/update-android.sh @@ -1,30 +1,134 @@ #!/usr/bin/env bash -set -e -ANDROID_REPO_DIR=../../../bugsnag-android -MAVEN_REPO_DIR=~/.m2/repository/com/bugsnag -AAR_DST=android/com/bugsnag +# ---------- +# Setup Code +# ---------- -# artefact version needs to be unique to avoid clash with bugsnag-android artefacts -# deployed on mavenCentral/jcenter, append a 'react-native' suffix -ANDROID_VERSION=$(cat $ANDROID_REPO_DIR/gradle.properties | grep VERSION_NAME) -AMENDED_VERSION="${ANDROID_VERSION#*=}-react-native" +set -euo pipefail -echo "Clearing local maven repo" -rm -rf $MAVEN_REPO_DIR +TEMP_DIR= +cleanup() { + if [ "$TEMP_DIR" != "" ]; then + rm -rf "$TEMP_DIR" + fi +} +trap cleanup EXIT -echo "Building local copy of bugsnag-android $AMENDED_VERSION" -./$ANDROID_REPO_DIR/gradlew -p $ANDROID_REPO_DIR clean assembleRelease publishToMavenLocal -PVERSION_NAME=$AMENDED_VERSION +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +SCRIPT_NAME="${0##*/}" +CONFIG_FILE="$SCRIPT_DIR/prepare-android-vendor.config" -echo "Removing previous AARs from bugsnag-js" -rm -rf $AAR_DST +print_help() { + echo "Usage: $SCRIPT_NAME [options]" + echo + echo "Options (must select one):" + echo " --version (example: $SCRIPT_NAME --version 5.8.0)" + echo " --local (example: $SCRIPT_NAME --local ../../../bugsnag-android)" + echo " --sha (example: $SCRIPT_NAME --sha 64132f5)" + echo " --list-versions (lists all versions available and exits)" +} -echo "Copying new AARs to bugsnag-js" -cp -r $MAVEN_REPO_DIR $AAR_DST +error_bad_opt(){ + echo "$SCRIPT_NAME: invalid option '$1'"; + echo + print_help + exit 1 +} -echo "Recording version" -rm -rf ./android/.bugsnag-android-version -echo $(cd $ANDROID_REPO_DIR && git rev-parse HEAD) >> ./android/.bugsnag-android-version +error_missing_field(){ + echo "$SCRIPT_NAME: $1 missing required field"; + echo + print_help + exit 1 +} -sed -i '' "s/api \"com.bugsnag:bugsnag-android:.*/api \"com.bugsnag:bugsnag-android:$AMENDED_VERSION\"/" android/build.gradle -sed -i '' "s/api \"com.bugsnag:bugsnag-plugin-react-native:.*/api \"com.bugsnag:bugsnag-plugin-react-native:$AMENDED_VERSION\"/" android/build.gradle +sed_in_place() { + local script="$1" + local file="$2" + + if [[ "$OSTYPE" == linux* ]]; then + sed -i "$script" "$file" + else + sed -i '' "$script" "$file" + fi +} + +MODE=unset +GIT_TAG= +BUGSNAG_ANDROID_REPO_DIR= + +set_bugsnag_version() { + local version=$1 + local build_gradle_file="$SCRIPT_DIR/android/build.gradle" + + echo "Now using Bugsnag version $version" + sed_in_place "s/api \"com.bugsnag:bugsnag-android:.*/api \"com.bugsnag:bugsnag-android:$version\"/" "$build_gradle_file" + sed_in_place "s/api \"com.bugsnag:bugsnag-plugin-react-native:.*/api \"com.bugsnag:bugsnag-plugin-react-native:$version\"/" "$build_gradle_file" +} + +set_bugsnag_version_from_src_dir() { + local src_dir="$(cd "$1" && pwd)" + if [ ! -f "$src_dir/gradlew" ]; then + echo "Source directory doesn't look like the bugsnag-android repo: $src_dir" + exit 1 + fi + + local bugsnag_android_version=$(cat $src_dir/gradle.properties | grep VERSION_NAME) + set_bugsnag_version "${bugsnag_android_version#*=}-react-native" +} + +set_bugsnag_version_from_sha() { + local tag=$1 + echo "Checking out https://github.com/bugsnag/bugsnag-android.git with tag $tag" + TEMP_DIR="$(mktemp -d)" + pushd "$TEMP_DIR" >/dev/null + git clone https://github.com/bugsnag/bugsnag-android.git + cd bugsnag-android + git checkout $tag + git submodule update --init --recursive + popd >/dev/null + set_bugsnag_version_from_src_dir "$TEMP_DIR/bugsnag-android" +} + +# BSD-friendly getopt-style supporting longopt +while [ $# -gt 0 ]; do + case $1 in + --) shift; break;; + -*) case $1 in + --list-versions) + git ls-remote --tags https://github.com/bugsnag/bugsnag-android.git | \ + grep -v "{}" | awk "{print \$2}" | sed 's/refs\/tags\/v//g' | sed 's/refs\/tags\///g' + exit 0 + ;; + --version) + if [ $# -lt 2 ]; then error_missing_field $1; fi + echo "version" >"$CONFIG_FILE" + echo "$2" >>"$CONFIG_FILE" + set_bugsnag_version "$2" + exit 0 + ;; + --local) + if [ $# -lt 2 ]; then error_missing_field $1; fi + full_local_path="$(cd "$2" && pwd)" + echo "local" >"$CONFIG_FILE" + echo "$full_local_path" >>"$CONFIG_FILE" + set_bugsnag_version_from_src_dir "$full_local_path" + exit 0 + ;; + --sha) + if [ $# -lt 2 ]; then error_missing_field $1; fi + echo "sha" >"$CONFIG_FILE" + echo "$2" >>"$CONFIG_FILE" + set_bugsnag_version_from_sha "$2" + exit 0 + ;; + -*) + error_bad_opt $1;; + esac;; + *) error_bad_opt $1;; + esac + shift +done + +print_help +exit 1 diff --git a/packages/react-native/update-ios.sh b/packages/react-native/update-ios.sh index 83c91eb28a..5e29e8967e 100755 --- a/packages/react-native/update-ios.sh +++ b/packages/react-native/update-ios.sh @@ -6,7 +6,7 @@ set -euo pipefail -SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_NAME="${0##*/}" TEMP_DIR= @@ -24,6 +24,7 @@ print_help() { echo " --version (example: $SCRIPT_NAME --version 6.7.0)" echo " --local (example: $SCRIPT_NAME --local ../../../bugsnag-cocoa)" echo " --sha (example: $SCRIPT_NAME --sha c8210a3)" + echo " --list-versions (lists all versions available and exits)" } error_bad_opt(){ @@ -49,6 +50,9 @@ while [ $# -gt 0 ]; do case $1 in --) shift; break;; -*) case $1 in + --list-versions) + MODE=list-versions + ;; --version) if [ $# -lt 2 ]; then error_missing_field $1; fi MODE=version @@ -57,7 +61,7 @@ while [ $# -gt 0 ]; do --local) if [ $# -lt 2 ]; then error_missing_field $1; fi MODE=local - BUGSNAG_COCOA_REPO_DIR="$2" + BUGSNAG_COCOA_REPO_DIR="$(cd "$2" && pwd)" shift;; --sha) if [ $# -lt 2 ]; then error_missing_field $1; fi @@ -110,28 +114,46 @@ revendor_from_dir() { echo $(cd "$src_dir" && git rev-parse HEAD) >> "$SCRIPT_DIR/ios/.bugsnag-cocoa-version" } -revendor_from_clean_repo() { +revendor_from_tag() { local tag=$1 echo "Checking out https://github.com/bugsnag/bugsnag-cocoa.git with tag $tag" TEMP_DIR="$(mktemp -d)" pushd "$TEMP_DIR" >/dev/null - git clone https://github.com/bugsnag/bugsnag-cocoa.git - cd bugsnag-cocoa - git checkout $tag || exit 1 + git clone https://github.com/bugsnag/bugsnag-cocoa.git --depth 1 --branch $tag + cd bugsnag-cocoa + git submodule update --init --recursive popd >/dev/null revendor_from_dir "$TEMP_DIR/bugsnag-cocoa" } +revendor_from_sha() { + local tag=$1 + echo "Checking out https://github.com/bugsnag/bugsnag-cocoa.git with tag $tag" + TEMP_DIR="$(mktemp -d)" + pushd "$TEMP_DIR" >/dev/null + git clone https://github.com/bugsnag/bugsnag-cocoa.git + cd bugsnag-cocoa + git checkout $tag + git submodule update --init --recursive + popd >/dev/null + revendor_from_dir "$TEMP_DIR/bugsnag-cocoa" +} + case $MODE in unset) print_help exit 1 ;; + list-versions) + git ls-remote --tags https://github.com/bugsnag/bugsnag-cocoa.git | \ + grep -v "{}" | awk "{print \$2}" | sed 's/refs\/tags\/v//g' | sed 's/refs\/tags\///g' + exit 0 + ;; version) - revendor_from_clean_repo $GIT_TAG + revendor_from_tag $GIT_TAG ;; sha) - revendor_from_clean_repo $GIT_TAG + revendor_from_sha $GIT_TAG ;; local) revendor_from_dir "$BUGSNAG_COCOA_REPO_DIR" diff --git a/scripts/license_finder.rb b/scripts/license_finder.rb new file mode 100755 index 0000000000..0a2801c40c --- /dev/null +++ b/scripts/license_finder.rb @@ -0,0 +1,20 @@ +# Get each package, including the parent +paths = ['./package.json'] +paths += Dir.glob('packages/*/package.json') + +# Check licenses for all dependencies, based on decisions file. +all_ok = true +paths.each do |path| + dir = path.delete_suffix('/package.json') + cmd = "license_finder --decisions-file=config/decisions.yml --enabled-package-managers=npm --project-path=#{dir}" + puts "Running: #{cmd}" + output = `#{cmd}` + success = $? == 0 + all_ok = false unless success + + puts output + puts "Success: #{success}\n" + puts "--------------\n" +end + +raise 'License check failed' unless all_ok diff --git a/scripts/license_finder.sh b/scripts/license_finder.sh new file mode 100755 index 0000000000..b31cf3c907 --- /dev/null +++ b/scripts/license_finder.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Download decision files +curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/global.yml -o config/decisions.yml +curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/common-js.yml >> config/decisions.yml +curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/bugsnag-js.yml >> config/decisions.yml + +ruby -v + +gem install license_finder +npx lerna bootstrap + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +ruby $SCRIPT_DIR/license_finder.rb