Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update Plugin for Capacitor 7 Compatibility and Add Logger #370

Closed
3 of 25 tasks
fabiomartino opened this issue Dec 26, 2024 · 1 comment
Closed
3 of 25 tasks
Labels

Comments

@fabiomartino
Copy link

Plugin(s)

  • Android Foreground Service
  • Android Battery Optimization
  • App Review
  • App Shortcuts
  • App Update
  • Background Task
  • Badge
  • Bluetooth Low Energy
  • Cloudinary
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Live Update
  • Managed Configurations
  • NFC
  • Photo Editor
  • Printer
  • Screen Orientation
  • Speech Recognition
  • Speech Synthesis
  • Torch
  • Zip

Current problem

The plugin is not yet fully compatible with Capacitor 7. Additionally, the iOS plugin structure uses the traditional setup, which is less maintainable and not compatible with Swift Package Manager (SPM). Debugging on iOS could also be improved with a structured logging mechanism.

Preferred solution

  1. Refactor the iOS plugin structure to support Swift Package Manager (SPM), improving maintainability and integration.
  2. Update all plugin dependencies to their latest versions for better compatibility and performance.
  3. Prepare the plugin for Capacitor 7 compatibility while retaining Java 17 compatibility for the time being.
  4. Add a logger utility for iOS to enhance debugging and provide better error traceability.

Alternative options

  • Maintain the current iOS plugin structure, but this would limit SPM adoption and future flexibility.
  • Use a different logging approach (e.g., integrate a third-party logging framework) instead of a custom logger, but this might introduce unnecessary dependencies.

Additional context

This change aligns the plugin with Capacitor 7 standards and leverages modern tooling for iOS development. The refactoring to SPM is especially important as it allows the plugin to be more easily included in Xcode projects using the latest dependency management practices.

Before submitting

@robingenz
Copy link
Member

Thank you for creating this issue. We will add Capacitor 7 support to all plugins as soon as the first stable version is available. I will close this as duplicate of #372.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants