jimu-decompiled/sources/com/tencent/bugly/a.java
2025-05-13 19:24:51 +02:00

60 lines
1.6 KiB
Java

package com.tencent.bugly;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.tencent.bugly.crashreport.common.strategy.StrategyBean;
import com.tencent.bugly.proguard.x;
/* compiled from: BUGLY */
/* loaded from: classes.dex */
public abstract class a {
public int id;
public String moduleName;
public String version;
public String versionKey;
public abstract String[] getTables();
public abstract void init(Context context, boolean z, BuglyStrategy buglyStrategy);
public void onDbCreate(SQLiteDatabase sQLiteDatabase) {
}
public void onDbDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
try {
if (getTables() == null) {
return;
}
for (String str : getTables()) {
sQLiteDatabase.execSQL("DROP TABLE IF EXISTS " + str);
}
onDbCreate(sQLiteDatabase);
} catch (Throwable th) {
if (x.b(th)) {
return;
}
th.printStackTrace();
}
}
public void onDbUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
try {
if (getTables() == null) {
return;
}
for (String str : getTables()) {
sQLiteDatabase.execSQL("DROP TABLE IF EXISTS " + str);
}
onDbCreate(sQLiteDatabase);
} catch (Throwable th) {
if (x.b(th)) {
return;
}
th.printStackTrace();
}
}
public void onServerStrategyChanged(StrategyBean strategyBean) {
}
}