fix(ios): add Capacitor runtime files for test app

Created missing Capacitor JavaScript files required for plugin access:

capacitor.js:
- Copied native-bridge.js from Capacitor framework
- Provides Capacitor runtime and native bridge functionality
- Required for plugin communication with native code

capacitor_plugins.js:
- Created minimal plugin registration file
- Sets up window.Capacitor.Plugins structure
- Allows DailyNotification plugin to be accessed

Fixes:
- Black screen: Capacitor scripts now exist and can be loaded
- Plugin errors: window.Capacitor will be available after scripts load
- JavaScript errors: Missing script files were causing page load failures

Result: App should now load and display the test interface
This commit is contained in:
Matthew Raymer
2025-11-11 20:12:32 -08:00
parent 194029423b
commit cbf235d81f
2 changed files with 1048 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,14 @@
// Capacitor Plugins Registration
// This file is auto-generated by Capacitor, but we create a minimal version for testing
window.Capacitor = window.Capacitor || {};
window.Capacitor.Plugins = window.Capacitor.Plugins || {};
// Register DailyNotification plugin
// The actual plugin is registered by the native bridge
window.Capacitor.Plugins.DailyNotification = window.Capacitor.Plugins.DailyNotification || {
// Plugin methods will be available after native bridge loads
};
console.log('Capacitor plugins file loaded');