Skip to content

Commit 849f4cd

Browse files
authored
Merge pull request #529 from bugsnag/gingerbenw/test-pipeline
Fix CI issues
2 parents 31fd693 + ea90a17 commit 849f4cd

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.buildkite/browser-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ steps:
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}"

test/react-native/features/fixtures/scenario-launcher/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ repositories {
3535
}
3636

3737
dependencies {
38-
api "com.bugsnag:bugsnag-android:6.+"
38+
compileOnly "com.bugsnag:bugsnag-android:6.+"
3939
implementation 'com.facebook.react:react-native'
4040
}

test/react-native/features/fixtures/scenario-launcher/lib/Persistence.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ const PERSISTED_STATE_DIRECTORY = `${Dirs.CacheDir}/bugsnag-performance-react-na
55
const PERSISTED_STATE_PATH = `${PERSISTED_STATE_DIRECTORY}/persisted-state.json`
66
const 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+
818
async 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
}

0 commit comments

Comments
 (0)