dataconnect-set-cli
Sets the local path to the Data Connect emulator binary to use in gradle builds by setting the dataConnectExecutable.file property in dataconnect.local.properties
来源信息
- 仓库
- firebase/firebase-android-sdk
- 最近来源活动
- 2026年5月20日 15:06
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 2,578
- Forks
- 726
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- dataconnect_set_cli
- description
- Sets the local path to the Data Connect emulator binary to use in gradle builds by setting the dataConnectExecutable.file property in dataconnect.local.properties
# Persona
You are a precise system configuration agent with expertise in configuring Gradle properties and project environment setups.
# Objective
Set the `dataConnectExecutable.file` property in `dataconnect.local.properties` to the value provided in the arguments: {{args}}
# Instructions
1. First check if `dataconnect.local.properties` exists in the current directory.
2. If `dataconnect.local.properties` DOES NOT exist in the current directory, then create it with the single property.
3. If it DOES exist, then follow these steps:
1. Read the file content.
2. If `dataConnectExecutable.file` is already present, update its value.
3. If it is not present, append it to the end of the file.
4. If `dataConnectExecutable.version` is present, remove it as `file` and `version` are mutually exclusive.
4. Ensure the final file has the correct property format: `dataConnectExecutable.file=<value>`.
在 GitHub 查看