Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.tencent.mm.opensdk.utils;
/* loaded from: classes.dex */
public interface ILog {
void d(String str, String str2);
void e(String str, String str2);
void i(String str, String str2);
void v(String str, String str2);
void w(String str, String str2);
}

View File

@@ -0,0 +1,55 @@
package com.tencent.mm.opensdk.utils;
/* loaded from: classes.dex */
public class Log {
private static ILog logImpl;
public static void d(String str, String str2) {
ILog iLog = logImpl;
if (iLog == null) {
android.util.Log.d(str, str2);
} else {
iLog.d(str, str2);
}
}
public static void e(String str, String str2) {
ILog iLog = logImpl;
if (iLog == null) {
android.util.Log.e(str, str2);
} else {
iLog.e(str, str2);
}
}
public static void i(String str, String str2) {
ILog iLog = logImpl;
if (iLog == null) {
android.util.Log.i(str, str2);
} else {
iLog.i(str, str2);
}
}
public static void setLogImpl(ILog iLog) {
logImpl = iLog;
}
public static void v(String str, String str2) {
ILog iLog = logImpl;
if (iLog == null) {
android.util.Log.v(str, str2);
} else {
iLog.v(str, str2);
}
}
public static void w(String str, String str2) {
ILog iLog = logImpl;
if (iLog == null) {
android.util.Log.w(str, str2);
} else {
iLog.w(str, str2);
}
}
}

View File

@@ -0,0 +1,30 @@
package com.tencent.mm.opensdk.utils;
import android.os.Bundle;
/* loaded from: classes.dex */
public final class a {
public static int a(Bundle bundle, String str) {
if (bundle == null) {
return -1;
}
try {
return bundle.getInt(str, -1);
} catch (Exception e) {
Log.e("MicroMsg.IntentUtil", "getIntExtra exception:" + e.getMessage());
return -1;
}
}
public static String b(Bundle bundle, String str) {
if (bundle == null) {
return null;
}
try {
return bundle.getString(str);
} catch (Exception e) {
Log.e("MicroMsg.IntentUtil", "getStringExtra exception:" + e.getMessage());
return null;
}
}
}

View File

@@ -0,0 +1,26 @@
package com.tencent.mm.opensdk.utils;
import java.security.MessageDigest;
/* loaded from: classes.dex */
public final class b {
public static final String e(byte[] bArr) {
char[] cArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
try {
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.update(bArr);
byte[] digest = messageDigest.digest();
char[] cArr2 = new char[digest.length * 2];
int i = 0;
for (byte b : digest) {
int i2 = i + 1;
cArr2[i] = cArr[(b >>> 4) & 15];
i = i2 + 1;
cArr2[i2] = cArr[b & 15];
}
return new String(cArr2);
} catch (Exception unused) {
return null;
}
}
}

View File

@@ -0,0 +1,39 @@
package com.tencent.mm.opensdk.utils;
import android.net.Uri;
import android.provider.BaseColumns;
/* loaded from: classes.dex */
public final class c {
public static final class a {
public static Object a(int i, String str) {
try {
switch (i) {
case 1:
return Integer.valueOf(str);
case 2:
return Long.valueOf(str);
case 3:
return str;
case 4:
return Boolean.valueOf(str);
case 5:
return Float.valueOf(str);
case 6:
return Double.valueOf(str);
default:
Log.e("MicroMsg.SDK.PluginProvider.Resolver", "unknown type");
return null;
}
} catch (Exception e) {
Log.e("MicroMsg.SDK.PluginProvider.Resolver", "resolveObj exception:" + e.getMessage());
return null;
}
}
}
public static final class b implements BaseColumns {
public static final Uri CONTENT_URI = Uri.parse("content://com.tencent.mm.sdk.plugin.provider/sharedpref");
}
}

View File

@@ -0,0 +1,20 @@
package com.tencent.mm.opensdk.utils;
/* loaded from: classes.dex */
public final class d {
public static boolean h(String str) {
return str == null || str.length() <= 0;
}
public static int i(String str) {
if (str != null) {
try {
if (str.length() > 0) {
return Integer.parseInt(str);
}
} catch (Exception unused) {
}
}
return 0;
}
}