From f37c1edba37efdc45f598dc8f480c47a55e59468 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Sep 2022 13:30:35 +0200 Subject: [PATCH] Removed relinker --- app/build.gradle | 2 +- app/src/main/java/eu/faircode/email/DB.java | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0fc4b9208b..c8deaa8825 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -548,7 +548,7 @@ dependencies { // https://github.com/KeepSafe/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://mvnrepository.com/artifact/io.noties.markwon/core diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 602e0326b6..dd69b3e902 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -25,8 +25,6 @@ import androidx.room.TypeConverters; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; -import com.getkeepsafe.relinker.ReLinker; - import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; @@ -400,17 +398,6 @@ public abstract class DB extends RoomDatabase { } private static RoomDatabase.Builder 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); int threads = prefs.getInt("query_threads", DEFAULT_QUERY_THREADS); boolean wal = prefs.getBoolean("wal", true);