Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/example tauri app #59

Merged
merged 1 commit into from
Dec 25, 2024
Merged

Feat/example tauri app #59

merged 1 commit into from
Dec 25, 2024

Conversation

thewh1teagle
Copy link
Owner

@thewh1teagle thewh1teagle commented Dec 25, 2024

TODO:

Tauri path resolver return tauri://localhost paths instead of fs paths

Q&A:

Webview console? - open chrome://inspect

Verbose log from tauri? - bunx tauri android dev --verbose

Include non Jni libraries in tauri? - gen/android/app/build.gradle.kts

mkdir -p gen/android/app/src/main/jniLibs/arm64-v8a
ln -s $(pwd)/target/aarch64-linux-android/debug/libonnxruntime.so $(pwd)/gen/android/app/src/main/jniLibs/arm64-v8a/libonnxruntime.so
ln -s $(pwd)/target/aarch64-linux-android/debug/libsherpa-onnx-c-api.so $(pwd)/gen/android/app/src/main/jniLibs/arm64-v8a/libsherpa-onnx-c-api.so

# gen/android/app/build.gradle.kts
- packaging { jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so") }
+ packaging { jniLibs.keepDebugSymbols.add("*/arm64-v8a/libtauri*.so") }

Load it from temp folder works.

@thewh1teagle thewh1teagle force-pushed the feat/example-tauri-app branch from be29ec8 to edfb3b6 Compare December 25, 2024 07:57
@thewh1teagle thewh1teagle merged commit 4f17458 into main Dec 25, 2024
3 checks passed
@thewh1teagle thewh1teagle deleted the feat/example-tauri-app branch December 25, 2024 07:59
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