小编nib*_*ori的帖子

如何使用Google Services Gradle Plugin在Circle CI上测试Android应用程序

我正在使用Google Services Gradle Plugin开发Android应用程序(Firebase需要它),插件需要google-services.json.

我认为json文件不应该受git的控制,因为它有一些应该被隐藏的值(例如api_key),但是Circle CI需要一个.

如果google-services.json可以查找环境变量,则问题可以解决.(值隐藏在git存储库中,而Circle CI可以从环境变量中获取值).
但是,我找不到google-services.json查找环境变量的机制.

我有三个问题.

1)应该从VCS中忽略google-services.json吗?
2)Google Services Gradle Plugin是否具有从google-services.json查找环境变量的机制?
3)是否有其他方式从Circle CI引用google-services.json?

git android circleci

7
推荐指数
1
解决办法
603
查看次数

标签 统计

android ×1

circleci ×1

git ×1