From e63cc09fd91f674f36997ceb91d94e66dfba4a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=81=A5=E8=8E=B9?= Date: Sun, 28 Jan 2024 09:49:55 +0800 Subject: [PATCH] chore: Move source to packages/protocol_handler --- .github/workflows/build.yml | 56 +++- .github/workflows/lint.yml | 21 +- .github/workflows/test.yml | 20 ++ .gitignore | 31 +- LICENSE | 2 +- analysis_options.yaml | 22 -- example/pubspec.lock | 268 ------------------ melos.yaml | 35 +++ packages/protocol_handler/.gitignore | 29 ++ .../protocol_handler/.metadata | 0 .../protocol_handler/CHANGELOG.md | 0 packages/protocol_handler/LICENSE | 21 ++ packages/protocol_handler/README-ZH.md | 1 + packages/protocol_handler/README.md | 1 + .../protocol_handler/analysis_options.yaml | 1 + .../protocol_handler/android}/.gitignore | 0 .../protocol_handler/android}/build.gradle | 0 .../protocol_handler/android}/settings.gradle | 0 .../android}/src/main/AndroidManifest.xml | 0 .../ProtocolHandlerPlugin.java | 0 .../dart_dependency_validator.yaml | 0 .../protocol_handler/example}/.gitignore | 0 .../protocol_handler/example}/.metadata | 0 .../protocol_handler/example}/README.md | 0 .../example}/analysis_options.yaml | 0 .../example}/android/.gitignore | 0 .../example}/android/app/build.gradle | 0 .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../MainActivity.java | 0 .../res/drawable-v21/launch_background.xml | 0 .../main/res/drawable/launch_background.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../app/src/main/res/values-night/styles.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../app/src/profile/AndroidManifest.xml | 0 .../example}/android/build.gradle | 0 .../example}/android/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.properties | 0 .../example}/android/settings.gradle | 0 .../protocol_handler/example}/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../example}/ios/Flutter/Debug.xcconfig | 0 .../example}/ios/Flutter/Release.xcconfig | 0 .../protocol_handler/example}/ios/Podfile | 0 .../example}/ios/Podfile.lock | 0 .../ios/Runner.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../example}/ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../example}/ios/Runner/Info.plist | 0 .../ios/Runner/Runner-Bridging-Header.h | 0 .../protocol_handler/example}/lib/main.dart | 0 .../example}/lib/pages/home.dart | 0 .../example}/macos/.gitignore | 0 .../macos/Flutter/Flutter-Debug.xcconfig | 0 .../macos/Flutter/Flutter-Release.xcconfig | 0 .../Flutter/GeneratedPluginRegistrant.swift | 0 .../protocol_handler/example}/macos/Podfile | 0 .../example}/macos/Podfile.lock | 0 .../macos/Runner.xcodeproj/project.pbxproj | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../example}/macos/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../AppIcon.appiconset/app_icon_1024.png | Bin .../AppIcon.appiconset/app_icon_128.png | Bin .../AppIcon.appiconset/app_icon_16.png | Bin .../AppIcon.appiconset/app_icon_256.png | Bin .../AppIcon.appiconset/app_icon_32.png | Bin .../AppIcon.appiconset/app_icon_512.png | Bin .../AppIcon.appiconset/app_icon_64.png | Bin .../macos/Runner/Base.lproj/MainMenu.xib | 0 .../macos/Runner/Configs/AppInfo.xcconfig | 0 .../macos/Runner/Configs/Debug.xcconfig | 0 .../macos/Runner/Configs/Release.xcconfig | 0 .../macos/Runner/Configs/Warnings.xcconfig | 0 .../macos/Runner/DebugProfile.entitlements | 0 .../example}/macos/Runner/Info.plist | 0 .../macos/Runner/MainFlutterWindow.swift | 0 .../macos/Runner/Release.entitlements | 0 .../protocol_handler/example}/pubspec.yaml | 0 .../example}/test/widget_test.dart | 0 .../protocol_handler/example}/web/favicon.png | Bin .../example}/web/icons/Icon-192.png | Bin .../example}/web/icons/Icon-512.png | Bin .../example}/web/icons/Icon-maskable-192.png | Bin .../example}/web/icons/Icon-maskable-512.png | Bin .../protocol_handler/example}/web/index.html | 0 .../example}/web/manifest.json | 0 .../example}/windows/.gitignore | 0 .../example}/windows/CMakeLists.txt | 0 .../example}/windows/flutter/CMakeLists.txt | 0 .../flutter/generated_plugin_registrant.cc | 0 .../flutter/generated_plugin_registrant.h | 0 .../windows/flutter/generated_plugins.cmake | 0 .../example}/windows/runner/CMakeLists.txt | 0 .../example}/windows/runner/Runner.rc | 0 .../windows/runner/flutter_window.cpp | 0 .../example}/windows/runner/flutter_window.h | 0 .../example}/windows/runner/main.cpp | 0 .../example}/windows/runner/resource.h | 0 .../windows/runner/resources/app_icon.ico | Bin .../windows/runner/runner.exe.manifest | 0 .../example}/windows/runner/utils.cpp | 0 .../example}/windows/runner/utils.h | 0 .../example}/windows/runner/win32_window.cpp | 0 .../example}/windows/runner/win32_window.h | 0 .../protocol_handler/ios}/.gitignore | 0 .../protocol_handler/ios}/Assets/.gitkeep | 0 .../ios}/Classes/ProtocolHandlerPlugin.h | 0 .../ios}/Classes/ProtocolHandlerPlugin.m | 0 .../Classes/SwiftProtocolHandlerPlugin.swift | 0 .../ios}/protocol_handler.podspec | 0 .../lib}/protocol_handler.dart | 0 .../lib}/src/protocol_handler.dart | 0 .../lib}/src/protocol_listener.dart | 0 .../lib}/src/protocol_registrar.dart | 0 .../src/protocol_registrar_impl_android.dart | 0 .../lib}/src/protocol_registrar_impl_ios.dart | 0 .../src/protocol_registrar_impl_macos.dart | 0 .../src/protocol_registrar_impl_windows.dart | 0 .../protocol_registrar_impl_windows_noop.dart | 0 packages/protocol_handler/pubspec.yaml | 38 +++ .../Classes/ProtocolHandlerPlugin.swift | 0 .../test/macos}/protocol_handler.podspec | 0 .../test}/protocol_handler_test.dart | 0 .../protocol_handler/windows}/.gitignore | 0 .../protocol_handler/windows}/CMakeLists.txt | 0 .../protocol_handler_plugin.h | 0 .../windows}/protocol_handler_plugin.cpp | 0 pubspec.yaml | 37 +-- 166 files changed, 209 insertions(+), 374 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 analysis_options.yaml delete mode 100644 example/pubspec.lock create mode 100644 melos.yaml create mode 100644 packages/protocol_handler/.gitignore rename .metadata => packages/protocol_handler/.metadata (100%) rename CHANGELOG.md => packages/protocol_handler/CHANGELOG.md (100%) create mode 100644 packages/protocol_handler/LICENSE create mode 120000 packages/protocol_handler/README-ZH.md create mode 120000 packages/protocol_handler/README.md create mode 100644 packages/protocol_handler/analysis_options.yaml rename {android => packages/protocol_handler/android}/.gitignore (100%) rename {android => packages/protocol_handler/android}/build.gradle (100%) rename {android => packages/protocol_handler/android}/settings.gradle (100%) rename {android => packages/protocol_handler/android}/src/main/AndroidManifest.xml (100%) rename {android => packages/protocol_handler/android}/src/main/java/org/leanflutter/plugins/protocol_handler/ProtocolHandlerPlugin.java (100%) rename dart_dependency_validator.yaml => packages/protocol_handler/dart_dependency_validator.yaml (100%) rename {example => packages/protocol_handler/example}/.gitignore (100%) rename {example => packages/protocol_handler/example}/.metadata (100%) rename {example => packages/protocol_handler/example}/README.md (100%) rename {example => packages/protocol_handler/example}/analysis_options.yaml (100%) rename {example => packages/protocol_handler/example}/android/.gitignore (100%) rename {example => packages/protocol_handler/example}/android/app/build.gradle (100%) rename {example => packages/protocol_handler/example}/android/app/src/debug/AndroidManifest.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/AndroidManifest.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/java/org/leanflutter/plugins/protocol_handler_example/MainActivity.java (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/drawable-v21/launch_background.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/drawable/launch_background.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/values-night/styles.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/main/res/values/styles.xml (100%) rename {example => packages/protocol_handler/example}/android/app/src/profile/AndroidManifest.xml (100%) rename {example => packages/protocol_handler/example}/android/build.gradle (100%) rename {example => packages/protocol_handler/example}/android/gradle.properties (100%) rename {example => packages/protocol_handler/example}/android/gradle/wrapper/gradle-wrapper.properties (100%) rename {example => packages/protocol_handler/example}/android/settings.gradle (100%) rename {example => packages/protocol_handler/example}/ios/.gitignore (100%) rename {example => packages/protocol_handler/example}/ios/Flutter/AppFrameworkInfo.plist (100%) rename {example => packages/protocol_handler/example}/ios/Flutter/Debug.xcconfig (100%) rename {example => packages/protocol_handler/example}/ios/Flutter/Release.xcconfig (100%) rename {example => packages/protocol_handler/example}/ios/Podfile (100%) rename {example => packages/protocol_handler/example}/ios/Podfile.lock (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcodeproj/project.pbxproj (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcworkspace/contents.xcworkspacedata (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {example => packages/protocol_handler/example}/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {example => packages/protocol_handler/example}/ios/Runner/AppDelegate.swift (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Base.lproj/Main.storyboard (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Info.plist (100%) rename {example => packages/protocol_handler/example}/ios/Runner/Runner-Bridging-Header.h (100%) rename {example => packages/protocol_handler/example}/lib/main.dart (100%) rename {example => packages/protocol_handler/example}/lib/pages/home.dart (100%) rename {example => packages/protocol_handler/example}/macos/.gitignore (100%) rename {example => packages/protocol_handler/example}/macos/Flutter/Flutter-Debug.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Flutter/Flutter-Release.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Flutter/GeneratedPluginRegistrant.swift (100%) rename {example => packages/protocol_handler/example}/macos/Podfile (100%) rename {example => packages/protocol_handler/example}/macos/Podfile.lock (100%) rename {example => packages/protocol_handler/example}/macos/Runner.xcodeproj/project.pbxproj (100%) rename {example => packages/protocol_handler/example}/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {example => packages/protocol_handler/example}/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename {example => packages/protocol_handler/example}/macos/Runner.xcworkspace/contents.xcworkspacedata (100%) rename {example => packages/protocol_handler/example}/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {example => packages/protocol_handler/example}/macos/Runner/AppDelegate.swift (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Base.lproj/MainMenu.xib (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Configs/AppInfo.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Configs/Debug.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Configs/Release.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Configs/Warnings.xcconfig (100%) rename {example => packages/protocol_handler/example}/macos/Runner/DebugProfile.entitlements (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Info.plist (100%) rename {example => packages/protocol_handler/example}/macos/Runner/MainFlutterWindow.swift (100%) rename {example => packages/protocol_handler/example}/macos/Runner/Release.entitlements (100%) rename {example => packages/protocol_handler/example}/pubspec.yaml (100%) rename {example => packages/protocol_handler/example}/test/widget_test.dart (100%) rename {example => packages/protocol_handler/example}/web/favicon.png (100%) rename {example => packages/protocol_handler/example}/web/icons/Icon-192.png (100%) rename {example => packages/protocol_handler/example}/web/icons/Icon-512.png (100%) rename {example => packages/protocol_handler/example}/web/icons/Icon-maskable-192.png (100%) rename {example => packages/protocol_handler/example}/web/icons/Icon-maskable-512.png (100%) rename {example => packages/protocol_handler/example}/web/index.html (100%) rename {example => packages/protocol_handler/example}/web/manifest.json (100%) rename {example => packages/protocol_handler/example}/windows/.gitignore (100%) rename {example => packages/protocol_handler/example}/windows/CMakeLists.txt (100%) rename {example => packages/protocol_handler/example}/windows/flutter/CMakeLists.txt (100%) rename {example => packages/protocol_handler/example}/windows/flutter/generated_plugin_registrant.cc (100%) rename {example => packages/protocol_handler/example}/windows/flutter/generated_plugin_registrant.h (100%) rename {example => packages/protocol_handler/example}/windows/flutter/generated_plugins.cmake (100%) rename {example => packages/protocol_handler/example}/windows/runner/CMakeLists.txt (100%) rename {example => packages/protocol_handler/example}/windows/runner/Runner.rc (100%) rename {example => packages/protocol_handler/example}/windows/runner/flutter_window.cpp (100%) rename {example => packages/protocol_handler/example}/windows/runner/flutter_window.h (100%) rename {example => packages/protocol_handler/example}/windows/runner/main.cpp (100%) rename {example => packages/protocol_handler/example}/windows/runner/resource.h (100%) rename {example => packages/protocol_handler/example}/windows/runner/resources/app_icon.ico (100%) rename {example => packages/protocol_handler/example}/windows/runner/runner.exe.manifest (100%) rename {example => packages/protocol_handler/example}/windows/runner/utils.cpp (100%) rename {example => packages/protocol_handler/example}/windows/runner/utils.h (100%) rename {example => packages/protocol_handler/example}/windows/runner/win32_window.cpp (100%) rename {example => packages/protocol_handler/example}/windows/runner/win32_window.h (100%) rename {ios => packages/protocol_handler/ios}/.gitignore (100%) rename {ios => packages/protocol_handler/ios}/Assets/.gitkeep (100%) rename {ios => packages/protocol_handler/ios}/Classes/ProtocolHandlerPlugin.h (100%) rename {ios => packages/protocol_handler/ios}/Classes/ProtocolHandlerPlugin.m (100%) rename {ios => packages/protocol_handler/ios}/Classes/SwiftProtocolHandlerPlugin.swift (100%) rename {ios => packages/protocol_handler/ios}/protocol_handler.podspec (100%) rename {lib => packages/protocol_handler/lib}/protocol_handler.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_handler.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_listener.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar_impl_android.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar_impl_ios.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar_impl_macos.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar_impl_windows.dart (100%) rename {lib => packages/protocol_handler/lib}/src/protocol_registrar_impl_windows_noop.dart (100%) create mode 100644 packages/protocol_handler/pubspec.yaml rename {macos => packages/protocol_handler/test/macos}/Classes/ProtocolHandlerPlugin.swift (100%) rename {macos => packages/protocol_handler/test/macos}/protocol_handler.podspec (100%) rename {test => packages/protocol_handler/test}/protocol_handler_test.dart (100%) rename {windows => packages/protocol_handler/windows}/.gitignore (100%) rename {windows => packages/protocol_handler/windows}/CMakeLists.txt (100%) rename {windows => packages/protocol_handler/windows}/include/protocol_handler/protocol_handler_plugin.h (100%) rename {windows => packages/protocol_handler/windows}/protocol_handler_plugin.cpp (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa5551e..4a26e74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: build on: push: - branches: [main] + branches: [main, dev] pull_request: branches: [main] @@ -10,23 +10,59 @@ jobs: build-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 + with: + flutter-version: "3.16.8" + channel: "stable" - run: | - sudo apt-get update -y + sudo apt-get update sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev - - run: flutter config --enable-linux-desktop - - run: cd example && flutter build linux -v + sudo apt-get install -y keybinder-3.0 + - uses: bluefireteam/melos-action@v2 + - working-directory: ./packages/screen_capturer/example + run: | + melos bs + flutter build linux --release + build-macos: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 - - run: flutter config --enable-macos-desktop - - run: cd example && flutter build macos -v + with: + flutter-version: "3.16.8" + channel: "stable" + - uses: bluefireteam/melos-action@v2 + - working-directory: ./packages/screen_capturer/example + run: | + melos bs + flutter build macos --release + + build-web: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + flutter-version: "3.16.8" + channel: "stable" + - uses: bluefireteam/melos-action@v2 + - working-directory: ./packages/screen_capturer/example + run: | + melos bs + flutter build web --release + build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 - - run: cd example && flutter build windows -v + with: + flutter-version: "3.16.8" + channel: "stable" + - uses: bluefireteam/melos-action@v2 + - working-directory: ./packages/screen_capturer/example + run: | + melos bs + flutter build windows --release diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b778594..8d68ba7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,7 @@ name: lint on: push: - branches: [main] + branches: [main, dev] pull_request: branches: [main] @@ -13,8 +13,10 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: + flutter-version: "3.16.8" channel: "stable" - - run: flutter analyze --fatal-infos + - uses: bluefireteam/melos-action@v2 + - run: melos run analyze format: runs-on: ubuntu-latest @@ -22,15 +24,8 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: + flutter-version: "3.16.8" channel: "stable" - - run: dart format . --fix --set-exit-if-changed - - dependency_validator: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 - with: - channel: "stable" - - run: flutter pub get - - run: flutter pub run dependency_validator + cache: true + - uses: bluefireteam/melos-action@v2 + - run: melos run format-check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..617f89a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: test + +on: + push: + branches: [main, dev] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + flutter-version: "3.16.8" + channel: "stable" + cache: true + - uses: bluefireteam/melos-action@v2 + - run: melos run test --no-select diff --git a/.gitignore b/.gitignore index 01c49d5..fa08f05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,29 +1,6 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ - -# IntelliJ related -*.iml -*.ipr -*.iws +.dart_tool/ .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -.vscode/ - -# Flutter/Dart/Pub related -# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. -/pubspec.lock -**/doc/api/ -.dart_tool/ -.packages -build/ +*.iml +pubspec_overrides.yaml +pubspec.lock diff --git a/LICENSE b/LICENSE index 03d8b0a..eea05ab 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 LiJianying +Copyright (c) 2022-2024 LiJianying Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/analysis_options.yaml b/analysis_options.yaml deleted file mode 100644 index ef8a58c..0000000 --- a/analysis_options.yaml +++ /dev/null @@ -1,22 +0,0 @@ -include: package:flutter_lints/flutter.yaml - -linter: - rules: - ## Error Rules - - always_use_package_imports - ## Style rules - - directives_ordering - - eol_at_end_of_file - - file_names - - flutter_style_todos - - library_names - - library_prefixes - - prefer_is_empty - - prefer_is_not_empty - - prefer_is_not_operator - - prefer_null_aware_method_calls - - prefer_single_quotes - - sort_constructors_first - - sort_unnamed_constructors_first - ## Pub rules - - sort_pub_dependencies diff --git a/example/pubspec.lock b/example/pubspec.lock deleted file mode 100644 index 74b6fe1..0000000 --- a/example/pubspec.lock +++ /dev/null @@ -1,268 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bot_toast: - dependency: "direct main" - description: - name: bot_toast - sha256: "1a432d6e4bad2282615403134708b232ef68ae99b0b3d8604fca85699a75b4b5" - url: "https://pub.dev" - source: hosted - version: "4.0.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: "1989d917fbe8e6b39806207df5a3fdd3d816cbd090fac2ce26fb45e9a71476e5" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - sha256: "35d0f481d939de0d640b3db9a7aa36a52cd22054a798a73b4f50bdad5ce12678" - url: "https://pub.dev" - source: hosted - version: "1.1.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 - url: "https://pub.dev" - source: hosted - version: "1.0.4" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "04be76c4a4bb50f14904e64749237e541e7c7bcf7ec0b196907322ab5d2fc739" - url: "https://pub.dev" - source: hosted - version: "9.0.16" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: b06739349ec2477e943055aea30172c5c7000225f79dad4702e2ec0eda79a6ff - url: "https://pub.dev" - source: hosted - version: "1.0.5" - lints: - dependency: transitive - description: - name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c - url: "https://pub.dev" - source: hosted - version: "1.0.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" - url: "https://pub.dev" - source: hosted - version: "0.12.16" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.dev" - source: hosted - version: "0.8.0" - meta: - dependency: transitive - description: - name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - path: - dependency: transitive - description: - name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" - source: hosted - version: "1.8.3" - preference_list: - dependency: "direct main" - description: - name: preference_list - sha256: d3419b2ec57a6ad2156bd682a46cf3194bf162b36bb013790c7b29e6438f107a - url: "https://pub.dev" - source: hosted - version: "0.0.1" - protocol_handler: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.1.6" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" - url: "https://pub.dev" - source: hosted - version: "0.6.1" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" - web: - dependency: transitive - description: - name: web - sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa - url: "https://pub.dev" - source: hosted - version: "0.4.0" - win32: - dependency: transitive - description: - name: win32 - sha256: c0e3a4f7be7dae51d8f152230b86627e3397c1ba8c3fa58e63d44a9f3edc9cef - url: "https://pub.dev" - source: hosted - version: "2.6.1" - win32_registry: - dependency: transitive - description: - name: win32_registry - sha256: "66e78552f17501aced68fe77425b13156998f1bd3d58f1cd8cd0af2dbe4520e3" - url: "https://pub.dev" - source: hosted - version: "1.0.2" - window_manager: - dependency: "direct main" - description: - name: window_manager - sha256: "56d98e345d6ee3fbcc155d8f02d16cc730cc9299fc658420335ddb85389cb6dc" - url: "https://pub.dev" - source: hosted - version: "0.2.0" -sdks: - dart: ">=3.2.0-194.0.dev <4.0.0" - flutter: ">=3.16.0" diff --git a/melos.yaml b/melos.yaml new file mode 100644 index 0000000..71422f7 --- /dev/null +++ b/melos.yaml @@ -0,0 +1,35 @@ +name: screen_capturer_workspace +repository: https://github.com/leanflutter/screen_capturer + +packages: + - examples/** + - packages/** + +command: + bootstrap: + # Uses the pubspec_overrides.yaml instead of having Melos modifying the lock file. + usePubspecOverrides: true + +scripts: + analyze: + exec: flutter analyze --fatal-infos + description: Run `flutter analyze` for all packages. + + test: + exec: flutter test + description: Run `flutter test` for a specific package. + packageFilters: + dirExists: + - test + + format: + exec: dart format . --fix + description: Run `dart format` for all packages. + + format-check: + exec: dart format . --fix --set-exit-if-changed + description: Run `dart format` checks for all packages. + + fix: + exec: dart fix . --apply + description: Run `dart fix` for all packages. diff --git a/packages/protocol_handler/.gitignore b/packages/protocol_handler/.gitignore new file mode 100644 index 0000000..01c49d5 --- /dev/null +++ b/packages/protocol_handler/.gitignore @@ -0,0 +1,29 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +.vscode/ + +# Flutter/Dart/Pub related +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.packages +build/ diff --git a/.metadata b/packages/protocol_handler/.metadata similarity index 100% rename from .metadata rename to packages/protocol_handler/.metadata diff --git a/CHANGELOG.md b/packages/protocol_handler/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to packages/protocol_handler/CHANGELOG.md diff --git a/packages/protocol_handler/LICENSE b/packages/protocol_handler/LICENSE new file mode 100644 index 0000000..eea05ab --- /dev/null +++ b/packages/protocol_handler/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022-2024 LiJianying + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/protocol_handler/README-ZH.md b/packages/protocol_handler/README-ZH.md new file mode 120000 index 0000000..7da944f --- /dev/null +++ b/packages/protocol_handler/README-ZH.md @@ -0,0 +1 @@ +../../README-ZH.md \ No newline at end of file diff --git a/packages/protocol_handler/README.md b/packages/protocol_handler/README.md new file mode 120000 index 0000000..fe84005 --- /dev/null +++ b/packages/protocol_handler/README.md @@ -0,0 +1 @@ +../../README.md \ No newline at end of file diff --git a/packages/protocol_handler/analysis_options.yaml b/packages/protocol_handler/analysis_options.yaml new file mode 100644 index 0000000..095b1d6 --- /dev/null +++ b/packages/protocol_handler/analysis_options.yaml @@ -0,0 +1 @@ +include: package:mostly_reasonable_lints/flutter.yaml diff --git a/android/.gitignore b/packages/protocol_handler/android/.gitignore similarity index 100% rename from android/.gitignore rename to packages/protocol_handler/android/.gitignore diff --git a/android/build.gradle b/packages/protocol_handler/android/build.gradle similarity index 100% rename from android/build.gradle rename to packages/protocol_handler/android/build.gradle diff --git a/android/settings.gradle b/packages/protocol_handler/android/settings.gradle similarity index 100% rename from android/settings.gradle rename to packages/protocol_handler/android/settings.gradle diff --git a/android/src/main/AndroidManifest.xml b/packages/protocol_handler/android/src/main/AndroidManifest.xml similarity index 100% rename from android/src/main/AndroidManifest.xml rename to packages/protocol_handler/android/src/main/AndroidManifest.xml diff --git a/android/src/main/java/org/leanflutter/plugins/protocol_handler/ProtocolHandlerPlugin.java b/packages/protocol_handler/android/src/main/java/org/leanflutter/plugins/protocol_handler/ProtocolHandlerPlugin.java similarity index 100% rename from android/src/main/java/org/leanflutter/plugins/protocol_handler/ProtocolHandlerPlugin.java rename to packages/protocol_handler/android/src/main/java/org/leanflutter/plugins/protocol_handler/ProtocolHandlerPlugin.java diff --git a/dart_dependency_validator.yaml b/packages/protocol_handler/dart_dependency_validator.yaml similarity index 100% rename from dart_dependency_validator.yaml rename to packages/protocol_handler/dart_dependency_validator.yaml diff --git a/example/.gitignore b/packages/protocol_handler/example/.gitignore similarity index 100% rename from example/.gitignore rename to packages/protocol_handler/example/.gitignore diff --git a/example/.metadata b/packages/protocol_handler/example/.metadata similarity index 100% rename from example/.metadata rename to packages/protocol_handler/example/.metadata diff --git a/example/README.md b/packages/protocol_handler/example/README.md similarity index 100% rename from example/README.md rename to packages/protocol_handler/example/README.md diff --git a/example/analysis_options.yaml b/packages/protocol_handler/example/analysis_options.yaml similarity index 100% rename from example/analysis_options.yaml rename to packages/protocol_handler/example/analysis_options.yaml diff --git a/example/android/.gitignore b/packages/protocol_handler/example/android/.gitignore similarity index 100% rename from example/android/.gitignore rename to packages/protocol_handler/example/android/.gitignore diff --git a/example/android/app/build.gradle b/packages/protocol_handler/example/android/app/build.gradle similarity index 100% rename from example/android/app/build.gradle rename to packages/protocol_handler/example/android/app/build.gradle diff --git a/example/android/app/src/debug/AndroidManifest.xml b/packages/protocol_handler/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from example/android/app/src/debug/AndroidManifest.xml rename to packages/protocol_handler/example/android/app/src/debug/AndroidManifest.xml diff --git a/example/android/app/src/main/AndroidManifest.xml b/packages/protocol_handler/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from example/android/app/src/main/AndroidManifest.xml rename to packages/protocol_handler/example/android/app/src/main/AndroidManifest.xml diff --git a/example/android/app/src/main/java/org/leanflutter/plugins/protocol_handler_example/MainActivity.java b/packages/protocol_handler/example/android/app/src/main/java/org/leanflutter/plugins/protocol_handler_example/MainActivity.java similarity index 100% rename from example/android/app/src/main/java/org/leanflutter/plugins/protocol_handler_example/MainActivity.java rename to packages/protocol_handler/example/android/app/src/main/java/org/leanflutter/plugins/protocol_handler_example/MainActivity.java diff --git a/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/protocol_handler/example/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from example/android/app/src/main/res/drawable-v21/launch_background.xml rename to packages/protocol_handler/example/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/example/android/app/src/main/res/drawable/launch_background.xml b/packages/protocol_handler/example/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from example/android/app/src/main/res/drawable/launch_background.xml rename to packages/protocol_handler/example/android/app/src/main/res/drawable/launch_background.xml diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/protocol_handler/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to packages/protocol_handler/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/protocol_handler/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to packages/protocol_handler/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/protocol_handler/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to packages/protocol_handler/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/protocol_handler/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to packages/protocol_handler/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/protocol_handler/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to packages/protocol_handler/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/values-night/styles.xml b/packages/protocol_handler/example/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from example/android/app/src/main/res/values-night/styles.xml rename to packages/protocol_handler/example/android/app/src/main/res/values-night/styles.xml diff --git a/example/android/app/src/main/res/values/styles.xml b/packages/protocol_handler/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from example/android/app/src/main/res/values/styles.xml rename to packages/protocol_handler/example/android/app/src/main/res/values/styles.xml diff --git a/example/android/app/src/profile/AndroidManifest.xml b/packages/protocol_handler/example/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from example/android/app/src/profile/AndroidManifest.xml rename to packages/protocol_handler/example/android/app/src/profile/AndroidManifest.xml diff --git a/example/android/build.gradle b/packages/protocol_handler/example/android/build.gradle similarity index 100% rename from example/android/build.gradle rename to packages/protocol_handler/example/android/build.gradle diff --git a/example/android/gradle.properties b/packages/protocol_handler/example/android/gradle.properties similarity index 100% rename from example/android/gradle.properties rename to packages/protocol_handler/example/android/gradle.properties diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/protocol_handler/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from example/android/gradle/wrapper/gradle-wrapper.properties rename to packages/protocol_handler/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/example/android/settings.gradle b/packages/protocol_handler/example/android/settings.gradle similarity index 100% rename from example/android/settings.gradle rename to packages/protocol_handler/example/android/settings.gradle diff --git a/example/ios/.gitignore b/packages/protocol_handler/example/ios/.gitignore similarity index 100% rename from example/ios/.gitignore rename to packages/protocol_handler/example/ios/.gitignore diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/packages/protocol_handler/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from example/ios/Flutter/AppFrameworkInfo.plist rename to packages/protocol_handler/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/example/ios/Flutter/Debug.xcconfig b/packages/protocol_handler/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from example/ios/Flutter/Debug.xcconfig rename to packages/protocol_handler/example/ios/Flutter/Debug.xcconfig diff --git a/example/ios/Flutter/Release.xcconfig b/packages/protocol_handler/example/ios/Flutter/Release.xcconfig similarity index 100% rename from example/ios/Flutter/Release.xcconfig rename to packages/protocol_handler/example/ios/Flutter/Release.xcconfig diff --git a/example/ios/Podfile b/packages/protocol_handler/example/ios/Podfile similarity index 100% rename from example/ios/Podfile rename to packages/protocol_handler/example/ios/Podfile diff --git a/example/ios/Podfile.lock b/packages/protocol_handler/example/ios/Podfile.lock similarity index 100% rename from example/ios/Podfile.lock rename to packages/protocol_handler/example/ios/Podfile.lock diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/packages/protocol_handler/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from example/ios/Runner.xcodeproj/project.pbxproj rename to packages/protocol_handler/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/protocol_handler/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/protocol_handler/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/protocol_handler/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/protocol_handler/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/protocol_handler/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/protocol_handler/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/protocol_handler/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/protocol_handler/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/protocol_handler/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/example/ios/Runner/AppDelegate.swift b/packages/protocol_handler/example/ios/Runner/AppDelegate.swift similarity index 100% rename from example/ios/Runner/AppDelegate.swift rename to packages/protocol_handler/example/ios/Runner/AppDelegate.swift diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/protocol_handler/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/protocol_handler/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/protocol_handler/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/example/ios/Runner/Base.lproj/Main.storyboard b/packages/protocol_handler/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from example/ios/Runner/Base.lproj/Main.storyboard rename to packages/protocol_handler/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/example/ios/Runner/Info.plist b/packages/protocol_handler/example/ios/Runner/Info.plist similarity index 100% rename from example/ios/Runner/Info.plist rename to packages/protocol_handler/example/ios/Runner/Info.plist diff --git a/example/ios/Runner/Runner-Bridging-Header.h b/packages/protocol_handler/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from example/ios/Runner/Runner-Bridging-Header.h rename to packages/protocol_handler/example/ios/Runner/Runner-Bridging-Header.h diff --git a/example/lib/main.dart b/packages/protocol_handler/example/lib/main.dart similarity index 100% rename from example/lib/main.dart rename to packages/protocol_handler/example/lib/main.dart diff --git a/example/lib/pages/home.dart b/packages/protocol_handler/example/lib/pages/home.dart similarity index 100% rename from example/lib/pages/home.dart rename to packages/protocol_handler/example/lib/pages/home.dart diff --git a/example/macos/.gitignore b/packages/protocol_handler/example/macos/.gitignore similarity index 100% rename from example/macos/.gitignore rename to packages/protocol_handler/example/macos/.gitignore diff --git a/example/macos/Flutter/Flutter-Debug.xcconfig b/packages/protocol_handler/example/macos/Flutter/Flutter-Debug.xcconfig similarity index 100% rename from example/macos/Flutter/Flutter-Debug.xcconfig rename to packages/protocol_handler/example/macos/Flutter/Flutter-Debug.xcconfig diff --git a/example/macos/Flutter/Flutter-Release.xcconfig b/packages/protocol_handler/example/macos/Flutter/Flutter-Release.xcconfig similarity index 100% rename from example/macos/Flutter/Flutter-Release.xcconfig rename to packages/protocol_handler/example/macos/Flutter/Flutter-Release.xcconfig diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/packages/protocol_handler/example/macos/Flutter/GeneratedPluginRegistrant.swift similarity index 100% rename from example/macos/Flutter/GeneratedPluginRegistrant.swift rename to packages/protocol_handler/example/macos/Flutter/GeneratedPluginRegistrant.swift diff --git a/example/macos/Podfile b/packages/protocol_handler/example/macos/Podfile similarity index 100% rename from example/macos/Podfile rename to packages/protocol_handler/example/macos/Podfile diff --git a/example/macos/Podfile.lock b/packages/protocol_handler/example/macos/Podfile.lock similarity index 100% rename from example/macos/Podfile.lock rename to packages/protocol_handler/example/macos/Podfile.lock diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/packages/protocol_handler/example/macos/Runner.xcodeproj/project.pbxproj similarity index 100% rename from example/macos/Runner.xcodeproj/project.pbxproj rename to packages/protocol_handler/example/macos/Runner.xcodeproj/project.pbxproj diff --git a/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/protocol_handler/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/protocol_handler/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/protocol_handler/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/protocol_handler/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/packages/protocol_handler/example/macos/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/macos/Runner.xcworkspace/contents.xcworkspacedata rename to packages/protocol_handler/example/macos/Runner.xcworkspace/contents.xcworkspacedata diff --git a/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/protocol_handler/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/protocol_handler/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/macos/Runner/AppDelegate.swift b/packages/protocol_handler/example/macos/Runner/AppDelegate.swift similarity index 100% rename from example/macos/Runner/AppDelegate.swift rename to packages/protocol_handler/example/macos/Runner/AppDelegate.swift diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png similarity index 100% rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png rename to packages/protocol_handler/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png diff --git a/example/macos/Runner/Base.lproj/MainMenu.xib b/packages/protocol_handler/example/macos/Runner/Base.lproj/MainMenu.xib similarity index 100% rename from example/macos/Runner/Base.lproj/MainMenu.xib rename to packages/protocol_handler/example/macos/Runner/Base.lproj/MainMenu.xib diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/packages/protocol_handler/example/macos/Runner/Configs/AppInfo.xcconfig similarity index 100% rename from example/macos/Runner/Configs/AppInfo.xcconfig rename to packages/protocol_handler/example/macos/Runner/Configs/AppInfo.xcconfig diff --git a/example/macos/Runner/Configs/Debug.xcconfig b/packages/protocol_handler/example/macos/Runner/Configs/Debug.xcconfig similarity index 100% rename from example/macos/Runner/Configs/Debug.xcconfig rename to packages/protocol_handler/example/macos/Runner/Configs/Debug.xcconfig diff --git a/example/macos/Runner/Configs/Release.xcconfig b/packages/protocol_handler/example/macos/Runner/Configs/Release.xcconfig similarity index 100% rename from example/macos/Runner/Configs/Release.xcconfig rename to packages/protocol_handler/example/macos/Runner/Configs/Release.xcconfig diff --git a/example/macos/Runner/Configs/Warnings.xcconfig b/packages/protocol_handler/example/macos/Runner/Configs/Warnings.xcconfig similarity index 100% rename from example/macos/Runner/Configs/Warnings.xcconfig rename to packages/protocol_handler/example/macos/Runner/Configs/Warnings.xcconfig diff --git a/example/macos/Runner/DebugProfile.entitlements b/packages/protocol_handler/example/macos/Runner/DebugProfile.entitlements similarity index 100% rename from example/macos/Runner/DebugProfile.entitlements rename to packages/protocol_handler/example/macos/Runner/DebugProfile.entitlements diff --git a/example/macos/Runner/Info.plist b/packages/protocol_handler/example/macos/Runner/Info.plist similarity index 100% rename from example/macos/Runner/Info.plist rename to packages/protocol_handler/example/macos/Runner/Info.plist diff --git a/example/macos/Runner/MainFlutterWindow.swift b/packages/protocol_handler/example/macos/Runner/MainFlutterWindow.swift similarity index 100% rename from example/macos/Runner/MainFlutterWindow.swift rename to packages/protocol_handler/example/macos/Runner/MainFlutterWindow.swift diff --git a/example/macos/Runner/Release.entitlements b/packages/protocol_handler/example/macos/Runner/Release.entitlements similarity index 100% rename from example/macos/Runner/Release.entitlements rename to packages/protocol_handler/example/macos/Runner/Release.entitlements diff --git a/example/pubspec.yaml b/packages/protocol_handler/example/pubspec.yaml similarity index 100% rename from example/pubspec.yaml rename to packages/protocol_handler/example/pubspec.yaml diff --git a/example/test/widget_test.dart b/packages/protocol_handler/example/test/widget_test.dart similarity index 100% rename from example/test/widget_test.dart rename to packages/protocol_handler/example/test/widget_test.dart diff --git a/example/web/favicon.png b/packages/protocol_handler/example/web/favicon.png similarity index 100% rename from example/web/favicon.png rename to packages/protocol_handler/example/web/favicon.png diff --git a/example/web/icons/Icon-192.png b/packages/protocol_handler/example/web/icons/Icon-192.png similarity index 100% rename from example/web/icons/Icon-192.png rename to packages/protocol_handler/example/web/icons/Icon-192.png diff --git a/example/web/icons/Icon-512.png b/packages/protocol_handler/example/web/icons/Icon-512.png similarity index 100% rename from example/web/icons/Icon-512.png rename to packages/protocol_handler/example/web/icons/Icon-512.png diff --git a/example/web/icons/Icon-maskable-192.png b/packages/protocol_handler/example/web/icons/Icon-maskable-192.png similarity index 100% rename from example/web/icons/Icon-maskable-192.png rename to packages/protocol_handler/example/web/icons/Icon-maskable-192.png diff --git a/example/web/icons/Icon-maskable-512.png b/packages/protocol_handler/example/web/icons/Icon-maskable-512.png similarity index 100% rename from example/web/icons/Icon-maskable-512.png rename to packages/protocol_handler/example/web/icons/Icon-maskable-512.png diff --git a/example/web/index.html b/packages/protocol_handler/example/web/index.html similarity index 100% rename from example/web/index.html rename to packages/protocol_handler/example/web/index.html diff --git a/example/web/manifest.json b/packages/protocol_handler/example/web/manifest.json similarity index 100% rename from example/web/manifest.json rename to packages/protocol_handler/example/web/manifest.json diff --git a/example/windows/.gitignore b/packages/protocol_handler/example/windows/.gitignore similarity index 100% rename from example/windows/.gitignore rename to packages/protocol_handler/example/windows/.gitignore diff --git a/example/windows/CMakeLists.txt b/packages/protocol_handler/example/windows/CMakeLists.txt similarity index 100% rename from example/windows/CMakeLists.txt rename to packages/protocol_handler/example/windows/CMakeLists.txt diff --git a/example/windows/flutter/CMakeLists.txt b/packages/protocol_handler/example/windows/flutter/CMakeLists.txt similarity index 100% rename from example/windows/flutter/CMakeLists.txt rename to packages/protocol_handler/example/windows/flutter/CMakeLists.txt diff --git a/example/windows/flutter/generated_plugin_registrant.cc b/packages/protocol_handler/example/windows/flutter/generated_plugin_registrant.cc similarity index 100% rename from example/windows/flutter/generated_plugin_registrant.cc rename to packages/protocol_handler/example/windows/flutter/generated_plugin_registrant.cc diff --git a/example/windows/flutter/generated_plugin_registrant.h b/packages/protocol_handler/example/windows/flutter/generated_plugin_registrant.h similarity index 100% rename from example/windows/flutter/generated_plugin_registrant.h rename to packages/protocol_handler/example/windows/flutter/generated_plugin_registrant.h diff --git a/example/windows/flutter/generated_plugins.cmake b/packages/protocol_handler/example/windows/flutter/generated_plugins.cmake similarity index 100% rename from example/windows/flutter/generated_plugins.cmake rename to packages/protocol_handler/example/windows/flutter/generated_plugins.cmake diff --git a/example/windows/runner/CMakeLists.txt b/packages/protocol_handler/example/windows/runner/CMakeLists.txt similarity index 100% rename from example/windows/runner/CMakeLists.txt rename to packages/protocol_handler/example/windows/runner/CMakeLists.txt diff --git a/example/windows/runner/Runner.rc b/packages/protocol_handler/example/windows/runner/Runner.rc similarity index 100% rename from example/windows/runner/Runner.rc rename to packages/protocol_handler/example/windows/runner/Runner.rc diff --git a/example/windows/runner/flutter_window.cpp b/packages/protocol_handler/example/windows/runner/flutter_window.cpp similarity index 100% rename from example/windows/runner/flutter_window.cpp rename to packages/protocol_handler/example/windows/runner/flutter_window.cpp diff --git a/example/windows/runner/flutter_window.h b/packages/protocol_handler/example/windows/runner/flutter_window.h similarity index 100% rename from example/windows/runner/flutter_window.h rename to packages/protocol_handler/example/windows/runner/flutter_window.h diff --git a/example/windows/runner/main.cpp b/packages/protocol_handler/example/windows/runner/main.cpp similarity index 100% rename from example/windows/runner/main.cpp rename to packages/protocol_handler/example/windows/runner/main.cpp diff --git a/example/windows/runner/resource.h b/packages/protocol_handler/example/windows/runner/resource.h similarity index 100% rename from example/windows/runner/resource.h rename to packages/protocol_handler/example/windows/runner/resource.h diff --git a/example/windows/runner/resources/app_icon.ico b/packages/protocol_handler/example/windows/runner/resources/app_icon.ico similarity index 100% rename from example/windows/runner/resources/app_icon.ico rename to packages/protocol_handler/example/windows/runner/resources/app_icon.ico diff --git a/example/windows/runner/runner.exe.manifest b/packages/protocol_handler/example/windows/runner/runner.exe.manifest similarity index 100% rename from example/windows/runner/runner.exe.manifest rename to packages/protocol_handler/example/windows/runner/runner.exe.manifest diff --git a/example/windows/runner/utils.cpp b/packages/protocol_handler/example/windows/runner/utils.cpp similarity index 100% rename from example/windows/runner/utils.cpp rename to packages/protocol_handler/example/windows/runner/utils.cpp diff --git a/example/windows/runner/utils.h b/packages/protocol_handler/example/windows/runner/utils.h similarity index 100% rename from example/windows/runner/utils.h rename to packages/protocol_handler/example/windows/runner/utils.h diff --git a/example/windows/runner/win32_window.cpp b/packages/protocol_handler/example/windows/runner/win32_window.cpp similarity index 100% rename from example/windows/runner/win32_window.cpp rename to packages/protocol_handler/example/windows/runner/win32_window.cpp diff --git a/example/windows/runner/win32_window.h b/packages/protocol_handler/example/windows/runner/win32_window.h similarity index 100% rename from example/windows/runner/win32_window.h rename to packages/protocol_handler/example/windows/runner/win32_window.h diff --git a/ios/.gitignore b/packages/protocol_handler/ios/.gitignore similarity index 100% rename from ios/.gitignore rename to packages/protocol_handler/ios/.gitignore diff --git a/ios/Assets/.gitkeep b/packages/protocol_handler/ios/Assets/.gitkeep similarity index 100% rename from ios/Assets/.gitkeep rename to packages/protocol_handler/ios/Assets/.gitkeep diff --git a/ios/Classes/ProtocolHandlerPlugin.h b/packages/protocol_handler/ios/Classes/ProtocolHandlerPlugin.h similarity index 100% rename from ios/Classes/ProtocolHandlerPlugin.h rename to packages/protocol_handler/ios/Classes/ProtocolHandlerPlugin.h diff --git a/ios/Classes/ProtocolHandlerPlugin.m b/packages/protocol_handler/ios/Classes/ProtocolHandlerPlugin.m similarity index 100% rename from ios/Classes/ProtocolHandlerPlugin.m rename to packages/protocol_handler/ios/Classes/ProtocolHandlerPlugin.m diff --git a/ios/Classes/SwiftProtocolHandlerPlugin.swift b/packages/protocol_handler/ios/Classes/SwiftProtocolHandlerPlugin.swift similarity index 100% rename from ios/Classes/SwiftProtocolHandlerPlugin.swift rename to packages/protocol_handler/ios/Classes/SwiftProtocolHandlerPlugin.swift diff --git a/ios/protocol_handler.podspec b/packages/protocol_handler/ios/protocol_handler.podspec similarity index 100% rename from ios/protocol_handler.podspec rename to packages/protocol_handler/ios/protocol_handler.podspec diff --git a/lib/protocol_handler.dart b/packages/protocol_handler/lib/protocol_handler.dart similarity index 100% rename from lib/protocol_handler.dart rename to packages/protocol_handler/lib/protocol_handler.dart diff --git a/lib/src/protocol_handler.dart b/packages/protocol_handler/lib/src/protocol_handler.dart similarity index 100% rename from lib/src/protocol_handler.dart rename to packages/protocol_handler/lib/src/protocol_handler.dart diff --git a/lib/src/protocol_listener.dart b/packages/protocol_handler/lib/src/protocol_listener.dart similarity index 100% rename from lib/src/protocol_listener.dart rename to packages/protocol_handler/lib/src/protocol_listener.dart diff --git a/lib/src/protocol_registrar.dart b/packages/protocol_handler/lib/src/protocol_registrar.dart similarity index 100% rename from lib/src/protocol_registrar.dart rename to packages/protocol_handler/lib/src/protocol_registrar.dart diff --git a/lib/src/protocol_registrar_impl_android.dart b/packages/protocol_handler/lib/src/protocol_registrar_impl_android.dart similarity index 100% rename from lib/src/protocol_registrar_impl_android.dart rename to packages/protocol_handler/lib/src/protocol_registrar_impl_android.dart diff --git a/lib/src/protocol_registrar_impl_ios.dart b/packages/protocol_handler/lib/src/protocol_registrar_impl_ios.dart similarity index 100% rename from lib/src/protocol_registrar_impl_ios.dart rename to packages/protocol_handler/lib/src/protocol_registrar_impl_ios.dart diff --git a/lib/src/protocol_registrar_impl_macos.dart b/packages/protocol_handler/lib/src/protocol_registrar_impl_macos.dart similarity index 100% rename from lib/src/protocol_registrar_impl_macos.dart rename to packages/protocol_handler/lib/src/protocol_registrar_impl_macos.dart diff --git a/lib/src/protocol_registrar_impl_windows.dart b/packages/protocol_handler/lib/src/protocol_registrar_impl_windows.dart similarity index 100% rename from lib/src/protocol_registrar_impl_windows.dart rename to packages/protocol_handler/lib/src/protocol_registrar_impl_windows.dart diff --git a/lib/src/protocol_registrar_impl_windows_noop.dart b/packages/protocol_handler/lib/src/protocol_registrar_impl_windows_noop.dart similarity index 100% rename from lib/src/protocol_registrar_impl_windows_noop.dart rename to packages/protocol_handler/lib/src/protocol_registrar_impl_windows_noop.dart diff --git a/packages/protocol_handler/pubspec.yaml b/packages/protocol_handler/pubspec.yaml new file mode 100644 index 0000000..5188357 --- /dev/null +++ b/packages/protocol_handler/pubspec.yaml @@ -0,0 +1,38 @@ +name: protocol_handler +description: This plugin allows Flutter apps to register and handle custom protocols (i.e. deep linking). +version: 0.1.6 +homepage: https://github.com/leanflutter/protocol_handler + +platforms: + ios: + macos: + windows: + +environment: + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.16.0" + +dependencies: + flutter: + sdk: flutter + + win32_registry: ^1.0.2 + +dev_dependencies: + dependency_validator: ^3.0.0 + flutter_test: + sdk: flutter + mostly_reasonable_lints: ^0.1.1 + +flutter: + plugin: + platforms: + android: + package: org.leanflutter.plugins.protocol_handler + pluginClass: ProtocolHandlerPlugin + ios: + pluginClass: ProtocolHandlerPlugin + macos: + pluginClass: ProtocolHandlerPlugin + windows: + pluginClass: ProtocolHandlerPlugin diff --git a/macos/Classes/ProtocolHandlerPlugin.swift b/packages/protocol_handler/test/macos/Classes/ProtocolHandlerPlugin.swift similarity index 100% rename from macos/Classes/ProtocolHandlerPlugin.swift rename to packages/protocol_handler/test/macos/Classes/ProtocolHandlerPlugin.swift diff --git a/macos/protocol_handler.podspec b/packages/protocol_handler/test/macos/protocol_handler.podspec similarity index 100% rename from macos/protocol_handler.podspec rename to packages/protocol_handler/test/macos/protocol_handler.podspec diff --git a/test/protocol_handler_test.dart b/packages/protocol_handler/test/protocol_handler_test.dart similarity index 100% rename from test/protocol_handler_test.dart rename to packages/protocol_handler/test/protocol_handler_test.dart diff --git a/windows/.gitignore b/packages/protocol_handler/windows/.gitignore similarity index 100% rename from windows/.gitignore rename to packages/protocol_handler/windows/.gitignore diff --git a/windows/CMakeLists.txt b/packages/protocol_handler/windows/CMakeLists.txt similarity index 100% rename from windows/CMakeLists.txt rename to packages/protocol_handler/windows/CMakeLists.txt diff --git a/windows/include/protocol_handler/protocol_handler_plugin.h b/packages/protocol_handler/windows/include/protocol_handler/protocol_handler_plugin.h similarity index 100% rename from windows/include/protocol_handler/protocol_handler_plugin.h rename to packages/protocol_handler/windows/include/protocol_handler/protocol_handler_plugin.h diff --git a/windows/protocol_handler_plugin.cpp b/packages/protocol_handler/windows/protocol_handler_plugin.cpp similarity index 100% rename from windows/protocol_handler_plugin.cpp rename to packages/protocol_handler/windows/protocol_handler_plugin.cpp diff --git a/pubspec.yaml b/pubspec.yaml index cd9f5ec..e243563 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,38 +1,9 @@ -name: protocol_handler -description: This plugin allows Flutter apps to register and handle custom protocols (i.e. deep linking). -version: 0.1.6 +name: protocol_handler_workspace homepage: https://github.com/leanflutter/protocol_handler - -platforms: - ios: - macos: - windows: +publish_to: none environment: - sdk: ">=3.1.0 <4.0.0" - flutter: ">=3.16.0" - -dependencies: - flutter: - sdk: flutter - - win32_registry: ^1.0.2 + sdk: ">=3.0.0 <4.0.0" dev_dependencies: - dependency_validator: ^3.0.0 - flutter_lints: ^2.0.0 - flutter_test: - sdk: flutter - -flutter: - plugin: - platforms: - android: - package: org.leanflutter.plugins.protocol_handler - pluginClass: ProtocolHandlerPlugin - ios: - pluginClass: ProtocolHandlerPlugin - macos: - pluginClass: ProtocolHandlerPlugin - windows: - pluginClass: ProtocolHandlerPlugin + melos: ^3.1.0