mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 19:05:13 +08:00
feat: project init
This commit is contained in:
111
Example/testHotUpdate/detox.config.js
Normal file
111
Example/testHotUpdate/detox.config.js
Normal file
@@ -0,0 +1,111 @@
|
||||
/** @type {Detox.DetoxConfig} */
|
||||
module.exports = {
|
||||
logger: {
|
||||
level: process.env.CI ? 'debug' : undefined,
|
||||
},
|
||||
testRunner: {
|
||||
args: {
|
||||
config: 'e2e/jest.config.js',
|
||||
maxWorkers: process.env.CI ? 2 : undefined,
|
||||
_: ['e2e'],
|
||||
},
|
||||
},
|
||||
artifacts: {
|
||||
plugins: {
|
||||
log: process.env.CI ? 'failing' : undefined,
|
||||
screenshot: process.env.CI ? 'failing' : undefined,
|
||||
},
|
||||
},
|
||||
apps: {
|
||||
'ios.release': {
|
||||
type: 'ios.app',
|
||||
binaryPath:
|
||||
'ios/build/Build/Products/Release-iphonesimulator/testHotUpdate.app',
|
||||
build:
|
||||
'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet',
|
||||
},
|
||||
'ios.debug': {
|
||||
type: 'ios.app',
|
||||
binaryPath:
|
||||
'ios/build/Build/Products/Debug-iphonesimulator/testHotUpdate.app',
|
||||
build:
|
||||
'xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
|
||||
start: 'scripts/start-rn.sh ios',
|
||||
},
|
||||
'android.debug': {
|
||||
type: 'android.apk',
|
||||
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
|
||||
build:
|
||||
'cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -',
|
||||
start: 'scripts/start-rn.sh android',
|
||||
},
|
||||
'android.release': {
|
||||
type: 'android.apk',
|
||||
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
|
||||
build:
|
||||
'cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -',
|
||||
},
|
||||
},
|
||||
devices: {
|
||||
simulator: {
|
||||
type: 'ios.simulator',
|
||||
headless: Boolean(process.env.CI),
|
||||
device: {
|
||||
type: 'iPhone 14',
|
||||
},
|
||||
},
|
||||
emulator: {
|
||||
type: 'android.emulator',
|
||||
headless: Boolean(process.env.CI),
|
||||
gpuMode: process.env.CI ? 'off' : undefined,
|
||||
device: {
|
||||
avdName: 'Pixel_3a_API_33_arm64-v8a',
|
||||
},
|
||||
utilBinaryPaths: ['./cache/test-butler-app.apk'],
|
||||
},
|
||||
'genymotion.emulator.uuid': {
|
||||
type: 'android.genycloud',
|
||||
device: {
|
||||
recipeUUID: 'a50a71d6-da90-4c67-bdfa-5b602b0bbd15',
|
||||
},
|
||||
utilBinaryPaths: ['./cache/test-butler-app.apk'],
|
||||
},
|
||||
'genymotion.emulator.name': {
|
||||
type: 'android.genycloud',
|
||||
device: {
|
||||
recipeName: 'Pixel_3a_API_33_arm64-v8a',
|
||||
},
|
||||
utilBinaryPaths: ['./cache/test-butler-app.apk'],
|
||||
},
|
||||
},
|
||||
configurations: {
|
||||
'ios.sim.release': {
|
||||
device: 'simulator',
|
||||
app: 'ios.release',
|
||||
},
|
||||
'ios.sim.debug': {
|
||||
device: 'simulator',
|
||||
app: 'ios.debug',
|
||||
},
|
||||
'ios.manual': {
|
||||
type: 'ios.manual',
|
||||
behavior: {
|
||||
launchApp: 'manual',
|
||||
},
|
||||
artifacts: false,
|
||||
session: {
|
||||
autoStart: true,
|
||||
server: 'ws://localhost:8099',
|
||||
sessionId: 'com.wix.demo.react.native',
|
||||
},
|
||||
},
|
||||
'android.emu.debug': {
|
||||
device: 'emulator',
|
||||
app: 'android.debug',
|
||||
},
|
||||
'android.emu.release': {
|
||||
device: 'emulator',
|
||||
app: 'android.release',
|
||||
},
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user