Skip to content

Commit a1368fa

Browse files
committed
Webview
1 parent cae3abd commit a1368fa

File tree

6 files changed

+52
-31
lines changed

6 files changed

+52
-31
lines changed

samples/react-native/Gemfile.lock

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.0.8.6)
8+
activesupport (6.1.7.10)
99
concurrent-ruby (~> 1.0, >= 1.0.2)
1010
i18n (>= 1.6, < 2)
1111
minitest (>= 5.1)
1212
tzinfo (~> 2.0)
13+
zeitwerk (~> 2.3)
1314
addressable (2.8.7)
1415
public_suffix (>= 2.0.2, < 7.0)
1516
algoliasearch (1.27.5)
@@ -83,13 +84,14 @@ GEM
8384
declarative (0.0.20)
8485
digest-crc (0.6.5)
8586
rake (>= 12.0.0, < 14.0.0)
86-
domain_name (0.6.20240107)
87+
domain_name (0.5.20190701)
88+
unf (>= 0.0.5, < 1.0.0)
8789
dotenv (2.8.1)
8890
emoji_regex (3.2.3)
8991
escape (0.0.4)
9092
ethon (0.16.0)
9193
ffi (>= 1.15.0)
92-
excon (0.112.0)
94+
excon (0.109.0)
9395
faraday (1.10.4)
9496
faraday-em_http (~> 1.0)
9597
faraday-em_synchrony (~> 1.0)
@@ -161,6 +163,8 @@ GEM
161163
xcpretty (~> 0.3.0)
162164
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
163165
ffi (1.17.0)
166+
ffi (1.17.0-arm64-darwin)
167+
ffi (1.17.0-x86_64-darwin)
164168
fourflusher (2.3.1)
165169
fuzzy_match (2.0.4)
166170
gh_inspector (1.1.3)
@@ -180,28 +184,27 @@ GEM
180184
google-apis-core (>= 0.11.0, < 2.a)
181185
google-apis-storage_v1 (0.31.0)
182186
google-apis-core (>= 0.11.0, < 2.a)
183-
google-cloud-core (1.7.1)
184-
google-cloud-env (>= 1.0, < 3.a)
185-
google-cloud-errors (~> 1.0)
187+
google-cloud-core (1.4.1)
188+
google-cloud-env (~> 1.0)
186189
google-cloud-env (1.6.0)
187190
faraday (>= 0.17.3, < 3.0)
188-
google-cloud-errors (1.4.0)
189-
google-cloud-storage (1.47.0)
190-
addressable (~> 2.8)
191+
google-cloud-storage (1.31.1)
192+
addressable (~> 2.5)
191193
digest-crc (~> 0.4)
192194
google-apis-iamcredentials_v1 (~> 0.1)
193-
google-apis-storage_v1 (~> 0.31.0)
194-
google-cloud-core (~> 1.6)
195-
googleauth (>= 0.16.2, < 2.a)
195+
google-apis-storage_v1 (~> 0.1)
196+
google-cloud-core (~> 1.2)
197+
googleauth (~> 0.9)
196198
mini_mime (~> 1.0)
197-
googleauth (1.8.1)
198-
faraday (>= 0.17.3, < 3.a)
199+
googleauth (0.17.1)
200+
faraday (>= 0.17.3, < 2.0)
199201
jwt (>= 1.4, < 3.0)
202+
memoist (~> 0.16)
200203
multi_json (~> 1.11)
201204
os (>= 0.9, < 2.0)
202-
signet (>= 0.16, < 2.a)
205+
signet (~> 0.15)
203206
highline (2.0.3)
204-
http-cookie (1.0.7)
207+
http-cookie (1.0.8)
205208
domain_name (~> 0.5)
206209
httpclient (2.8.3)
207210
i18n (1.14.6)
@@ -211,6 +214,7 @@ GEM
211214
jwt (2.9.3)
212215
base64
213216
logger (1.7.0)
217+
memoist (0.16.2)
214218
mini_magick (4.13.2)
215219
mini_mime (1.1.5)
216220
minitest (5.25.1)
@@ -239,7 +243,7 @@ GEM
239243
ruby2_keywords (0.0.5)
240244
rubyzip (2.3.2)
241245
security (0.1.5)
242-
signet (0.19.0)
246+
signet (0.18.0)
243247
addressable (~> 2.8)
244248
faraday (>= 0.17.5, < 3.a)
245249
jwt (>= 1.5, < 3.0)
@@ -260,6 +264,7 @@ GEM
260264
tzinfo (2.0.6)
261265
concurrent-ruby (~> 1.0)
262266
uber (0.1.0)
267+
unf (0.2.0)
263268
unicode-display_width (2.6.0)
264269
word_wrap (1.0.0)
265270
xcodeproj (1.25.1)
@@ -273,11 +278,13 @@ GEM
273278
rouge (~> 2.0.7)
274279
xcpretty-travis-formatter (1.0.1)
275280
xcpretty (~> 0.2, >= 0.0.7)
281+
zeitwerk (2.6.18)
276282

277283
PLATFORMS
278284
arm64-darwin-22
279285
arm64-darwin-23
280286
arm64-darwin-24
287+
ruby
281288
x86_64-darwin-20
282289

283290
DEPENDENCIES

samples/react-native/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ org.gradle.logging.level=lifecycle
2222
# Android operating system, and which are packaged with your app's APK
2323
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2424
android.useAndroidX=true
25+
android.enableJetifier=true
2526

2627
# Use this property to specify which architecture you want to build.
2728
# You can also override it from the CLI using

samples/react-native/ios/Podfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ target 'sentryreactnativesample' do
2727
pod 'AppTurboModules', :path => "./../tm"
2828
end
2929

30+
target 'sentryreactnativesampleTests' do
31+
inherit! :complete
32+
# Pods for testing
33+
end
34+
3035
post_install do |installer|
3136
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3237
react_native_post_install(

samples/react-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"react-native-safe-area-context": "^5.5.2",
4343
"react-native-screens": "^4.13.1",
4444
"react-native-svg": "^15.12.1",
45+
"react-native-webview": "^13.15.0",
4546
"react-native-worklets": "^0.4.1",
4647
"react-redux": "^9.2.0",
4748
"setimmediate": "^1.0.5"

samples/react-native/src/Screens/WebviewScreen.tsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
import * as React from 'react';
2-
import { StyleSheet, View } from 'react-native';
3-
import { Text } from 'react-native-gesture-handler';
4-
// import { WebView } from 'react-native-webview';
2+
import { StyleSheet } from 'react-native';
3+
import { WebView } from 'react-native-webview';
54

65
const WebviewScreen = () => {
76
return (
8-
// <WebView
9-
// source={{ uri: 'https://sentry.io' }}
10-
// style={styles.webview}
11-
// />
12-
<View style={styles.webview}>
13-
<Text>
14-
WebView is disabled due to incompatibilities with the React Native
15-
version 0.79.2
16-
</Text>
17-
</View>
7+
<WebView
8+
source={{ uri: 'https://sentry.io' }}
9+
style={styles.webview}
10+
/>
1811
);
1912
};
2013

samples/react-native/yarn.lock

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5995,7 +5995,7 @@ __metadata:
59955995
languageName: node
59965996
linkType: hard
59975997

5998-
"invariant@npm:^2.2.4":
5998+
"invariant@npm:2.2.4, invariant@npm:^2.2.4":
59995999
version: 2.2.4
60006000
resolution: "invariant@npm:2.2.4"
60016001
dependencies:
@@ -8658,6 +8658,19 @@ __metadata:
86588658
languageName: node
86598659
linkType: hard
86608660

8661+
"react-native-webview@npm:^13.15.0":
8662+
version: 13.15.0
8663+
resolution: "react-native-webview@npm:13.15.0"
8664+
dependencies:
8665+
escape-string-regexp: ^4.0.0
8666+
invariant: 2.2.4
8667+
peerDependencies:
8668+
react: "*"
8669+
react-native: "*"
8670+
checksum: 1c843206108358faef5cd8e25834de729a90319c3fa3f765923536fdd99b86b07a3e850b89ebe6503725a022dd9dddd5de76ef6e102d290cc5935dcf9c60198d
8671+
languageName: node
8672+
linkType: hard
8673+
86618674
"react-native-worklets@npm:^0.4.1":
86628675
version: 0.4.1
86638676
resolution: "react-native-worklets@npm:0.4.1"
@@ -9189,6 +9202,7 @@ __metadata:
91899202
react-native-safe-area-context: ^5.5.2
91909203
react-native-screens: ^4.13.1
91919204
react-native-svg: ^15.12.1
9205+
react-native-webview: ^13.15.0
91929206
react-native-worklets: ^0.4.1
91939207
react-redux: ^9.2.0
91949208
react-test-renderer: 19.1.0

0 commit comments

Comments
 (0)