๐ Config
Configuration Fileโ
To configure Sherlo, create a sherlo.config.json
file at the root of your project
{
"token": "PROJECT_TOKEN", // "Qak6POAjBpoNhnS9RKqP_wR4Mt_2lnVLLTDyu0Ha1"
"android": "BUILD_PATH", // "builds/simulator-preview/android.apk"
"ios": "BUILD_PATH", // "builds/simulator-preview/ios.app"
"devices": [
{
"id": "DEVICE_ID", // "iphone.15.pro"
"osVersion": "OS_VERSION", // "17"
"osTheme": "OPTIONAL_OS_THEME", // "light"
"osLocale": "OPTIONAL_OS_LOCALE", // "en_US"
"osFontScale": "OPTIONAL_OS_FONT_SCALE" // "0"
}
]
}
Propertiesโ
CLI Optionsโ
Properties marked with * can be set via CLI options in ๐งช Testing Command:
token
โ--token
android
โ--android
ios
โ--ios
Token*โ
The token
is a unique key that authenticates your project with Sherlo
To get a token, create a new project or reset your current project's token in the Sherlo web application
{
"token": "PROJECT_TOKEN", // "Qak6POAjBpoNhnS9RKqP_wR4Mt_2lnVLLTDyu0Ha1"
// ...
}
Android*โ
The android
property specifies the path to the Android build
{
"android": "BUILD_PATH" // "builds/simulator-preview/android.apk"
// ...
}
.apk
file formatSkip when using ๐งช Expo Cloud Builds testing command
iOS*โ
The ios
property specifies the path to the iOS build
{
"ios": "BUILD_PATH" // "builds/simulator-preview/ios.app"
// ...
}
.app
, or .tar.gz
/ .tar
file format (as produced by EAS Build)Skip when using ๐งช Expo Cloud Builds testing command
Devicesโ
The devices
array specifies the configurations for testing devices
Each device includes:
id
- unique device identifierosVersion
- operating system versionosTheme
(default: "light") - operating system theme ("light" or "dark")osLocale
(default: "en_US") - operating system locale (language_COUNTRY format)osFontScale
(default: "0") - operating system font scale level ("-1", "0", "+1", etc.)
For a list of valid id
and osVersion
values, refer to the ๐ฑ Devices page
List of valid osFontScale
levels
osFontScale
levelsiOS supports levels from "-3"
to "+8"
:
"-3"
: 82%"-2"
: 88%"-1"
: 94%"0"
: 100% (default)"+1"
: 112%"+2"
: 124%"+3"
: 135%"+4"
: 179%"+5"
: 214%"+6"
: 264%"+7"
: 314%"+8"
: 357%
Android supports levels from "-1"
to "+2"
:
"-1"
: 85%"0"
: 100% (default)"+1"
: 115%"+2"
: 130%
{
"devices": [
{
"id": "DEVICE_ID", // "iphone.15.pro"
"osVersion": "OS_VERSION", // "17"
"osTheme": "OPTIONAL_OS_THEME", // "light"
"osLocale": "OPTIONAL_OS_LOCALE", // "en_US"
"osFontScale": "OPTIONAL_OS_FONT_SCALE" // "0"
},
// ...
],
// ...
}