6.7.0谷歌送审版本
This commit is contained in:
@@ -188,7 +188,7 @@ android {
|
||||
if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") {
|
||||
isTest = "正式服"
|
||||
}
|
||||
outputFileName = "[${new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("GMT+8"))}]PDLive-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
|
||||
outputFileName = "[${new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("GMT+8"))}]潘多拉-${defaultConfig.versionName}-${isGoogle}-${isPlugin}-${variant.buildType.name}-${isTest}.apk"
|
||||
|
||||
}
|
||||
}
|
||||
@@ -231,8 +231,15 @@ android {
|
||||
multiDexEnabled true
|
||||
ndk {
|
||||
// TODO: 谷歌商城需要兼容两个平台
|
||||
//abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
println("打包版本:${rootProject.ext.manifestPlaceholders.isGooglePlay}")
|
||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
println("链接包")
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
println("谷歌包")
|
||||
}
|
||||
|
||||
}
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
|
||||
@@ -31,7 +31,8 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
|
||||
// abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
|
||||
@@ -31,7 +31,8 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
|
||||
// abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
aaptOptions {
|
||||
|
||||
@@ -14,7 +14,12 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
|
||||
javaCompileOptions {
|
||||
|
||||
@@ -47,9 +47,7 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
||||
if (null == instructorRemarkMap) {
|
||||
String string = getString(KEY_INSTRUCTOR_REMARK);
|
||||
if (!StringUtil.isEmpty(string)) {
|
||||
instructorRemarkMap = JSON.parseObject(string, new TypeReference<Map<String, String>>() {
|
||||
|
||||
});
|
||||
instructorRemarkMap = JSON.parseObject(string, Map.class);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
@@ -66,12 +64,11 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
||||
* 设置指导员备注信息
|
||||
*/
|
||||
public void setInstructorRemark(String map) {
|
||||
this.instructorRemarkMap = JSON.parseObject(map, new TypeReference<Map<String, String>>() {
|
||||
});
|
||||
this.instructorRemarkMap = JSON.parseObject(map, Map.class);
|
||||
put(KEY_INSTRUCTOR_REMARK, map);
|
||||
for (String key : instructorRemarkMap.keySet()) {
|
||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(key);
|
||||
if(userInfo!=null){
|
||||
if (userInfo != null && !StringUtil.isEmpty(instructorRemarkMap.get(key))) {
|
||||
userInfo.setName(instructorRemarkMap.get(key));
|
||||
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
|
||||
}
|
||||
@@ -133,9 +130,7 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0 && info.length > 0) {
|
||||
instructorRemarkMap = JSON.parseObject(info[0], new TypeReference<Map<String, String>>() {
|
||||
|
||||
});
|
||||
instructorRemarkMap = JSON.parseObject(info[0], Map.class);
|
||||
setInstructorRemark(info[0]);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,10 +54,18 @@ public class OpenAdManager {
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
if (runnableMap != null) {
|
||||
runnableMap.clear();
|
||||
}
|
||||
if (showMap != null) {
|
||||
showMap.clear();
|
||||
}
|
||||
if (list != null) {
|
||||
list.clear();
|
||||
}
|
||||
if (waitRunnableMap != null) {
|
||||
waitRunnableMap.clear();
|
||||
}
|
||||
list = null;
|
||||
runNowRunnable = null;
|
||||
}
|
||||
@@ -123,7 +131,7 @@ public class OpenAdManager {
|
||||
|
||||
public synchronized void show(int type, boolean isGuard) {
|
||||
showType = type;
|
||||
if(true){
|
||||
if (false) {
|
||||
//潘多拉不需要彈窗
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,17 @@ public class DeviceUtils {
|
||||
}
|
||||
return "0";
|
||||
|
||||
}
|
||||
public static String getVersionName2(Context context) {
|
||||
try {
|
||||
PackageManager manager = context.getPackageManager();
|
||||
PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);
|
||||
return info.versionCode+"";
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "0";
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,20 +4,20 @@ ext {
|
||||
buildToolsVersion: "29.0.2",
|
||||
minSdkVersion : 23,
|
||||
targetSdkVersion : 33,
|
||||
versionCode : 676,
|
||||
versionName : "6.6.9",
|
||||
versionCode : 529,
|
||||
versionName : "6.7.0",
|
||||
namespace : "com.pandoralive.shayu"
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
//正式、
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// 测试
|
||||
serverHost : " https://ceshi.yaoulive.com",
|
||||
// serverHost : " https://ceshi.yaoulive.com",
|
||||
buildTime : new Date().format("MM-dd HH:mm", TimeZone.getTimeZone("GMT+8")),
|
||||
|
||||
//百度语音识别
|
||||
|
||||
swReleaseModel : false, //true 声网正式服 false 测试服
|
||||
swReleaseModel : true, //true 声网正式服 false 测试服
|
||||
|
||||
baiduAppId : "23774720",
|
||||
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
|
||||
@@ -26,7 +26,7 @@ ext {
|
||||
// true表示谷歌支付 false
|
||||
// isGooglePlay : false,
|
||||
// true表示谷歌支付 false 0 链接包(isPluginModel-> true) 1 谷歌包 2华为包 3 samsung包
|
||||
isGooglePlay : 0,
|
||||
isGooglePlay : 1,
|
||||
|
||||
//是否上报异常日志
|
||||
isUploadLog : true,
|
||||
|
||||
@@ -1 +1 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'com.android.library'
|
||||
@@ -30,7 +30,12 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
|
||||
javaCompileOptions {
|
||||
|
||||
@@ -119,7 +119,12 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
// abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64"
|
||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
}
|
||||
aaptOptions {
|
||||
|
||||
@@ -31,7 +31,12 @@ android {
|
||||
versionName rootProject.ext.android.versionName
|
||||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||||
ndk {
|
||||
// abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
|
||||
if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||
} else {
|
||||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||||
}
|
||||
}
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
|
||||
Reference in New Issue
Block a user