* enulator test * enulator fix * fix adb name * fix path for detox * fix bundeling * fix api * fix path * fix path * path * path * path * path * fix: start Metro before emulator-runner to avoid pipe block * add bare-minimum e2e workflow using release build (no Metro) * fix: use debug instrumentation APK against release app build * fix: add Detox androidTest dep and testInstrumentationRunner, use debug build * fix: add version to detox androidTestImplementation * fix: add Detox local Maven repo to allprojects * fix: remove androidTestImplementation detox, not needed with auto-linking * fix: add androidx.test:runner to provide AndroidJUnitRunner in test APK * fix: add proper Detox test class and dependency with exclusiveContent * fix: correct Detox maven coordinate to com.wix:detox * fix: override Detox minSdk 24 requirement for androidTest * remove viewer.e2e.ts, requires launch args bridge not yet wired up * cleanup: remove E2E from build-android workflow, revert release detox config * update github action * enable ABI splits for smaller per-arch release APKs * fix: move abiCodes into closure scope * fix: only split release builds, keep universal debug APK for E2E
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
/** @type {Detox.DetoxConfig} */
|
|
module.exports = {
|
|
testRunner: {
|
|
args: {
|
|
$0: 'jest',
|
|
config: 'e2e/jest.config.js',
|
|
},
|
|
jest: {
|
|
setupTimeout: 120000,
|
|
},
|
|
},
|
|
apps: {
|
|
'android.debug': {
|
|
type: 'android.apk',
|
|
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
|
|
testBinaryPath:
|
|
'android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk',
|
|
build:
|
|
'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug --no-daemon',
|
|
reversePorts: [8081],
|
|
},
|
|
'android.release': {
|
|
type: 'android.apk',
|
|
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
|
|
build:
|
|
'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release --no-daemon',
|
|
},
|
|
},
|
|
devices: {
|
|
emulator: {
|
|
type: 'android.emulator',
|
|
// avdName is set by reactivecircus/android-emulator-runner in CI.
|
|
// For local runs, create an AVD named below or override via DETOX_AVD_NAME.
|
|
device: {avdName: process.env.DETOX_AVD_NAME ?? 'Pixel_6_API_34'},
|
|
},
|
|
},
|
|
configurations: {
|
|
'android.emu.debug': {
|
|
device: 'emulator',
|
|
app: 'android.debug',
|
|
},
|
|
'android.emu.release': {
|
|
device: 'emulator',
|
|
app: 'android.release',
|
|
},
|
|
},
|
|
};
|