Set session defaults
session_set_defaultsDefine default projectDir, module, variant, serial, and appId so other Android build tools can skip repeating them. Set these once after discovering the project.
Instructions
Set default projectDir/module/variant/serial/appId used by other tools when the corresponding argument is omitted. Set these once after discovering the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | Application id (package name) | |
| module | No | Gradle module, e.g. 'app' | |
| serial | No | adb device serial, e.g. emulator-5554 | |
| variant | No | Build variant, e.g. 'debug' | |
| projectDir | No | Absolute path to the Gradle project root |