- Fix sed -i syntax differences between macOS and Linux
- macOS requires empty string after -i flag: sed -i '' 'pattern' file
- Linux uses: sed -i 'pattern' file
- Add OSTYPE detection to handle both platforms correctly
- Fixes build script failures on macOS systems
Resolves: sed command a expects \ followed by text error on macOS
- Add daily-notification-test.sh for basic notification testing
- Add daily-notification-test.py for Python-based testing
- Add reboot-test.sh for automated reboot recovery testing
- Include comprehensive error handling and logging
- Add colored output for better user experience
- Support for different testing scenarios and edge cases
- Include ADB command validation and device connectivity checks
Scripts provide:
- Automated notification scheduling and verification
- Reboot recovery testing with proper timing
- Permission management testing
- Comprehensive logging and error reporting
- Cross-platform compatibility (bash and Python)
These scripts enable automated testing of the complete notification
system including boot receiver and app startup recovery mechanisms.
- Add detailed inline documentation in build-native.sh explaining the problem, why it happens, and the solution
- Update fix-capacitor-build.sh with comprehensive header documentation
- Include clear explanations of when the fix gets overwritten and how to restore it
- Add user-friendly output with emojis and clear messaging
- Document the automatic fix process with step-by-step explanations
This provides complete transparency about what the scripts do and why,
making it easy for developers to understand and maintain the fix.
- Create fix-capacitor-build.sh script to restore fixes after Capacitor operations
- Update build-native.sh to automatically apply fix when needed
- Add warnings to BUILDING.md about auto-generated file risks
- Document which Capacitor commands will overwrite manual fixes
This protects against losing the capacitor.build.gradle fix when running
npx cap sync, npx cap update, or other Capacitor CLI commands.
- Detect when this is a plugin development project vs full Capacitor app
- Skip Android test app build when Capacitor integration files are missing
- Provide helpful warnings about plugin development workflow
- Allow successful build completion for plugin source code only
This fixes the Gradle build failure when trying to build a plugin
development project that doesn't have a properly initialized test app.
- Update package.json with native-first architecture description
- Add new build scripts for platform-specific builds
- Update dependencies to align with TimeSafari PWA requirements
- Add development scripts for environment checking and setup
- Update package keywords to reflect native-first focus
- Add bundle size checking and API change detection
- Update version to 2.2.0 with comprehensive feature set
Dependencies: Capacitor 6.2.1, TypeScript 5.2.2, Jest 29.7.0
- Update AAR file verification path from 'build/outputs/aar/daily-notification-release.aar'
to 'capacitor-cordova-android-plugins/build/outputs/aar/capacitor-cordova-android-plugins-release.aar'
- Fixes build script error where it couldn't find the generated AAR file
- Android builds now complete successfully without false error messages
The build script was looking for a non-existent file path, causing the build to fail
even though the Android compilation was successful. This aligns the verification
path with the actual Gradle output structure.
- Add build scripts for Android and iOS platforms
- Remove duplicate web implementation (src/web.ts)
- Add proper TypeScript configuration
- Add module documentation to index.ts
- Clean up package.json scripts
This commit improves the project structure and build process by:
1. Adding dedicated build scripts for native platforms
2. Removing redundant web implementation
3. Adding proper TypeScript configuration with strict mode
4. Improving code documentation
5. Organizing package.json scripts
The changes maintain backward compatibility while improving
the development experience and code quality.