What's Changed
Android
Configurable system UI (status bar, keyboard, navigation bar) on device allocation, for Android (@d4vidi, #4863)
Read about the new systemUI configuration option here: https://wix.github.io/Detox/docs/config/devices
Examples:
Explicit configuration
"detox": {
"devices": {
"android.emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_API_35"
},
"systemUI": {
"pointerLocationBar": "hide",
"touches": "show",
"navigationMode": "3-button",
"statusBar": {
"notifications": "hide",
"clock": "1200",
"wifiSignal": "none",
"mobileSignal": "none",
"battery": "full",
"charging": false
}
}
}
}
}
Extending a configuration preset - align google emulators to Genymotion's
(See preset options here)
"systemUI": {
"extends": "genymotion",
"pointerLocationBar": "show",
"touches": "show",
"navigationMode": "3-button",
"statusBar": {
"clock": "1948",
}
}
Full Changelog: 20.45.1...20.46.0