-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy path.detoxrc.js
45 lines (45 loc) · 1.46 KB
/
.detoxrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
apps: {
'xaman.ios': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/Xaman.app',
build: 'xcodebuild -workspace ios/Xaman.xcworkspace -scheme Xaman -configuration Release -sdk iphonesimulator -derivedDataPath ios/build',
},
'xaman.android': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-x86_64-release.apk',
build: 'cd android && ./gradlew app:assembleRelease app:assembleAndroidTest -DtestBuildType=release && cd ..',
},
},
devices: {
'ios.simulator': {
type: 'ios.simulator',
headless: process.env.CI ? true : undefined,
device: { type: 'iPhone 15 Pro' },
},
'android.emulator': {
type: 'android.apk',
device: { avdName: 'Nexus_5X_API_28' },
},
'android.attached': {
type: 'android.attached',
device: {
adbName: '.*',
},
},
},
configurations: {
'ios.simulator+xaman.ios': {
device: 'ios.simulator',
app: 'xaman.ios',
},
'android.emulator+xaman.android': {
device: 'android.emulator',
app: 'xaman.android',
},
'android.attached+xaman.android': {
device: 'android.attached',
app: 'xaman.android',
},
},
};