feat(android): Capacitor APK build + native save/share bridge

- android/ — Capacitor project (build/, local.properties ignored)
- app/js/native.js — bridge สำหรับ APK: savePhoto/saveZip/shareItems ผ่าน Filesystem+Share
- app/js/csv.js — นำเข้าโฟลเดอร์หลายรายการจาก CSV (site,letter,datetime,name)
- app/js/orient.js — จัดการ orientation ของ preview/กล้อง
- app/manual.html + APK.md — คู่มือใช้งานและวิธี build APK
- app/templates/folders-template.csv — เทมเพลต CSV
- package.json / package-lock.json / capacitor.config.json / scripts/build-apk.sh
- ปรับ ui, camera, exif, archive, db, naming, main, sw + css/README ตามงานข้างบน
This commit is contained in:
Bkk1234 committed 2026-11-20 08:50:42 +07:00
1 parent a0bccc2316
commit 6f146aef59
75 files changed
+4637 -151

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# สร้าง APK (ต้องมี JDK 17 + Android SDK; node/npm มีอยู่แล้ว)
set -euo pipefail
cd "$(dirname "$0")/.."
echo "== 1) ติดตั้ง dependencies =="
npm install
if [ ! -d android ]; then
echo "== 2) เพิ่ม platform android =="
npx cap add android
fi
echo "== 3) copy เว็บแอป (app/) เข้า android =="
npx cap sync android
echo "== 4) build APK (debug) =="
cd android
if [ -f gradlew.bat ]; then ./gradlew.bat assembleDebug; else ./gradlew assembleDebug; fi
APK="app/build/outputs/apk/debug/app-debug.apk"
echo
echo "APK: android/$APK"
ls -lh "$APK" || true