Removed relinker

pull/209/head
M66B 2 years ago
parent 22dc06f2d4
commit f37c1edba3

@ -548,7 +548,7 @@ dependencies {
// https://github.com/KeepSafe/ReLinker // https://github.com/KeepSafe/ReLinker
// https://mvnrepository.com/artifact/com.getkeepsafe.relinker/relinker // https://mvnrepository.com/artifact/com.getkeepsafe.relinker/relinker
implementation "com.getkeepsafe.relinker:relinker:$relinker_version" //implementation "com.getkeepsafe.relinker:relinker:$relinker_version"
// https://github.com/noties/Markwon // https://github.com/noties/Markwon
// https://mvnrepository.com/artifact/io.noties.markwon/core // https://mvnrepository.com/artifact/io.noties.markwon/core

@ -25,8 +25,6 @@ import androidx.room.TypeConverters;
import androidx.room.migration.Migration; import androidx.room.migration.Migration;
import androidx.sqlite.db.SupportSQLiteDatabase; import androidx.sqlite.db.SupportSQLiteDatabase;
import com.getkeepsafe.relinker.ReLinker;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -400,17 +398,6 @@ public abstract class DB extends RoomDatabase {
} }
private static RoomDatabase.Builder<DB> getBuilder(Context context) { private static RoomDatabase.Builder<DB> getBuilder(Context context) {
try {
ReLinker.log(new ReLinker.Logger() {
@Override
public void log(String message) {
Log.i("Relinker: " + message);
}
}).loadLibrary(context, "sqlite3x");
} catch (Throwable ex) {
Log.e(ex);
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
int threads = prefs.getInt("query_threads", DEFAULT_QUERY_THREADS); int threads = prefs.getInt("query_threads", DEFAULT_QUERY_THREADS);
boolean wal = prefs.getBoolean("wal", true); boolean wal = prefs.getBoolean("wal", true);

Loading…
Cancel
Save