feat(sdk): add JNI bridge between Java NativeBridge and Rust C ABI

This commit is contained in:
2026-05-25 15:02:12 +08:00
parent 7104976bf9
commit d3d26ba9b4
4 changed files with 46 additions and 3 deletions
-1
View File
@@ -16,7 +16,6 @@ fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
fs::write(out_dir.join("build_hash.txt"), format!("{}\n", hash_hex)).unwrap();
// 嵌入 RSA 公钥(用于 selfhosted 验签)
let pubkey_path = PathBuf::from(&manifest_dir).join("embedded").join("pubkey.pem");
if let Ok(pubkey) = fs::read_to_string(&pubkey_path) {
let trimmed = pubkey.trim();