feat: android build

This commit is contained in:
2024-10-17 20:06:37 +01:00
parent 6017ce18d4
commit 91f0baf75c
11 changed files with 501 additions and 318 deletions

View File

@ -1,5 +1,6 @@
use eframe::Renderer;
use egui::Vec2;
use std::path::PathBuf;
use zap_stream_app::app::ZapStreamApp;
#[tokio::main]
@ -12,9 +13,10 @@ async fn main() {
options.renderer = Renderer::Glow;
options.viewport = options.viewport.with_inner_size(Vec2::new(360., 720.));
let data_path = PathBuf::from(".");
let _res = eframe::run_native(
"zap.stream",
options,
Box::new(move |cc| Ok(Box::new(ZapStreamApp::new(cc)))),
Box::new(move |cc| Ok(Box::new(ZapStreamApp::new(cc, data_path)))),
);
}