forked from androiddevnotesforks/Imomoe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[document]添加about_secret.gradle.md文档;更新部分依赖版本
- Loading branch information
SkyD666
committed
Oct 20, 2021
1 parent
18ce8f1
commit 8b1a7b8
Showing
4 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 关于secret.gradle文件 | ||
|
||
- #### 为什么没有上传此文件到Github? | ||
|
||
此文件包括了一些敏感信息,例如安装包签名密码、各种密钥等,因此没有上传到Github上。 | ||
|
||
- #### 编译时提示缺少此文件怎么办? | ||
|
||
你可以尝试将用到此文件内容的代码全部注释。 | ||
|
||
- #### 此文件的内容结构是怎样的? | ||
|
||
```groovy | ||
def secret = [:] | ||
// ===== in Code ===== | ||
def buildConfigField = [:] | ||
buildConfigField.UMENG_MESSAGE_SECRET = "..." | ||
secret.buildConfigField = buildConfigField | ||
def shieldTextList = [:] | ||
shieldTextList.SHIELD_TEXT = '{..., ..., ...}' | ||
secret.shieldTextList = shieldTextList | ||
// ===== in Code end ===== | ||
// ===== sign key ===== | ||
def sign = [:] | ||
sign.RELEASE_KEY_ALIAS = "..." | ||
sign.RELEASE_KEY_PASSWORD = "..." | ||
sign.RELEASE_STORE_PASSWORD = "..." | ||
secret.sign = sign | ||
// ===== sign key end ===== | ||
// ===== in Manifest ===== | ||
def manifestPlaceholders = [:] | ||
manifestPlaceholders.UMENG_APPKEY_VALUE = "..." | ||
secret.manifestPlaceholders = manifestPlaceholders | ||
// ===== in Manifest end ===== | ||
ext.secret = secret | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters