Skip to content

[desktop_drop]: Remove warnings, migrate macOS plugin to SPM, and regenerate example for web #403

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

Merged
merged 4 commits into from
Apr 18, 2025

Conversation

vicajilau
Copy link
Contributor

@vicajilau vicajilau commented Apr 15, 2025

@crossle This PR includes several improvements and maintenance updates across the project:

  • Removed all warnings across the main plugin and example projects to ensure cleaner builds and better developer experience.
  • Regenerated the web example project to resolve deprecation warnings related to outdated dependencies and configuration.
  • Migrated the macOS plugin to use Swift Package Manager (SPM) instead of legacy integration, aligning with modern plugin best practices.
  • Updated the macOS example project to reflect the new SPM-based plugin integration and ensure compatibility.

I have tested this on web and macOS specially and everything works perfectly 🚀

@vicajilau vicajilau changed the title Remove warnings, migrate macOS plugin to SPM, and regenerate example for web [desktop_drop]: Remove warnings, migrate macOS plugin to SPM, and regenerate example for web Apr 15, 2025
@crossle crossle requested review from Copilot and boyan01 April 16, 2025 04:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves build hygiene and modernizes plugin integration and examples by removing warnings, updating configurations, and migrating to SPM. Key changes include updating the macOS package configuration, regenerating the web example to remove deprecated scripts, and enhancing the macOS example with secure state restoration.

Reviewed Changes

Copilot reviewed 6 out of 15 changed files in this pull request and generated no comments.

File Description
packages/desktop_drop/macos/desktop_drop/Package.swift New package file for the macOS plugin migrated to SPM with updated Swift tools version.
packages/desktop_drop/example/web/index.html Updated web example by replacing outdated iOS meta tags and removing obsolete flutter scripts.
packages/desktop_drop/example/macos/Runner/AppDelegate.swift Enhanced the macOS example by adding secure state restoration support.
Files not reviewed (9)
  • packages/desktop_drop/example/.metadata: Language not supported
  • packages/desktop_drop/example/macos/Flutter/Flutter-Debug.xcconfig: Language not supported
  • packages/desktop_drop/example/macos/Flutter/Flutter-Release.xcconfig: Language not supported
  • packages/desktop_drop/example/macos/Podfile: Language not supported
  • packages/desktop_drop/example/macos/Runner.xcodeproj/project.pbxproj: Language not supported
  • packages/desktop_drop/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: Language not supported
  • packages/desktop_drop/lib/src/channel.dart: Language not supported
  • packages/desktop_drop/lib/src/drop_target.dart: Language not supported
  • packages/desktop_drop/macos/desktop_drop/Sources/desktop_drop/PrivacyInfo.xcprivacy: Language not supported
Comments suppressed due to low confidence (1)

packages/desktop_drop/macos/desktop_drop/Package.swift:12

  • [nitpick] Consider aligning the naming conventions between the library name and target name by using a consistent separator (either hyphen or underscore) to improve clarity.
.library(name: "desktop-drop", targets: ["desktop_drop"])

@boyan01
Copy link
Contributor

boyan01 commented Apr 18, 2025

LGTM, thanks for your contribution

@boyan01 boyan01 merged commit 8d0b608 into MixinNetwork:main Apr 18, 2025
@vicajilau vicajilau deleted the feature/fixing-web-issue branch April 18, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants