花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 b.java 源代码,内容仅作参考
package bykvm_19do.bykvm_19do.bykvm_if122.bykvm_int108;
import android.text.TextUtils;
import androidx.exifinterface.media.ExifInterface;
import com.bytedance.msdk.adapter.util.Logger;
import com.bytedance.msdk.api.v2.GMMediationAdSdk;
import com.bytedance.msdk.api.v2.GMSettingConfigCallback;
public class b {
private static final GMSettingConfigCallback a = new a();
static final class a implements GMSettingConfigCallback {
a() {
}
@Override
public void configLoad() {
try {
b.d();
} finally {
try {
} finally {
}
}
}
}
private static int a(String str, String str2) {
if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2)) {
return 0;
}
if (!TextUtils.isEmpty(str)) {
if (!TextUtils.isEmpty(str2)) {
if (str.startsWith("v") || str.startsWith(ExifInterface.GPS_MEASUREMENT_INTERRUPTED)) {
str = str.substring(1);
}
if (str2.startsWith("v") || str2.startsWith(ExifInterface.GPS_MEASUREMENT_INTERRUPTED)) {
str2 = str2.substring(1);
}
String[] split = str.split("\\.");
String[] split2 = str2.split("\\.");
int min = Math.min(split.length, split2.length);
for (int i2 = 0; i2 < min; i2++) {
if (split[i2].length() == split2[i2].length()) {
int compareTo = split[i2].compareTo(split2[i2]);
if (compareTo != 0) {
return compareTo;
}
} else if (split[i2].length() <= split2[i2].length()) {
}
}
if (split.length == split2.length) {
return 0;
}
if (split.length <= split2.length) {
}
}
return 1;
}
return -1;
}
public static boolean b(String str, String str2) {
String str3;
StringBuilder sb;
String str4;
StringBuilder sb2;
String str5;
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
return false;
}
if (!str.equals("pangle")) {
char c = 65535;
switch (str.hashCode()) {
case -1128782217:
if (str.equals("klevin")) {
c = 5;
break;
}
break;
case -902468465:
if (str.equals("sigmob")) {
c = 4;
break;
}
break;
case 3432:
if (str.equals("ks")) {
c = 6;
break;
}
break;
case 102199:
if (str.equals("gdt")) {
c = 3;
break;
}
break;
case 92668925:
if (str.equals("admob")) {
c = 0;
break;
}
break;
case 93498907:
if (str.equals("baidu")) {
c = 1;
break;
}
break;
case 111433589:
if (str.equals("unity")) {
c = 2;
break;
}
break;
case 1126045977:
if (str.equals("mintegral")) {
c = 7;
break;
}
break;
}
switch (c) {
case 0:
str3 = "17.2.0.36";
if (a(str2, "17.2.0.36") == 0) {
sb = new StringBuilder();
str4 = "admobAdapter版本正常,要求<=";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "admobAdapter版本不符合,要求<=";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 1:
str3 = "9.241.2";
if (a(str2, "9.241.2") == 0) {
sb = new StringBuilder();
str4 = "百度Adapter版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "百度Adapter版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 2:
str3 = "4.3.0.5";
if (a(str2, "4.3.0.5") == 0) {
sb = new StringBuilder();
str4 = "unityAdapter版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "unityAdapter版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 3:
str3 = "4.491.1361.2";
if (a(str2, "4.491.1361.2") == 0) {
sb = new StringBuilder();
str4 = "gdtAdapter版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "gdtAdapter版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 4:
str3 = "4.5.0.4";
if (a(str2, "4.5.0.4") == 0) {
sb = new StringBuilder();
str4 = "sigmobAdapter版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "sigmobAdapter版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 5:
str3 = "2.9.1.5.5";
if (a(str2, "2.9.1.5.5") == 0) {
sb = new StringBuilder();
str4 = "klevinAdapter版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "klevinAdapter版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 6:
str3 = "3.3.31.2";
if (a(str2, "3.3.31.2") == 0) {
sb = new StringBuilder();
str4 = "快手Adapter版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "快手Adapter版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
case 7:
str3 = "16.2.27.5";
if (a(str2, "16.2.27.5") == 0) {
sb = new StringBuilder();
str4 = "MintegralAdapter版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
Logger.d("TTMediationSDK_InitChecker", sb.toString());
break;
} else {
sb2 = new StringBuilder();
str5 = "MintegralAdapter版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
Logger.e("TTMediationSDK_InitChecker", sb2.toString());
return false;
}
default:
return false;
}
}
return true;
}
public static void c() {
try {
if (Logger.isDebug() && GMMediationAdSdk.configLoadSuccess()) {
d();
}
} catch (Throwable unused) {
}
}
public static boolean c(String str, String str2) {
String str3;
StringBuilder sb;
String str4;
StringBuilder sb2;
String str5;
String sb3;
String sb4;
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
return false;
}
if (!str.equals("baidu") && !str.equals("admob")) {
char c = 65535;
switch (str.hashCode()) {
case -1128782217:
if (str.equals("klevin")) {
c = 4;
break;
}
break;
case -995541405:
if (str.equals("pangle")) {
c = 0;
break;
}
break;
case -902468465:
if (str.equals("sigmob")) {
c = 3;
break;
}
break;
case 3432:
if (str.equals("ks")) {
c = 5;
break;
}
break;
case 102199:
if (str.equals("gdt")) {
c = 2;
break;
}
break;
case 111433589:
if (str.equals("unity")) {
c = 1;
break;
}
break;
case 1126045977:
if (str.equals("mintegral")) {
c = 6;
break;
}
break;
}
switch (c) {
case 0:
str3 = "4.8.0.8";
if (a(str2, "4.8.0.8") == 0) {
sb = new StringBuilder();
str4 = "穿山甲版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "穿山甲版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 1:
str3 = "4.3.0";
if (a(str2, "4.3.0") == 0) {
sb = new StringBuilder();
str4 = "unity版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "unity版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 2:
str3 = "4.491.1361";
if (a(str2, "4.491.1361") == 0) {
sb = new StringBuilder();
str4 = "gdt版本正常,要求等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "gdt版本不符合,要求等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 3:
str3 = "4.5.0";
if (a(str2, "4.5.0") == 0) {
sb = new StringBuilder();
str4 = "sigmob版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "sigmob版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 4:
str3 = "2.9.1.5";
if (a(str2, "2.9.1.5") == 0) {
sb = new StringBuilder();
str4 = "klevin版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "klevin版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 5:
str3 = "3.3.31";
if (a(str2, "3.3.31") == 0) {
sb = new StringBuilder();
str4 = "快手版本正常, 要求版本等于";
sb.append(str4);
sb.append(str3);
sb.append(",当前是");
sb.append(str2);
sb3 = sb.toString();
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb2 = new StringBuilder();
str5 = "快手版本不符合, 要求版本等于";
sb2.append(str5);
sb2.append(str3);
sb2.append(",当前是");
sb2.append(str2);
sb4 = sb2.toString();
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
case 6:
if (!TextUtils.isEmpty(str2) && str2.contains("16.2.27")) {
sb3 = "Mintegral版本正常, 要求版本等于16.2.27,当前是" + str2;
Logger.d("TTMediationSDK_InitChecker", sb3);
break;
} else {
sb4 = "Mintegral版本不符合, 要求版本等于16.2.27,当前是" + str2;
Logger.e("TTMediationSDK_InitChecker", sb4);
return false;
}
default:
return false;
}
}
return true;
}
public static void d() {
synchronized (b.class) {
if (bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.a.d() != null) {
bykvm_19do.bykvm_19do.bykvm_if122.bykvm_new1.bykvm_19do.a.r().d();
}
}
}
}