This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathproperties.gradle
33 lines (32 loc) · 1.91 KB
/
properties.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 账号配置
// 加载配置文件
final Properties properties = new Properties()
InputStream inputStream = project.rootProject.file('local.properties').newDataInputStream()
properties.load(inputStream)
ext {
// 基本配置信息,签名请替换您自己的签名文件,建议在local.properties里面配置。
account = [
// 密钥配置,默认读取根目录下的debug密钥,如需要发布请修改正式的密钥
storeFile : properties.getProperty("keystore.file", rootDir.path + "/debug.keystore"),
keyPassword : properties.getProperty("keystore.password", "cnblogs"),
storePassword : properties.getProperty("keystore.storePassword", "cnblogs"),
// 友盟
umengAppKey : properties.getProperty("umengAppKey", "替换成你的配置"),
// 腾讯Bugly
buglyAppId : properties.getProperty("buglyAppId", "替换成你的配置"),
// 友盟
leancloudAppId : properties.getProperty("leancloudAppId", "替换成你的配置"),
leancloudAppKey: properties.getProperty("leancloudAppKey", "替换成你的配置"),
// 微信分享
wechatAppId : properties.getProperty("wechatAppId", "替换成你的配置"),
wechatAppSecret: properties.getProperty("wechatAppSecret", "替换成你的配置"),
// 微博分享
weiboAppId : properties.getProperty("weiboAppId", "替换成你的配置"),
weiboAppSecret : properties.getProperty("weiboAppSecret", "替换成你的配置"),
// QQ分享
qqAppId : properties.getProperty("qqAppId", "替换成你的配置"),
qqAppSecret : properties.getProperty("qqAppSecret", "替换成你的配置"),
// SDK补丁包上传地址
uploadUrl : properties.getProperty("uploadUrl", "替换成你的配置")
]
}