6.7.0谷歌送审版本

This commit is contained in:
zlzw 2024-06-07 10:39:47 +08:00
parent 4628079ac7
commit c263e3543c
12 changed files with 77 additions and 34 deletions

View File

@ -188,7 +188,7 @@ android {
if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") { if (rootProject.ext.manifestPlaceholders.serverHost == "https://napi.yaoulive.com") {
isTest = "正式服" 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 multiDexEnabled true
ndk { ndk {
// TODO: // TODO:
//abiFilters "armeabi-v7a", "arm64-v8a" println("打包版本:${rootProject.ext.manifestPlaceholders.isGooglePlay}")
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64" if (rootProject.ext.manifestPlaceholders.isGooglePlay == 0) {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
println("链接包")
} else {
abiFilters "armeabi-v7a", "arm64-v8a"
println("谷歌包")
}
} }
javaCompileOptions { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {

View File

@ -31,7 +31,8 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64" // abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
abiFilters "armeabi-v7a", "arm64-v8a"
} }
} }
buildTypes { buildTypes {

View File

@ -31,7 +31,8 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64" // abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
abiFilters "armeabi-v7a", "arm64-v8a"
} }
} }
aaptOptions { aaptOptions {

View File

@ -14,7 +14,12 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64" // 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 { javaCompileOptions {

View File

@ -47,13 +47,11 @@ public class InstructorRemarkManager extends BaseCacheManager {
if (null == instructorRemarkMap) { if (null == instructorRemarkMap) {
String string = getString(KEY_INSTRUCTOR_REMARK); String string = getString(KEY_INSTRUCTOR_REMARK);
if (!StringUtil.isEmpty(string)) { if (!StringUtil.isEmpty(string)) {
instructorRemarkMap = JSON.parseObject(string, new TypeReference<Map<String, String>>() { instructorRemarkMap = JSON.parseObject(string, Map.class);
});
} }
} }
}catch (Exception e){ } catch (Exception e) {
Log.i("remark", "getInstructorRemark: "+getString(KEY_INSTRUCTOR_REMARK)); Log.i("remark", "getInstructorRemark: " + getString(KEY_INSTRUCTOR_REMARK));
e.printStackTrace(); e.printStackTrace();
} }
if (instructorRemarkMap == null) { if (instructorRemarkMap == null) {
@ -66,12 +64,11 @@ public class InstructorRemarkManager extends BaseCacheManager {
* 设置指导员备注信息 * 设置指导员备注信息
*/ */
public void setInstructorRemark(String map) { 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); put(KEY_INSTRUCTOR_REMARK, map);
for (String key : instructorRemarkMap.keySet()) { for (String key : instructorRemarkMap.keySet()) {
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(key); UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(key);
if(userInfo!=null){ if (userInfo != null && !StringUtil.isEmpty(instructorRemarkMap.get(key))) {
userInfo.setName(instructorRemarkMap.get(key)); userInfo.setName(instructorRemarkMap.get(key));
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo); RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
} }
@ -133,9 +130,7 @@ public class InstructorRemarkManager extends BaseCacheManager {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
if (code == 0 && info.length > 0) { 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]); setInstructorRemark(info[0]);
} }

View File

@ -54,10 +54,18 @@ public class OpenAdManager {
} }
public void clear() { public void clear() {
runnableMap.clear(); if (runnableMap != null) {
showMap.clear(); runnableMap.clear();
list.clear(); }
waitRunnableMap.clear(); if (showMap != null) {
showMap.clear();
}
if (list != null) {
list.clear();
}
if (waitRunnableMap != null) {
waitRunnableMap.clear();
}
list = null; list = null;
runNowRunnable = null; runNowRunnable = null;
} }
@ -114,7 +122,7 @@ public class OpenAdManager {
} }
private static long showTime = 0; private static long showTime = 0;
private OnItemClickListener<String> onItemClickListener=new OnItemClickListener<String>() { private OnItemClickListener<String> onItemClickListener = new OnItemClickListener<String>() {
@Override @Override
public void onItemClick(String bean, int position) { public void onItemClick(String bean, int position) {
@ -123,7 +131,7 @@ public class OpenAdManager {
public synchronized void show(int type, boolean isGuard) { public synchronized void show(int type, boolean isGuard) {
showType = type; showType = type;
if(true){ if (false) {
//潘多拉不需要彈窗 //潘多拉不需要彈窗
return; return;
} }
@ -327,7 +335,7 @@ public class OpenAdManager {
if (model.getShowModel() == OpenAdModel.SHOW_DIY) { if (model.getShowModel() == OpenAdModel.SHOW_DIY) {
String nextTime = String.valueOf(System.currentTimeMillis() + (Long.parseLong(model.getSection()) * 60 * 1000)); String nextTime = String.valueOf(System.currentTimeMillis() + (Long.parseLong(model.getSection()) * 60 * 1000));
SpUtil.setStringValue("open_ad_popup_time_" + model.getId(), nextTime); SpUtil.setStringValue("open_ad_popup_time_" + model.getId(), nextTime);
Log.i(TAG, "run: 下一次展示时间:"+nextTime+" | "+model.getSection()); Log.i(TAG, "run: 下一次展示时间:" + nextTime + " | " + model.getSection());
showMap.remove(model.getId()); showMap.remove(model.getId());
} }
if (model.getModel() == OpenAdModel.MODEL_BOTTOM) { if (model.getModel() == OpenAdModel.MODEL_BOTTOM) {

View File

@ -90,6 +90,17 @@ public class DeviceUtils {
} }
return "0"; 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";
} }
/** /**

View File

@ -4,20 +4,20 @@ ext {
buildToolsVersion: "29.0.2", buildToolsVersion: "29.0.2",
minSdkVersion : 23, minSdkVersion : 23,
targetSdkVersion : 33, targetSdkVersion : 33,
versionCode : 676, versionCode : 529,
versionName : "6.6.9", versionName : "6.7.0",
namespace : "com.pandoralive.shayu" namespace : "com.pandoralive.shayu"
] ]
manifestPlaceholders = [ 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")), buildTime : new Date().format("MM-dd HH:mm", TimeZone.getTimeZone("GMT+8")),
// //
swReleaseModel : false, //true false swReleaseModel : true, //true false
baiduAppId : "23774720", baiduAppId : "23774720",
baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB", baiduAppKey : "zgCgFhUKEOV7I3ZXDFpTfnRB",
@ -26,7 +26,7 @@ ext {
// true表示谷歌支付 false // true表示谷歌支付 false
// isGooglePlay : false, // isGooglePlay : false,
// true表示谷歌支付 false 0 (isPluginModel-> true) 1 2 3 samsung包 // true表示谷歌支付 false 0 (isPluginModel-> true) 1 2 3 samsung包
isGooglePlay : 0, isGooglePlay : 1,
// //
isUploadLog : true, isUploadLog : true,

View File

@ -1 +1 @@
apply plugin: 'com.android.library' apply plugin: 'img-optimizer' apply plugin: 'kotlin-android' android { namespace "com.yunbao.live" compileSdk rootProject.ext.android.compileSdkVersion aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false packagingOptions { pickFirst "lib/armeabi/libyuvutils.so" pickFirst "lib/arm64-v8a/libyuvutils.so" pickFirst "lib/armeabi-v7a/libyuvutils.so" pickFirst "lib/armeabi/libyuvtools.so" pickFirst "lib/arm64-v8a/libyuvtools.so" pickFirst "lib/armeabi-v7a/libyuvtools.so" exclude "lib/arm64-v8a/libmmcv_api_handgesture.so" exclude "lib/arm64-v8a/libmmcv_api_express.so" exclude "lib/arm64-v8a/libMediaEncoder.so" exclude "lib/arm64-v8a/libarcore_sdk_c.so" exclude "lib/arm64-v8a/libmediadecoder.so" exclude "lib/arm64-v8a/libMediaMuxer.so" exclude "lib/arm64-v8a/libarcore_sdk_jni.so" exclude "lib/arm64-v8a/libMediaUtils.so" exclude "lib/arm64-v8a/libcosmosffmpeg.so" } defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName manifestPlaceholders = rootProject.ext.manifestPlaceholders ndk { abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64" } javaCompileOptions { annotationProcessorOptions { arguments = [AROUTER_MODULE_NAME: project.getName()] } } } aaptOptions { cruncherEnabled = false useNewCruncher = false } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } kotlinOptions { allWarningsAsErrors = true } compileOptions { sourceCompatibility JavaVersion.VERSION_18 targetCompatibility JavaVersion.VERSION_18 } } repositories { flatDir { dirs 'libs', '../libs' } mavenCentral() } dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.0.0' implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation (name:'../libs/beautysdk-202202241203',ext:'aar') implementation (name:'../libs/svgaplayer-release-v1.2.1',ext:'aar') //socket.io implementation('io.socket:socket.io-client:1.0.0') { exclude group: 'org.json', module: 'json' } //common api project(path:':lib_faceunity')//新娱美颜 api project(':Share')//分享 annotationProcessor rootProject.ext.dependencies["arouter-compiler"] //工具 api rootProject.ext.dependencies["blank-utilcode"] implementation 'com.eightbitlab:blurview:1.6.6' implementation 'com.google.code.gson:gson:2.8.6' implementation "com.getkeepsafe.relinker:relinker:1.4.4" } apply plugin: 'com.android.library' apply plugin: 'img-optimizer' apply plugin: 'kotlin-android' android { namespace "com.yunbao.live" compileSdk rootProject.ext.android.compileSdkVersion aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false packagingOptions { pickFirst "lib/armeabi/libyuvutils.so" pickFirst "lib/arm64-v8a/libyuvutils.so" pickFirst "lib/armeabi-v7a/libyuvutils.so" pickFirst "lib/armeabi/libyuvtools.so" pickFirst "lib/arm64-v8a/libyuvtools.so" pickFirst "lib/armeabi-v7a/libyuvtools.so" exclude "lib/arm64-v8a/libmmcv_api_handgesture.so" exclude "lib/arm64-v8a/libmmcv_api_express.so" exclude "lib/arm64-v8a/libMediaEncoder.so" exclude "lib/arm64-v8a/libarcore_sdk_c.so" exclude "lib/arm64-v8a/libmediadecoder.so" exclude "lib/arm64-v8a/libMediaMuxer.so" exclude "lib/arm64-v8a/libarcore_sdk_jni.so" exclude "lib/arm64-v8a/libMediaUtils.so" exclude "lib/arm64-v8a/libcosmosffmpeg.so" } defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode 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 { arguments = [AROUTER_MODULE_NAME: project.getName()] } } } aaptOptions { cruncherEnabled = false useNewCruncher = false } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } kotlinOptions { allWarningsAsErrors = true } compileOptions { sourceCompatibility JavaVersion.VERSION_18 targetCompatibility JavaVersion.VERSION_18 } } repositories { flatDir { dirs 'libs', '../libs' } mavenCentral() } dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.0.0' implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation (name:'../libs/beautysdk-202202241203',ext:'aar') implementation (name:'../libs/svgaplayer-release-v1.2.1',ext:'aar') //socket.io implementation('io.socket:socket.io-client:1.0.0') { exclude group: 'org.json', module: 'json' } //common api project(path:':lib_faceunity')//新娱美颜 api project(':Share')//分享 annotationProcessor rootProject.ext.dependencies["arouter-compiler"] //工具 api rootProject.ext.dependencies["blank-utilcode"] implementation 'com.eightbitlab:blurview:1.6.6' implementation 'com.google.code.gson:gson:2.8.6' implementation "com.getkeepsafe.relinker:relinker:1.4.4" }

View File

@ -30,7 +30,12 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64" // 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 { javaCompileOptions {

View File

@ -119,7 +119,12 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a", "arm64-v8a","x86","x86_64" // 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 { aaptOptions {

View File

@ -31,7 +31,12 @@ android {
versionName rootProject.ext.android.versionName versionName rootProject.ext.android.versionName
manifestPlaceholders = rootProject.ext.manifestPlaceholders manifestPlaceholders = rootProject.ext.manifestPlaceholders
ndk { ndk {
abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64" // 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 { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {