配置化声网AppId

This commit is contained in:
zlzw 2024-06-05 16:37:24 +08:00
parent 62e50ae310
commit c91947ce71
3 changed files with 9 additions and 3 deletions

View File

@ -165,6 +165,9 @@
<meta-data
android:name="BUILD_TIME"
android:value="${buildTime}" />
<meta-data
android:name="SW_RELEASE_MODEL"
android:value="${swReleaseModel}" />
<meta-data
android:name="com.openinstall.APP_KEY"
android:value="smvslm" />

View File

@ -38,6 +38,7 @@ public class CommonAppConfig {
//是否为插件包模式
public static final boolean IS_PLUGIN_MODEL = getMetaDataBoolean("IS_PLUGIN_MODEL");
public static final String BUILD_TIME = getMetaDataString("BUILD_TIME");
public static final boolean IS_SW_RELEASE = getMetaDataBoolean("SW_RELEASE_MODEL");
//外部sd卡
public static final String DCMI_PATH = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath();
@ -85,10 +86,10 @@ public class CommonAppConfig {
public static final String SWAPPId = "d4a5879524d74c20a7bdd667b0f2ca21";
public static String getSwAppId() {
if (BuildConfig.DEBUG) {
return SWAPPId_debug;
} else {
if (IS_SW_RELEASE) {
return SWAPPId;
} else {
return SWAPPId_debug;
}
}

View File

@ -17,6 +17,8 @@ ext {
//
swReleaseModel : true, //true声网正式服 false测试服
baiduAppId : "23774720",
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",