Skip to content

feat(android): add kern-bridge JNI crate for Kern (dev.kern)#59

Open
verycareful wants to merge 1 commit into
zParik:mainfrom
verycareful:main
Open

feat(android): add kern-bridge JNI crate for Kern (dev.kern)#59
verycareful wants to merge 1 commit into
zParik:mainfrom
verycareful:main

Conversation

@verycareful

Copy link
Copy Markdown

Standalone cdylib (libkern_pdf.so) exposing the pure-lopdf PDF ops (merge, split-per-page, split-by-ranges) to a native, non-Tauri caller over JNI. Depends only on lopdf + jni, so it cross-compiles to Android with plain cargo-ndk - none of the MuPDF/fontconfig workarounds the main qyra crate needs.

Logic is ported from src-tauri/src/commands/{merge,split}.rs. Follow-up: factor the shared PDF logic into a qyra-pdf-core crate that both src-tauri and this bridge depend on, to remove the duplication.

Standalone cdylib (libkern_pdf.so) exposing the pure-lopdf PDF ops
(merge, split-per-page, split-by-ranges) to a native, non-Tauri caller
over JNI. Depends only on lopdf + jni, so it cross-compiles to Android
with plain cargo-ndk - none of the MuPDF/fontconfig workarounds the main
qyra crate needs.

Logic is ported from src-tauri/src/commands/{merge,split}.rs. Follow-up:
factor the shared PDF logic into a qyra-pdf-core crate that both src-tauri
and this bridge depend on, to remove the duplication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant