|
{
|
|
"name": "example",
|
|
"version": "14.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "react-native start",
|
|
"postinstall": "yarn make-example-runnable",
|
|
"make-example-runnable": "(cd ../../ && npm i react react-native --no-save) && npx tsx ./fix-rn-version.ts",
|
|
"build:ios": "detox build --configuration ios.debug",
|
|
"build:android-debug": "detox build --configuration android.debug",
|
|
"build:android-ci": "detox build --configuration android.ci",
|
|
"test:ios": "detox test --configuration ios.debug",
|
|
"set-time-format": "adb shell settings put system time_12_24",
|
|
"test:android-24h-mode": "yarn set-time-format 24 && detox test --configuration android.debug e2e/tests/24h-mode/*.spec.js",
|
|
"test:android-24h-mode-ci": "yarn set-time-format 24 && detox test --configuration android.ci e2e/tests/24h-mode/*.spec.js --record-logs failing --record-videos failing --take-screenshots failing",
|
|
"test:android-12h-mode": "yarn set-time-format 12 && detox test --configuration android.debug e2e/tests/*.spec.js",
|
|
"test:android-12h-mode-ci": "yarn set-time-format 12 && detox test --configuration android.ci e2e/tests/*.spec.js --record-logs failing --record-videos failing --take-screenshots failing",
|
|
"test:android": "yarn test:android-12h-mode && yarn test:android-24h-mode",
|
|
"test:android-ci": "yarn test:android-12h-mode-ci && yarn test:android-24h-mode-ci"
|
|
},
|
|
"dependencies": {
|
|
"react": "16.8.3",
|
|
"react-native": "0.59.9"
|
|
},
|
|
"devDependencies": {
|
|
"detox": "17.14.9",
|
|
"mocha": "^6.1.3"
|
|
},
|
|
"detox": {
|
|
"test-runner": "mocha",
|
|
"runner-config": "e2e/mocha.opts",
|
|
"configurations": {
|
|
"ios.release": {
|
|
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/example.app",
|
|
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone X"
|
|
},
|
|
"ios.debug": {
|
|
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app",
|
|
"build": "xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone X"
|
|
},
|
|
"android.ci": {
|
|
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -",
|
|
"type": "android.emulator",
|
|
"name": "emu"
|
|
},
|
|
"android.debug": {
|
|
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -",
|
|
"type": "android.emulator",
|
|
"name": "Pixel_2_API_29"
|
|
}
|
|
}
|
|
}
|
|
}
|