@Override public Iterable<ChromeDevtoolsDomain> get() { return new Stetho.DefaultInspectorModulesBuilder(context) .provideDatabaseDriver(new SqliteDatabaseDriver(context, new DatabaseFilesProvider() { @Override public List<File> getDatabaseFiles() { List<File> list = new ArrayList<>(); list.add(new File(historian.dbPath())); return list; } }, new DatabaseConnectionProvider() { @Override public SQLiteDatabase openDatabase(File file) throws SQLiteException { return historian.getDatabase(); } })) .finish(); }
/** * @param context the context * @param databaseFilesProvider a database file name provider * @param databaseConnectionProvider a database connection provider */ public RongDatabaseDriver( Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) { super(context); mDatabaseFilesProvider = databaseFilesProvider; mDatabaseConnectionProvider = databaseConnectionProvider; }
public RongDatabaseDriver(Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) { super(context, databaseFilesProvider, databaseConnectionProvider); }