Skip to content

Commit

Permalink
chore: Upgrade sentry packages (#2119)
Browse files Browse the repository at this point in the history
* chore: Upgrade sentry packages

* fix yarn.lock

* pod update

* Update Podfile

* fix: getsentry/sentry-react-native#4095

---------

Co-authored-by: iGroza <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
  • Loading branch information
3 people committed Oct 4, 2024
1 parent 755bcea commit 3ecd876
Show file tree
Hide file tree
Showing 8 changed files with 409 additions and 240 deletions.
22 changes: 22 additions & 0 deletions .yarn/patches/@sentry-react-native-npm-5.33.1-7dbdef21fa.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/sentry.gradle b/sentry.gradle
index 99f2bafdfdb17dc65c2cdf19d40b11e4fc3b1158..23c40f19e3f5f57ed2b7bde3e7cd66f124702f33 100644
--- a/sentry.gradle
+++ b/sentry.gradle
@@ -162,7 +162,7 @@ gradle.projectsEvaluated {

def resolvedCliPackage = null
try {
- resolvedCliPackage = new File(["node", "--print", "require.resolve('@sentry/cli/package.json')"].execute(null, rootDir).text.trim()).getParentFile();
+ resolvedCliPackage = new File("$reactRoot/node_modules/@sentry/react-native/package.json").getParentFile();
} catch (Throwable ignored) {}
def cliPackage = resolvedCliPackage != null && resolvedCliPackage.exists() ? resolvedCliPackage.getAbsolutePath() : "$reactRoot/node_modules/@sentry/cli"
def cliExecutable = sentryProps.get("cli.executable", "$cliPackage/bin/sentry-cli")
@@ -290,7 +290,7 @@ gradle.projectsEvaluated {
def resolveSentryReactNativeSDKPath(reactRoot) {
def resolvedSentryPath = null
try {
- resolvedSentryPath = new File(["node", "--print", "require.resolve('@sentry/react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile();
+ resolvedSentryPath = new File("$reactRoot/node_modules/@sentry/react-native/package.json").getParentFile();
} catch (Throwable ignored) {} // if the resolve fails we fallback to the default path
def sentryPackage = resolvedSentryPath != null && resolvedSentryPath.exists() ? resolvedSentryPath.getAbsolutePath() : "$reactRoot/node_modules/@sentry/react-native"
return sentryPackage
9 changes: 8 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ target 'haqq' do
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end

# https://github.com/getsentry/sentry-react-native/issues/4095
target.build_configurations.each do |config|
if target.name == 'Sentry'
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES'
end
end
end
end
end
end
25 changes: 12 additions & 13 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -726,20 +726,21 @@ PODS:
- RNScreens (3.29.0):
- RCT-Folly (= 2021.07.22.00)
- React-Core
- RNSentry (5.7.1):
- RNSentry (5.33.1):
- hermes-engine
- RCT-Folly (= 2021.07.22.00)
- React-Core
- Sentry/HybridSDK (= 8.8.0)
- React-hermes
- Sentry/HybridSDK (= 8.36.0)
- RNSVG (13.10.0):
- React-Core
- SDWebImage (5.19.6):
- SDWebImage/Core (= 5.19.6)
- SDWebImage/Core (5.19.6)
- SDWebImage (5.19.7):
- SDWebImage/Core (= 5.19.7)
- SDWebImage/Core (5.19.7)
- secp256k1Swift (0.7.4):
- secp256k1Wrapper (~> 0.0.5)
- secp256k1Wrapper (0.0.5)
- Sentry/HybridSDK (8.8.0):
- SentryPrivate (= 8.8.0)
- SentryPrivate (8.8.0)
- Sentry/HybridSDK (8.36.0)
- SocketRocket (0.6.1)
- ToastViewSwift (2.1.2)
- TouchID (4.4.1):
Expand Down Expand Up @@ -883,7 +884,6 @@ SPEC REPOS:
- secp256k1Swift
- secp256k1Wrapper
- Sentry
- SentryPrivate
- SocketRocket
- ToastViewSwift

Expand Down Expand Up @@ -1194,13 +1194,12 @@ SPEC CHECKSUMS:
RNPermissions: 81b4a5e0f9fdb3b145e9622c199df8f629c51f51
RNReanimated: 43675f1f0e704abe8ebf953fd79b00e66302cda2
RNScreens: 3c5b9f4a9dcde752466854b6109b79c0e205dad3
RNSentry: 4e4fc87b53002c015f644cb7207d4b598bc3703f
RNSentry: 0744d3c79504bc4778190d047d1b60daf4a378cd
RNSVG: 80584470ff1ffc7994923ea135a3e5ad825546b9
SDWebImage: a79252b60f4678812d94316c91da69ec83089c9f
SDWebImage: 8a6b7b160b4d710e2a22b6900e25301075c34cb3
secp256k1Swift: ea49d2b06724444a03cf7938a2d3fc7acc4c0f08
secp256k1Wrapper: 0378417cd06d51187bbc9e178ec318e7902e2120
Sentry: 927dfb29d18a14d924229a59cc2ad149f43349f2
SentryPrivate: 4350d865f898224ab9fa02b37d6ee7fbb623f47e
Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
ToastViewSwift: 62e4c54cd482dd1106c2b2224103a8b171763cf3
TouchID: ba4c656d849cceabc2e4eef722dea5e55959ecf4
Expand Down
138 changes: 69 additions & 69 deletions ios/haqq.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@react-navigation/native": "6.1.7",
"@react-navigation/native-stack": "6.9.13",
"@react-navigation/stack": "6.3.17",
"@sentry/react-native": "5.7.1",
"@sentry/react-native": "5.33.1",
"@tradle/react-native-http": "2.0.1",
"@walletconnect/core": "2.11.2",
"@walletconnect/react-native-compat": "2.11.2",
Expand Down Expand Up @@ -176,7 +176,7 @@
"@babel/runtime": "7.23.4",
"@react-native-community/eslint-config": "3.2.0",
"@react-native/metro-config": "0.72.11",
"@sentry/cli": "2.20.5",
"@sentry/cli": "2.36.6",
"@tsconfig/react-native": "3.0.2",
"@types/bn.js": "5.1.1",
"@types/create-hash": "1.2.2",
Expand Down Expand Up @@ -242,5 +242,8 @@
"stream": "stream-browserify",
"vm": "vm-browserify"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"resolutions": {
"@sentry/[email protected]": "patch:@sentry/react-native@npm%3A5.33.1#./.yarn/patches/@sentry-react-native-npm-5.33.1-7dbdef21fa.patch"
}
}
22 changes: 0 additions & 22 deletions patches/@sentry+react-native+5.7.1.patch

This file was deleted.

Loading

0 comments on commit 3ecd876

Please sign in to comment.