Add a new buildType with Flipper.

This commit is contained in:
Greyson Parrelli
2020-03-01 10:54:11 -05:00
parent ceb9e4aee2
commit 245b0a7e50
8 changed files with 409 additions and 108 deletions

View File

@@ -175,6 +175,10 @@ public class DatabaseFactory {
}
}
static SQLCipherOpenHelper getRawDatabase(Context context) {
return getInstance(context).databaseHelper;
}
private DatabaseFactory(@NonNull Context context) {
SQLiteDatabase.loadLibs(context);

View File

@@ -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);