version:
fix: update:更新到酷比打包
This commit is contained in:
165
app/build.gradle
165
app/build.gradle
@@ -59,7 +59,7 @@ android {
|
|||||||
//多版本
|
//多版本
|
||||||
productFlavors {
|
productFlavors {
|
||||||
//新平台正式
|
//新平台正式
|
||||||
newly {
|
cube {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 20
|
versionCode 20
|
||||||
versionName "2.9"
|
versionName "2.9"
|
||||||
@@ -81,26 +81,6 @@ android {
|
|||||||
buildConfigField "String", "WebsocketURL", '"wss://led.aoleyun.cn:2018"'
|
buildConfigField "String", "WebsocketURL", '"wss://led.aoleyun.cn:2018"'
|
||||||
}
|
}
|
||||||
|
|
||||||
MTKnewly {
|
|
||||||
flavorDimensions "default"
|
|
||||||
versionCode 8
|
|
||||||
versionName "1.7"
|
|
||||||
/*********************************极光推送************************************/
|
|
||||||
manifestPlaceholders = [
|
|
||||||
XG_ACCESS_ID : "1500026372",
|
|
||||||
XG_ACCESS_KEY: "AR7A1L5M0LPH",
|
|
||||||
// JPUSH_PKGNAME: "com.aoleyun.sn",
|
|
||||||
// JPUSH_APPKEY : "79c64ef41b8728ad6aa29af1", //JPush上注册的包名对应的appkey.
|
|
||||||
// JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
|
||||||
// channel_value: "newly",
|
|
||||||
]
|
|
||||||
/*********************************极光推送end************************************/
|
|
||||||
buildConfigField "String", "ROOT_URL", '"https://led.aoleyun.cn/api/"'
|
|
||||||
buildConfigField "String", "SCREEN_BASE_URL", '"https://led.aoleyun.cn:2018/"'
|
|
||||||
buildConfigField "String", "SCREEN_URL", '"https://led.aoleyun.cn:2018/wm/is_online"'
|
|
||||||
buildConfigField "String", "WebsocketURL", '"wss://led.aoleyun.cn:2018"'
|
|
||||||
}
|
|
||||||
|
|
||||||
//新平台测试
|
//新平台测试
|
||||||
beta {
|
beta {
|
||||||
versionNameSuffix "-beta"
|
versionNameSuffix "-beta"
|
||||||
@@ -133,7 +113,7 @@ android {
|
|||||||
|
|
||||||
//签名
|
//签名
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
zhanRui {
|
alldocube {
|
||||||
storeFile file("keystore/zhanxun.keystore")
|
storeFile file("keystore/zhanxun.keystore")
|
||||||
storePassword "123456"
|
storePassword "123456"
|
||||||
keyAlias "zhanxun"
|
keyAlias "zhanxun"
|
||||||
@@ -142,7 +122,7 @@ android {
|
|||||||
v2SigningEnabled true
|
v2SigningEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
zhanRuiUserdebug {
|
alldocubeDebug {
|
||||||
storeFile file("keystore/zhanxunUserdebug.keystore")
|
storeFile file("keystore/zhanxunUserdebug.keystore")
|
||||||
storePassword "123456"
|
storePassword "123456"
|
||||||
keyAlias "zhanxunUserdebug"
|
keyAlias "zhanxunUserdebug"
|
||||||
@@ -150,102 +130,42 @@ android {
|
|||||||
v1SigningEnabled true
|
v1SigningEnabled true
|
||||||
v2SigningEnabled true
|
v2SigningEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
debug {
|
|
||||||
storeFile file("keystore/xueshibaoos.jks")
|
|
||||||
storePassword "123456"
|
|
||||||
keyAlias "xueshibaoos"
|
|
||||||
keyPassword "123456"
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}
|
|
||||||
|
|
||||||
release {
|
|
||||||
storeFile file("keystore/xueshibaoos.jks")
|
|
||||||
storePassword "123456"
|
|
||||||
keyAlias "xueshibaoos"
|
|
||||||
keyPassword "123456"
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable release builds for now
|
// Disable release builds for now
|
||||||
android.variantFilter { variant ->
|
// android.variantFilter { variant ->
|
||||||
if (variant.buildType.name.endsWith('zhanRuiRelease')) {
|
// if (variant.buildType.name.endsWith('zhanRuiRelease')) {
|
||||||
variant.setIgnore(variant.getFlavors().get(0).name.equals('official') || variant.getFlavors().get(0).name.equals('zhongyou'))
|
// variant.setIgnore(variant.getFlavors().get(0).name.equals('official') || variant.getFlavors().get(0).name.equals('zhongyou'))
|
||||||
}
|
// }
|
||||||
if (variant.buildType.name.endsWith('zhanRuiDebug')) {
|
// if (variant.buildType.name.endsWith('zhanRuiDebug')) {
|
||||||
variant.setIgnore(variant.getFlavors().get(0).name.equals('official') || variant.getFlavors().get(0).name.equals('zhongyou'))
|
// variant.setIgnore(variant.getFlavors().get(0).name.equals('official') || variant.getFlavors().get(0).name.equals('zhongyou'))
|
||||||
}
|
// }
|
||||||
if (name.contains("MTKnewly")) {
|
// if (name.contains("MTKnewly")) {
|
||||||
variant.setIgnore(variant.buildType.name.endsWith("zhanRuiRelease") || variant.buildType.name.endsWith("zhanRuiDebug") || variant.buildType.name.endsWith("zhanRuiUserdebug")
|
// variant.setIgnore(variant.buildType.name.endsWith("zhanRuiRelease") || variant.buildType.name.endsWith("zhanRuiDebug") || variant.buildType.name.endsWith("zhanRuiUserdebug")
|
||||||
|| variant.buildType.name.endsWith("zhanRuiUserdebugReleas"))
|
// || variant.buildType.name.endsWith("zhanRuiUserdebugReleas"))
|
||||||
}
|
// }
|
||||||
if (name.endsWith("newlyDebug") || name.endsWith("newlyRelease")) {
|
// if (name.endsWith("newlyDebug") || name.endsWith("newlyRelease")) {
|
||||||
variant.setIgnore(!name.contains("MTK"))
|
// variant.setIgnore(!name.contains("MTK"))
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
// // Icon recents is Go only
|
//// // Icon recents is Go only
|
||||||
// if (name.contains("WithQuickstepIconRecents") && !name.contains("l3go")) {
|
//// if (name.contains("WithQuickstepIconRecents") && !name.contains("l3go")) {
|
||||||
// variant.setIgnore(true)
|
//// variant.setIgnore(true)
|
||||||
|
//// }
|
||||||
// }
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
zhanRuiRelease.initWith(release)
|
|
||||||
zhanRuiRelease {
|
|
||||||
manifestPlaceholders = [
|
|
||||||
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
|
||||||
]
|
|
||||||
buildConfigField "String", "platform", '"ZhanRui"'
|
|
||||||
signingConfig signingConfigs.zhanRui
|
|
||||||
}
|
|
||||||
|
|
||||||
zhanRuiDebug.initWith(debug)
|
|
||||||
zhanRuiDebug {
|
|
||||||
manifestPlaceholders = [
|
|
||||||
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
|
||||||
]
|
|
||||||
versionNameSuffix "-debug"
|
|
||||||
buildConfigField "String", "platform", '"ZhanRui"'
|
|
||||||
debuggable true
|
|
||||||
signingConfig signingConfigs.zhanRui
|
|
||||||
}
|
|
||||||
|
|
||||||
//userdebug rom使用这个版本
|
|
||||||
zhanRuiUserdebug.initWith(zhanRuiDebug)
|
|
||||||
zhanRuiUserdebug {
|
|
||||||
manifestPlaceholders = [
|
|
||||||
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
|
||||||
]
|
|
||||||
versionNameSuffix "-debug"
|
|
||||||
buildConfigField "String", "platform", '"ZhanRui"'
|
|
||||||
debuggable true
|
|
||||||
signingConfig signingConfigs.zhanRuiUserdebug
|
|
||||||
}
|
|
||||||
|
|
||||||
zhanRuiUserdebugReleas.initWith(release)
|
|
||||||
zhanRuiUserdebugReleas {
|
|
||||||
manifestPlaceholders = [
|
|
||||||
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
|
||||||
]
|
|
||||||
buildConfigField "String", "platform", '"ZhanRui"'
|
|
||||||
debuggable true
|
|
||||||
signingConfig signingConfigs.zhanRuiUserdebug
|
|
||||||
}
|
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
buildConfigField "String", "platform", '"MTK"'
|
buildConfigField "String", "platform", '"ZhanRui"'
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
AMAP_KEY: "1af68e0a7edcaac82678b1cbb7643408"
|
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
||||||
]
|
]
|
||||||
|
debuggable true
|
||||||
versionNameSuffix "-debug"
|
versionNameSuffix "-debug"
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
//Zipalign优化
|
//Zipalign优化
|
||||||
zipAlignEnabled true
|
zipAlignEnabled true
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
def outputFile = output.outputFile
|
def outputFile = output.outputFile
|
||||||
@@ -255,12 +175,13 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
signingConfig signingConfigs.alldocube
|
||||||
}
|
}
|
||||||
|
|
||||||
release {
|
release {
|
||||||
buildConfigField "String", "platform", '"MTK"'
|
buildConfigField "String", "platform", '"ZhanRui"'
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
AMAP_KEY: "1af68e0a7edcaac82678b1cbb7643408"
|
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
||||||
]
|
]
|
||||||
//混淆
|
//混淆
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
@@ -268,18 +189,37 @@ android {
|
|||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
//Zipalign优化
|
//Zipalign优化
|
||||||
zipAlignEnabled true
|
zipAlignEnabled true
|
||||||
//签名
|
|
||||||
signingConfig signingConfigs.release
|
|
||||||
//将release版本的包名重命名,加上版本及日期
|
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
def outputFile = ""
|
def outputFile = output.outputFile
|
||||||
if (outputFile != null) {
|
if (outputFile != null) {
|
||||||
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${productFlavors[0].name}-${buildType.name}.apk"
|
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
|
||||||
output.outputFileName = fileName
|
output.outputFileName = fileName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
signingConfig signingConfigs.alldocube
|
||||||
|
}
|
||||||
|
|
||||||
|
//userdebug rom使用这个版本
|
||||||
|
alldocubeDebug.initWith(debug)
|
||||||
|
alldocubeDebug {
|
||||||
|
buildConfigField "String", "platform", '"ZhanRui"'
|
||||||
|
manifestPlaceholders = [
|
||||||
|
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
||||||
|
]
|
||||||
|
debuggable true
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
signingConfig signingConfigs.alldocubeDebug
|
||||||
|
}
|
||||||
|
|
||||||
|
alldocubeDebugReleas.initWith(release)
|
||||||
|
alldocubeDebugReleas {
|
||||||
|
buildConfigField "String", "platform", '"ZhanRui"'
|
||||||
|
manifestPlaceholders = [
|
||||||
|
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
|
||||||
|
]
|
||||||
|
signingConfig signingConfigs.alldocubeDebug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,7 +272,6 @@ dependencies {
|
|||||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.1'
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.1'
|
||||||
// debugImplementation because LeakCanary should only run in debug builds.
|
// debugImplementation because LeakCanary should only run in debug builds.
|
||||||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
|
||||||
zhanRuiDebugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
|
|
||||||
|
|
||||||
//fastjson
|
//fastjson
|
||||||
implementation 'com.alibaba:fastjson:1.2.79'
|
implementation 'com.alibaba:fastjson:1.2.79'
|
||||||
|
|||||||
Binary file not shown.
@@ -443,14 +443,14 @@ public class GuardService extends Service {
|
|||||||
Log.e("setDefaultUSBStatus", "setting_usb---------" + setting_usb);
|
Log.e("setDefaultUSBStatus", "setting_usb---------" + setting_usb);
|
||||||
String usbStatus = "";
|
String usbStatus = "";
|
||||||
if (TextUtils.isEmpty(setting_usb)) {
|
if (TextUtils.isEmpty(setting_usb)) {
|
||||||
usbStatus = "qch_action_usb_usb_charge";
|
usbStatus = "aole_action_usb_usb_charge";
|
||||||
} else {
|
} else {
|
||||||
switch (setting_usb) {
|
switch (setting_usb) {
|
||||||
case "usb_charge":
|
case "usb_charge":
|
||||||
usbStatus = "qch_action_usb_usb_charge";
|
usbStatus = "aole_action_usb_usb_charge";
|
||||||
break;
|
break;
|
||||||
case "usb_mtp":
|
case "usb_mtp":
|
||||||
usbStatus = "qch_action_usb_usb_mtp";
|
usbStatus = "aole_action_usb_usb_mtp";
|
||||||
break;
|
break;
|
||||||
case "usb_midi":
|
case "usb_midi":
|
||||||
usbStatus = "qch_action_usb_usb_midi";
|
usbStatus = "qch_action_usb_usb_midi";
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ public class SysSettingUtils {
|
|||||||
try {
|
try {
|
||||||
boolean qch_usb_choose = Settings.System.putString(context.getContentResolver(), "qch_usb_choose", "usb_charge");
|
boolean qch_usb_choose = Settings.System.putString(context.getContentResolver(), "qch_usb_choose", "usb_charge");
|
||||||
Log.e(TAG, "qch_usb_choose:" + qch_usb_choose);
|
Log.e(TAG, "qch_usb_choose:" + qch_usb_choose);
|
||||||
String usbStatus = "qch_action_usb_usb_charge";
|
String usbStatus = "aole_action_usb_usb_charge";
|
||||||
Intent usbIntent = new Intent(usbStatus).setPackage("com.android.settings");
|
Intent usbIntent = new Intent(usbStatus).setPackage("com.android.settings");
|
||||||
context.sendBroadcast(usbIntent);
|
context.sendBroadcast(usbIntent);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -196,10 +196,10 @@ public class SysSettingUtils {
|
|||||||
String usbStatus = "";
|
String usbStatus = "";
|
||||||
switch (setting_usb) {
|
switch (setting_usb) {
|
||||||
case "usb_charge":
|
case "usb_charge":
|
||||||
usbStatus = "qch_action_usb_usb_charge";
|
usbStatus = "aole_action_usb_usb_charge";
|
||||||
break;
|
break;
|
||||||
case "usb_mtp":
|
case "usb_mtp":
|
||||||
usbStatus = "qch_action_usb_usb_mtp";
|
usbStatus = "aole_action_usb_usb_mtp";
|
||||||
break;
|
break;
|
||||||
case "usb_midi":
|
case "usb_midi":
|
||||||
usbStatus = "qch_action_usb_usb_midi";
|
usbStatus = "qch_action_usb_usb_midi";
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
include ':app'
|
include ':app'
|
||||||
rootProject.name='奥乐云我的设备'
|
rootProject.name='酷比我的设备'
|
||||||
|
|||||||
Reference in New Issue
Block a user