android: pass in internal data path for db

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-02-10 13:57:46 -08:00
parent c3779510ec
commit 3925012ad9
4 changed files with 28 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ async fn main() {
let _res = eframe::run_native(
"Damus NoteDeck",
native_options,
Box::new(|cc| Box::new(Damus::new(cc))),
Box::new(|cc| Box::new(Damus::new(cc, "."))),
);
}
@@ -35,7 +35,7 @@ pub fn main() {
eframe::start_web(
"the_canvas_id", // hardcode it
web_options,
Box::new(|cc| Box::new(Damus::new(cc))),
Box::new(|cc| Box::new(Damus::new(cc, "."))),
)
.await
.expect("failed to start eframe");