تحميل التطبيق على Android

ثبت التطبيق على جهازك لفتح المكتبة بسرعة والعمل كتطبيق مستقل.

تثبيت التطبيق على iPhone

افتح الموقع في Safari، ثم اضغط زر المشاركة ثم Add to Home Screen.

يوجد تحديث جديد للتطبيق

اضغط تحديث لتحميل أحدث نسخة من المكتبة.

تفعيل إشعارات التطبيق

اسمح بالإشعارات ليصلك أي تنبيه جديد من الكنيسة.

للمطورين · Developers

API Setup

دليل ربط التطبيقات والمزامنة مع مكتبة النصوص القبطية.

Download SQLite content, verify it, and read it locally. Public read-only access; no API key or login required.

فتح قائمة الملفات · JSON manifest

١. اكتشف الملفات المتاحة

اطلب القائمة التالية من السيرفر الخاص بك. الروابط داخل JSON نسبية لنفس الدومين. القائمة تشمل اسم كل ملف، حجمه بالبايت، وبصمة sha256 للتحقق من سلامة التنزيل.

GET https://liturgy.stanthonymaadi.com/api/dataAccept: application/json

Resolve each files[].url against the manifest URL. Save the filename, size_bytes and sha256. Check the manifest on demand or daily; download only changed files.

٢. نزّل وتحقق قبل استبدال النسخة المحلية

curl --fail --location --output core.db.part 'https://liturgy.stanthonymaadi.com/api/data/core.db'
# Compare SHA-256 with files[].sha256 from the manifest:
sha256sum core.db.part
# Check with SQLite; expect: ok
sqlite3 core.db.part 'PRAGMA quick_check;'
# Replace only after size, hash and SQLite validation all pass.
mv core.db.part core.db

نزّل الملفات المطلوبة إلى مجلد مؤقت، وتحقق من الحجم والبصمة وSQLite، ثم بدّل مجموعة الملفات أثناء توقف القراء أو باستخدام مجلد إصدار جديد. لا تستبدل ملفًا مفتوحًا أثناء المزامنة، ولا تمسح النسخة السليمة عند فشل التنزيل.

GET and HEAD are supported. Database responses include an ETag equal to the quoted SHA-256. Send If-None-Match on subsequent requests; 304 means unchanged. Full downloads are supported; byte-range resume is not implemented. If deployment occurs during sync, refetch the manifest and retry any checksum mismatch.

٣. اختَر قواعد البيانات المطلوبة

الملفالمحتوى / الجداول الرئيسية
core.dbPrayers and liturgy navigation
bible.dbBible books and verses
katameros.dbDaily readings
synaxarion.dbSaints and commemorations
agpeya.dbAgpeya hours and prayers
library.dbLibrary documents
psalmody.dbAnnual and Kiahk psalmody
tafseer_old.dbOld Testament commentary and introductions
tafseer_new.dbNew Testament commentary and introductions

الملفات مستقلة بصيغة SQLite 3. افتحها للقراءة فقط. core.db يحتوي prayers وprayer_contents وindex_prayers وeid_index_map. الأجبية في agpeya_hours وagpeya_sections، والقطمارس في katameros_readings، والسنكسار في synaxarion.

sqlite3 -readonly core.db
.tables
.schema prayers
SELECT * FROM prayers LIMIT 1;
ATTACH DATABASE 'agpeya.db' AS agpeya;
SELECT * FROM agpeya.agpeya_hours ORDER BY seq;

يوجد تسع قواعد إجمالًا؛ ليس مطلوبًا تنزيلها كلها لو تطبيقك يحتاج مجموعة محددة. عند قراءة باقي الملفات، استكشف الجداول باستخدام .tables و.schema. خط القبطي متاح في ABRAAM.ttf؛ وملفات Noto مع ترخيصها داخل assets/fonts/coptic/.

الروابط القديمة ومشكلة 403

روابط الملفات المحددة مثل /data/db/core.db مدعومة للتوافق مع المزامنة القديمة. استخدم /api/data للربط الجديد. باقي الملفات الداخلية ومجلدات المشروع ليست متاحة للتصفح.

403 on every legacy database URL after the Docker update was caused by the private data-directory rule. This release routes the nine approved filenames through the export handler. No key is needed. If 403 persists after deploying, check aaPanel/outer Nginx rules and confirm the updated containers are serving the domain. Do not disable protection for the whole data directory.

  • 200: الملف أو القائمة متاحة.
  • 304: الملف لم يتغيّر؛ استخدم نسختك الحالية.
  • 404: اسم غير مدعوم؛ لا تستخدم مسارًا عشوائيًا.
  • 405: استخدم GET أو HEAD فقط.
  • 503: ملف غير متاح مؤقتًا؛ احتفظ بالنسخة الحالية وأعد المحاولة لاحقًا.

الربط المقصود هنا من سيرفر إلى سيرفر؛ لا يحتاج CORS. إرسال الطلب مباشرة من متصفح على دومين آخر غير مفعّل عبر CORS. الملفات عامة لمن يملك الرابط، ولا يوجد مفتاح سري داخل الصفحة.

JSON endpoints أخرى

التنزيلات هي نسخ من محتوى هذا التطبيق، وليست خدمة رفع أو تعديل. راجع أذونات المصادر قبل إعادة نشر المحتوى؛ إتاحة التنزيل لا تضيف ترخيصًا جديدًا للمحتوى.