Commit graph

3 commits

Author SHA1 Message Date
Benjamin Slingo f04644856b Fix compilation errors and complete modular refactoring
Major changes:
• Remove Android support completely (deleted bindings/android/)
• Modularize uniffi_wrapper.rs (1,756→5 lines, split into focused modules)
• Reduce DRY violations in api.rs (620→292 lines)
• Fix all 20+ compilation errors to achieve clean build

Structural improvements:
• Split uniffi_wrapper into specialized modules: events, sermons, bible, contact, config, streaming, parsing
• Clean up dependencies (remove unused Android/JNI deps)
• Consolidate duplicate API functions
• Standardize error handling and validation

Bug fixes:
• Add missing ClientEvent fields (image_url, is_upcoming, is_today)
• Fix method name mismatches (update_bulletin→update_admin_bulletin)
• Correct ValidationResult struct (use errors field)
• Resolve async/await issues in bible.rs
• Fix event conversion type mismatches
• Add missing EventSubmission.image_mime_type field

The codebase now compiles cleanly with only warnings and is ready for further modular improvements.
2025-08-30 16:49:35 -04:00
Benjamin Slingo 9daf11c5af Consolidate web functionality into main church-core crate
Some checks failed
iOS UniFFI Build / build-ios (push) Has been cancelled
- Add api.rs with all web-specific API functions
- Add admin_login and validate_admin_token methods to ChurchApiClient
- Add image fields to EventSubmission model
- Add submit_event_with_image and submit_event_multipart functions
- Update test files for new EventSubmission fields

This consolidates the web church-core into the main crate to achieve single source of truth.
2025-08-30 08:49:49 -04:00
RTSDA 4d6b23beb3 Initial commit: Church Core Rust library
Some checks are pending
iOS UniFFI Build / build-ios (push) Waiting to run
Add church management API library with cross-platform support for iOS, Android, and WASM.
Features include event management, bulletin handling, contact forms, and authentication.
2025-08-16 19:25:01 -04:00