Commit graph

6 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 dbcbf9626f Fix date formatting and time range display for sermons and livestreams
- Add shared date formatting function to eliminate DRY violations
- Fix livestream cards showing raw ISO dates by using shared formatter
- Update formatted_start_time() to return time range (start - end) for events
- Switch events API to use v2 endpoint to avoid timezone conversion issues
- Map duration_string to duration field for frontend compatibility
2025-08-30 16:49:35 -04:00
RTSDA d83467939f Delete .github/workflows/ios-build.yml 2025-08-30 09:07:43 -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 0afe80ca8d Clean up repository structure
Some checks failed
iOS UniFFI Build / build-ios (push) Has been cancelled
Move build scripts, test scripts, examples, and generated files to scripts/ directory.
Update .gitignore to exclude scripts/ from future commits to keep repository clean.
2025-08-16 19:28:17 -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