build for Android

This commit is contained in:
polv committed 2026-03-04 19:07:25 +07:00
1 parent 047054f8f7
commit cf1880c2b3
14 files changed
+56 -194

No files matched your search

+3 -1
View File
@@ -1,9 +1,9 @@
use std::{fs::File, io::Write, path::PathBuf};
use cjdic2_core::{AppService, CJDicError, SqlParam, YomitanRow, YomitanZipImportResult};
use reqwest::Client;
use serde::{Deserialize, Serialize};
use tauri::{AppHandle, Emitter, Manager};
use tauri_plugin_http::reqwest::Client;
#[derive(Deserialize)]
pub struct YomitanDictEntry {
@@ -155,6 +155,8 @@ where
let content_length = response.content_length().unwrap_or(0);
let mut file = File::create(&file_pf).map_err(|e| CJDicError::Error(e.to_string()))?;
println!("{}", content_length);
// Downloading the file in chunks
let mut downloaded: u64 = 0;
while let Some(chunk) = response