version:2.9

fix:
update:增加台电MTK Android12签名
This commit is contained in:
2023-03-29 10:58:59 +08:00
parent cd71ed6619
commit 9ff5e23cb6
5 changed files with 55 additions and 39 deletions

View File

@@ -16,8 +16,8 @@ android {
applicationId "com.uiuios.aios" applicationId "com.uiuios.aios"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 29 targetSdkVersion 29
versionCode 18 versionCode 20
versionName "2.7" versionName "2.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -74,19 +74,28 @@ android {
v1SigningEnabled true v1SigningEnabled true
v2SigningEnabled true v2SigningEnabled true
} }
MTK8183 {
storeFile file("keystore/TeclastMTK12.jks")
storePassword "123456"
keyAlias "teclastmtk12"
keyPassword "123456"
v1SigningEnabled true
v2SigningEnabled true
}
} }
buildTypes { buildTypes {
MTKAndroid12Release.initWith(release) MTK8183Debug.initWith(debug)
MTKAndroid12Release { MTK8183Debug {
signingConfig signingConfigs.mtk12
}
MTKAndroid12Debug.initWith(debug)
MTKAndroid12Debug {
versionNameSuffix "-debug" versionNameSuffix "-debug"
debuggable true debuggable true
signingConfig signingConfigs.mtk12 signingConfig signingConfigs.MTK8183
}
MTK8183Release.initWith(release)
MTK8183Release {
signingConfig signingConfigs.MTK8183
} }
zhanRuiRelease.initWith(release) zhanRuiRelease.initWith(release)

Binary file not shown.

View File

@@ -103,13 +103,6 @@ public class BaseApplication extends Application {
public void onSuccess(String response) { public void onSuccess(String response) {
Log.e("AliyunPush", "init cloudchannel success"); Log.e("AliyunPush", "init cloudchannel success");
Log.e("AliyunPush", "init cloudchannel success " + pushService.getDeviceId()); Log.e("AliyunPush", "init cloudchannel success " + pushService.getDeviceId());
}
@Override
public void onFailed(String errorCode, String errorMessage) {
Log.e("AliyunPush", "init cloudchannel failed -- errorcode:" + errorCode + " -- errorMessage:" + errorMessage);
}
});
String sn = Utils.getSerial(); String sn = Utils.getSerial();
if (TextUtils.isEmpty(sn)) { if (TextUtils.isEmpty(sn)) {
return; return;
@@ -140,6 +133,14 @@ public class BaseApplication extends Application {
}); });
} }
@Override
public void onFailed(String errorCode, String errorMessage) {
Log.e("AliyunPush", "init cloudchannel failed -- errorcode:" + errorCode + " -- errorMessage:" + errorMessage);
}
});
}
private void catchException() { private void catchException() {
Thread.setDefaultUncaughtExceptionHandler( Thread.setDefaultUncaughtExceptionHandler(
new Thread.UncaughtExceptionHandler() { new Thread.UncaughtExceptionHandler() {

View File

@@ -10,4 +10,10 @@
android:topRightRadius="10dp" android:topRightRadius="10dp"
android:bottomLeftRadius="10dp" android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp" /> android:bottomRightRadius="10dp" />
<padding
android:bottom="4dp"
android:left="4dp"
android:right="4dp"
android:top="4dp" />
</shape> </shape>

View File

@@ -11,8 +11,8 @@ android {
} }
buildTypes { buildTypes {
MTKAndroid12Debug{} MTK8183Debug{}
MTKAndroid12Release{} MTK8183Release{}
zhanRuiDebug {} zhanRuiDebug {}
zhanRuiRelease {} zhanRuiRelease {}
zhanRuiUserdebug{} zhanRuiUserdebug{}