mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-30 11:46:14 +00:00
Add a new buildType with Flipper.
This commit is contained in:
@@ -175,6 +175,10 @@ public class DatabaseFactory {
|
||||
}
|
||||
}
|
||||
|
||||
static SQLCipherOpenHelper getRawDatabase(Context context) {
|
||||
return getInstance(context).databaseHelper;
|
||||
}
|
||||
|
||||
private DatabaseFactory(@NonNull Context context) {
|
||||
SQLiteDatabase.loadLibs(context);
|
||||
|
||||
|
||||
@@ -818,6 +818,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
||||
return context.getDatabasePath(DATABASE_NAME).exists();
|
||||
}
|
||||
|
||||
public static File getDatabaseFile(@NonNull Context context) {
|
||||
return context.getDatabasePath(DATABASE_NAME);
|
||||
}
|
||||
|
||||
private void executeStatements(SQLiteDatabase db, String[] statements) {
|
||||
for (String statement : statements)
|
||||
db.execSQL(statement);
|
||||
|
||||
Reference in New Issue
Block a user