File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
test/react-native/features/fixtures/scenario-launcher Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 6666 browser : [chrome, firefox]
6767 version : [latest]
6868 adjustments :
69- - with : { browser: safari, version: 16 }
69+ - with : { browser: safari, version: 18 }
7070
7171 # BrowserStack
7272 - label : " :browserstack: :{{ matrix.browser }}: {{ matrix.version }} Browser tests${EXTRA_STEP_LABEL}"
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ repositories {
3535}
3636
3737dependencies {
38- api " com.bugsnag:bugsnag-android:6.+"
38+ compileOnly " com.bugsnag:bugsnag-android:6.+"
3939 implementation ' com.facebook.react:react-native'
4040}
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ const PERSISTED_STATE_DIRECTORY = `${Dirs.CacheDir}/bugsnag-performance-react-na
55const PERSISTED_STATE_PATH = `${ PERSISTED_STATE_DIRECTORY } /persisted-state.json`
66const RETRY_QUEUE_DIRECTORY = `${ PERSISTED_STATE_DIRECTORY } /retry-queue`
77
8+ function getNativeDeviceIdFilePath ( ) {
9+ const nativeDeviceIdFilePath = Platform . select ( {
10+ ios : undefined ,
11+ android : `${ Dirs . DocumentDir } /device-id` ,
12+ default : undefined
13+ } )
14+
15+ return nativeDeviceIdFilePath
16+ }
17+
818async function writePersistedStateFile ( contents ) {
919 if ( ! await FileSystem . exists ( PERSISTED_STATE_DIRECTORY ) ) {
1020 console . error ( `[BugsnagPerformance] creating persisted state directory: ${ PERSISTED_STATE_DIRECTORY } ` )
@@ -43,4 +53,9 @@ export async function clearPersistedState() {
4353 await FileSystem . unlink ( `${ RETRY_QUEUE_DIRECTORY } /${ file } ` )
4454 }
4555 }
56+ const nativeDeviceIdFilePath = getNativeDeviceIdFilePath ( )
57+ if ( await FileSystem . exists ( nativeDeviceIdFilePath ) ) {
58+ console . error ( `[BugsnagPerformance] Clearing persisted data at path: ${ nativeDeviceIdFilePath } ` )
59+ await FileSystem . unlink ( nativeDeviceIdFilePath )
60+ }
4661}
You can’t perform that action at this time.
0 commit comments