这是多渠道
productFlavors {
xiaomi {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "xiaomi"]
}
qh360 {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "qh360"]
}
baidu {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "baidu"]
}
tencent {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "tencent"]
}
wandoujia {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "wandoujia"]
}
huawei {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "huawei"]
}
lianxiang {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "lianxiang"]
}
meizu {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "meizu"]
}
nubiya {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "nubiya"]
}
oppo {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "oppo"]
}
vivo {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "vivo"]
}
}
这是开启代码混淆,都是放在build.gradle下面的
在这是混淆
/*开启代码混淆*/ //增加构建类型
releaseMinifyEnabled {
//开启dex字节码压缩,舍去未使用的jar和class文件
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}