From 78572a6090cf0d9551a949d52e08b54079c4161b Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Thu, 1 Jan 2026 21:56:48 -0600 Subject: [PATCH] feat(android): enhance android-prepare task to copy and vendor dependencies for MeshChatX --- Taskfile.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 5755745..119c9f1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -182,12 +182,29 @@ tasks: android-prepare: desc: Prepare Android build (copy meshchatx package and assets) - deps: [build, android-init] + deps: [build-frontend, android-init] cmds: - | - echo "Copying meshchatx package to Android project..." + echo "Copying meshchatx package and dependencies to Android project..." mkdir -p android/app/src/main/python + # Remove old copies to ensure fresh build + rm -rf android/app/src/main/python/meshchatx + rm -rf android/app/src/main/python/RNS + rm -rf android/app/src/main/python/LXMF + rm -rf android/app/src/main/python/LXST + + # Copy MeshChatX cp -r meshchatx android/app/src/main/python/ + + # Vendor RNS, LXMF, and LXST from local source (like Sideband does) + cp -r /mnt/projects/Reticulum/Reticulum/RNS android/app/src/main/python/ + cp -r /mnt/projects/Reticulum/LXMF/LXMF android/app/src/main/python/ + cp -r /mnt/projects/Reticulum/LXST/LXST android/app/src/main/python/ + + # Cleanup vendored packages (remove utilities/tests etc if needed, similar to Sideband) + rm -rf android/app/src/main/python/RNS/Utilities/RNS + rm -rf android/app/src/main/python/LXMF/Utilities/LXMF + rm -rf android/app/src/main/python/LXST/Utilities/LXST - | echo "Android build prepared. Don't forget to:" echo "1. Add Chaquopy license to android/local.properties"