From eccdc585ffa0e38a2e896000b61856aeea4a7c48 Mon Sep 17 00:00:00 2001 From: Joachim Nohl <43643339+nohli@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:55:09 +0200 Subject: [PATCH] refactor(package_info_plus)!: two-package federated architecture (#1236) --- .../package_info_plus/example/pubspec.yaml | 8 -- .../lib/package_info_plus.dart | 4 + .../lib/src/file_version_info.dart | 0 .../lib/src/package_info_plus_linux.dart} | 4 +- .../lib/src}/package_info_plus_macos.dart | 0 .../lib/src}/package_info_plus_web.dart | 6 +- .../lib/src/package_info_plus_windows.dart | 6 +- .../macos/Assets/.gitkeep | 0 .../macos/Classes/FLTPackageInfoPlusPlugin.h | 0 .../macos/Classes/FLTPackageInfoPlusPlugin.m | 0 .../macos/package_info_plus.podspec | 4 +- .../package_info_plus/pubspec.yaml | 25 ++++--- .../test/package_info_plus_linux_test.dart | 6 +- .../package_info_plus_web_test.mocks.dart | 2 +- .../package_info_plus_web_test_disabled.dart} | 8 +- .../test/package_info_plus_windows_test.dart | 6 +- .../package_info_plus_linux/.gitignore | 7 -- .../package_info_plus_linux/.metadata | 10 --- .../package_info_plus_linux/CHANGELOG.md | 36 --------- .../package_info_plus_linux/LICENSE | 27 ------- .../package_info_plus_linux/README.md | 12 --- .../lib/package_info_plus_linux.dart | 4 - .../package_info_plus_linux/pubspec.yaml | 28 ------- .../package_info_plus_macos/CHANGELOG.md | 39 ---------- .../package_info_plus_macos/LICENSE | 25 ------- .../package_info_plus_macos/README.md | 12 --- .../macos/package_info_plus_macos.podspec | 20 ----- .../package_info_plus_macos/pubspec.yaml | 20 ----- .../package_info_plus_web/CHANGELOG.md | 50 ------------- .../package_info_plus_web/LICENSE | 29 -------- .../package_info_plus_web/README.md | 12 --- .../package_info_plus_web/pubspec.yaml | 31 -------- .../package_info_plus_windows/.gitignore | 74 ------------------- .../package_info_plus_windows/.metadata | 10 --- .../package_info_plus_windows/CHANGELOG.md | 48 ------------ .../package_info_plus_windows/LICENSE | 27 ------- .../package_info_plus_windows/README.md | 12 --- .../lib/package_info_plus_windows.dart | 1 - .../package_info_plus_windows/pubspec.yaml | 29 -------- 39 files changed, 41 insertions(+), 601 deletions(-) rename packages/package_info_plus/{package_info_plus_windows => package_info_plus}/lib/src/file_version_info.dart (100%) rename packages/package_info_plus/{package_info_plus_linux/lib/src/package_info.dart => package_info_plus/lib/src/package_info_plus_linux.dart} (91%) rename packages/package_info_plus/{package_info_plus_macos/lib => package_info_plus/lib/src}/package_info_plus_macos.dart (100%) rename packages/package_info_plus/{package_info_plus_web/lib => package_info_plus/lib/src}/package_info_plus_web.dart (92%) rename packages/package_info_plus/{package_info_plus_windows => package_info_plus}/lib/src/package_info_plus_windows.dart (90%) rename packages/package_info_plus/{package_info_plus_macos => package_info_plus}/macos/Assets/.gitkeep (100%) rename packages/package_info_plus/{package_info_plus_macos => package_info_plus}/macos/Classes/FLTPackageInfoPlusPlugin.h (100%) rename packages/package_info_plus/{package_info_plus_macos => package_info_plus}/macos/Classes/FLTPackageInfoPlusPlugin.m (100%) rename packages/package_info_plus/{package_info_plus_linux => package_info_plus}/test/package_info_plus_linux_test.dart (52%) rename packages/package_info_plus/{package_info_plus_web => package_info_plus}/test/package_info_plus_web_test.mocks.dart (98%) rename packages/package_info_plus/{package_info_plus_web/test/package_info_plus_web_test.dart => package_info_plus/test/package_info_plus_web_test_disabled.dart} (96%) rename packages/package_info_plus/{package_info_plus_windows => package_info_plus}/test/package_info_plus_windows_test.dart (50%) delete mode 100644 packages/package_info_plus/package_info_plus_linux/.gitignore delete mode 100644 packages/package_info_plus/package_info_plus_linux/.metadata delete mode 100644 packages/package_info_plus/package_info_plus_linux/CHANGELOG.md delete mode 100644 packages/package_info_plus/package_info_plus_linux/LICENSE delete mode 100644 packages/package_info_plus/package_info_plus_linux/README.md delete mode 100644 packages/package_info_plus/package_info_plus_linux/lib/package_info_plus_linux.dart delete mode 100644 packages/package_info_plus/package_info_plus_linux/pubspec.yaml delete mode 100644 packages/package_info_plus/package_info_plus_macos/CHANGELOG.md delete mode 100644 packages/package_info_plus/package_info_plus_macos/LICENSE delete mode 100644 packages/package_info_plus/package_info_plus_macos/README.md delete mode 100644 packages/package_info_plus/package_info_plus_macos/macos/package_info_plus_macos.podspec delete mode 100644 packages/package_info_plus/package_info_plus_macos/pubspec.yaml delete mode 100644 packages/package_info_plus/package_info_plus_web/CHANGELOG.md delete mode 100644 packages/package_info_plus/package_info_plus_web/LICENSE delete mode 100644 packages/package_info_plus/package_info_plus_web/README.md delete mode 100644 packages/package_info_plus/package_info_plus_web/pubspec.yaml delete mode 100644 packages/package_info_plus/package_info_plus_windows/.gitignore delete mode 100644 packages/package_info_plus/package_info_plus_windows/.metadata delete mode 100644 packages/package_info_plus/package_info_plus_windows/CHANGELOG.md delete mode 100644 packages/package_info_plus/package_info_plus_windows/LICENSE delete mode 100644 packages/package_info_plus/package_info_plus_windows/README.md delete mode 100644 packages/package_info_plus/package_info_plus_windows/lib/package_info_plus_windows.dart delete mode 100644 packages/package_info_plus/package_info_plus_windows/pubspec.yaml diff --git a/packages/package_info_plus/package_info_plus/example/pubspec.yaml b/packages/package_info_plus/package_info_plus/example/pubspec.yaml index 046cd8e7b2..bafc7ccdb7 100644 --- a/packages/package_info_plus/package_info_plus/example/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/example/pubspec.yaml @@ -13,16 +13,8 @@ dependencies: path: ../ dependency_overrides: - package_info_plus_linux: - path: ../../package_info_plus_linux - package_info_plus_macos: - path: ../../package_info_plus_macos package_info_plus_platform_interface: path: ../../package_info_plus_platform_interface - package_info_plus_web: - path: ../../package_info_plus_web - package_info_plus_windows: - path: ../../package_info_plus_windows dev_dependencies: integration_test: diff --git a/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart b/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart index cf2e1ff864..a70c1e98ff 100644 --- a/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart +++ b/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart @@ -7,6 +7,10 @@ import 'dart:async'; import 'package:flutter/foundation.dart' show visibleForTesting; import 'package:package_info_plus_platform_interface/package_info_platform_interface.dart'; +export 'src/package_info_plus_linux.dart'; +export 'src/package_info_plus_windows.dart' + if (dart.library.html) 'src/package_info_plus_web.dart'; + /// Application metadata. Provides application bundle information on iOS and /// application package information on Android. class PackageInfo { diff --git a/packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart b/packages/package_info_plus/package_info_plus/lib/src/file_version_info.dart similarity index 100% rename from packages/package_info_plus/package_info_plus_windows/lib/src/file_version_info.dart rename to packages/package_info_plus/package_info_plus/lib/src/file_version_info.dart diff --git a/packages/package_info_plus/package_info_plus_linux/lib/src/package_info.dart b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_linux.dart similarity index 91% rename from packages/package_info_plus/package_info_plus_linux/lib/src/package_info.dart rename to packages/package_info_plus/package_info_plus/lib/src/package_info_plus_linux.dart index e9ca4607c8..4cf589a518 100644 --- a/packages/package_info_plus/package_info_plus_linux/lib/src/package_info.dart +++ b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_linux.dart @@ -6,10 +6,10 @@ import 'package:package_info_plus_platform_interface/package_info_platform_inter import 'package:path/path.dart' as path; /// The Linux implementation of [PackageInfoPlatform]. -class PackageInfoLinux extends PackageInfoPlatform { +class PackageInfoPlusLinuxPlugin extends PackageInfoPlatform { /// Register this dart class as the platform implementation for linux static void registerWith() { - PackageInfoPlatform.instance = PackageInfoLinux(); + PackageInfoPlatform.instance = PackageInfoPlusLinuxPlugin(); } /// Returns a map with the following keys: diff --git a/packages/package_info_plus/package_info_plus_macos/lib/package_info_plus_macos.dart b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_macos.dart similarity index 100% rename from packages/package_info_plus/package_info_plus_macos/lib/package_info_plus_macos.dart rename to packages/package_info_plus/package_info_plus/lib/src/package_info_plus_macos.dart diff --git a/packages/package_info_plus/package_info_plus_web/lib/package_info_plus_web.dart b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart similarity index 92% rename from packages/package_info_plus/package_info_plus_web/lib/package_info_plus_web.dart rename to packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart index cf66c6f3b9..ac6a38a1b6 100644 --- a/packages/package_info_plus/package_info_plus_web/lib/package_info_plus_web.dart +++ b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart @@ -9,15 +9,15 @@ import 'package:package_info_plus_platform_interface/package_info_platform_inter /// The web implementation of [PackageInfoPlatform]. /// /// This class implements the `package:package_info_plus` functionality for the web. -class PackageInfoPlugin extends PackageInfoPlatform { +class PackageInfoPlusWebPlugin extends PackageInfoPlatform { final Client? _client; /// Create plugin with http client. - PackageInfoPlugin([this._client]); + PackageInfoPlusWebPlugin([this._client]); /// Registers this class as the default instance of [PackageInfoPlatform]. static void registerWith(Registrar registrar) { - PackageInfoPlatform.instance = PackageInfoPlugin(); + PackageInfoPlatform.instance = PackageInfoPlusWebPlugin(); } /// Get version.json full url. diff --git a/packages/package_info_plus/package_info_plus_windows/lib/src/package_info_plus_windows.dart b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_windows.dart similarity index 90% rename from packages/package_info_plus/package_info_plus_windows/lib/src/package_info_plus_windows.dart rename to packages/package_info_plus/package_info_plus/lib/src/package_info_plus_windows.dart index b2a2ecd6b0..d1942bbbed 100644 --- a/packages/package_info_plus/package_info_plus_windows/lib/src/package_info_plus_windows.dart +++ b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_windows.dart @@ -1,8 +1,8 @@ /// The Windows implementation of `package_info_plus`. library package_info_plus_windows; -import 'dart:io'; import 'dart:ffi'; +import 'dart:io'; import 'package:ffi/ffi.dart'; import 'package:package_info_plus_platform_interface/package_info_data.dart'; @@ -12,10 +12,10 @@ import 'package:win32/win32.dart'; part 'file_version_info.dart'; /// The Windows implementation of [PackageInfoPlatform]. -class PackageInfoWindows extends PackageInfoPlatform { +class PackageInfoPlusWindowsPlugin extends PackageInfoPlatform { /// Register this dart class as the platform implementation for linux static void registerWith() { - PackageInfoPlatform.instance = PackageInfoWindows(); + PackageInfoPlatform.instance = PackageInfoPlusWindowsPlugin(); } /// Returns a map with the following keys: diff --git a/packages/package_info_plus/package_info_plus_macos/macos/Assets/.gitkeep b/packages/package_info_plus/package_info_plus/macos/Assets/.gitkeep similarity index 100% rename from packages/package_info_plus/package_info_plus_macos/macos/Assets/.gitkeep rename to packages/package_info_plus/package_info_plus/macos/Assets/.gitkeep diff --git a/packages/package_info_plus/package_info_plus_macos/macos/Classes/FLTPackageInfoPlusPlugin.h b/packages/package_info_plus/package_info_plus/macos/Classes/FLTPackageInfoPlusPlugin.h similarity index 100% rename from packages/package_info_plus/package_info_plus_macos/macos/Classes/FLTPackageInfoPlusPlugin.h rename to packages/package_info_plus/package_info_plus/macos/Classes/FLTPackageInfoPlusPlugin.h diff --git a/packages/package_info_plus/package_info_plus_macos/macos/Classes/FLTPackageInfoPlusPlugin.m b/packages/package_info_plus/package_info_plus/macos/Classes/FLTPackageInfoPlusPlugin.m similarity index 100% rename from packages/package_info_plus/package_info_plus_macos/macos/Classes/FLTPackageInfoPlusPlugin.m rename to packages/package_info_plus/package_info_plus/macos/Classes/FLTPackageInfoPlusPlugin.m diff --git a/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec b/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec index e74c4c11b2..24b53631ac 100644 --- a/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec +++ b/packages/package_info_plus/package_info_plus/macos/package_info_plus.podspec @@ -3,10 +3,10 @@ # Pod::Spec.new do |s| s.name = 'package_info_plus' - s.version = '0.4.5' + s.version = '0.0.1' s.summary = 'Flutter Package Info' s.description = <<-DESC -A new flutter plugin project. + A macOS implementation of the package_info_plus plugin. DESC s.homepage = 'https://github.com/fluttercommunity/package_info_plus' s.license = { :file => '../LICENSE' } diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index a4020ff1f3..8409664f65 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -14,27 +14,34 @@ flutter: ios: pluginClass: FLTPackageInfoPlusPlugin linux: - default_package: package_info_plus_linux + dartPluginClass: PackageInfoPlusLinuxPlugin macos: - default_package: package_info_plus_macos + pluginClass: FLTPackageInfoPlusPlugin web: - default_package: package_info_plus_web + pluginClass: PackageInfoPlusWebPlugin + fileName: src/package_info_plus_web.dart windows: - default_package: package_info_plus_windows + dartPluginClass: PackageInfoPlusWindowsPlugin dependencies: + ffi: ^2.0.1 flutter: sdk: flutter + flutter_web_plugins: + sdk: flutter + http: ^0.13.0 + meta: ^1.3.0 + path: ^1.8.0 package_info_plus_platform_interface: ^2.0.0 - package_info_plus_linux: ^2.0.0 - package_info_plus_macos: ^2.0.0 - package_info_plus_windows: ^3.0.0 - package_info_plus_web: ^2.0.0 + win32: ">=2.7.0 <4.0.0" + dev_dependencies: + build_runner: ^2.0.3 + flutter_lints: ^2.0.1 flutter_test: sdk: flutter + mockito: ^5.0.7 test: ^1.21.1 - flutter_lints: ^2.0.1 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/packages/package_info_plus/package_info_plus_linux/test/package_info_plus_linux_test.dart b/packages/package_info_plus/package_info_plus/test/package_info_plus_linux_test.dart similarity index 52% rename from packages/package_info_plus/package_info_plus_linux/test/package_info_plus_linux_test.dart rename to packages/package_info_plus/package_info_plus/test/package_info_plus_linux_test.dart index c496908e60..26748f2e4b 100644 --- a/packages/package_info_plus/package_info_plus_linux/test/package_info_plus_linux_test.dart +++ b/packages/package_info_plus/package_info_plus/test/package_info_plus_linux_test.dart @@ -1,10 +1,10 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:package_info_plus_linux/src/package_info.dart'; +import 'package:package_info_plus/package_info_plus.dart'; import 'package:package_info_plus_platform_interface/package_info_platform_interface.dart'; void main() { test('registered instance', () { - PackageInfoLinux.registerWith(); - expect(PackageInfoPlatform.instance, isA()); + PackageInfoPlusLinuxPlugin.registerWith(); + expect(PackageInfoPlatform.instance, isA()); }); } diff --git a/packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.mocks.dart b/packages/package_info_plus/package_info_plus/test/package_info_plus_web_test.mocks.dart similarity index 98% rename from packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.mocks.dart rename to packages/package_info_plus/package_info_plus/test/package_info_plus_web_test.mocks.dart index 7c8163a2e0..efa5d1051c 100644 --- a/packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.mocks.dart +++ b/packages/package_info_plus/package_info_plus/test/package_info_plus_web_test.mocks.dart @@ -1,5 +1,5 @@ // Mocks generated by Mockito 5.0.14 from annotations -// in package_info_plus_web/test/package_info_plus_web_test.dart. +// in package_info_plus_web/test/package_info_plus_web_test_disabled.dart. // Do not manually edit this file. // ignore_for_file: camel_case_types, unnecessary_overrides diff --git a/packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.dart b/packages/package_info_plus/package_info_plus/test/package_info_plus_web_test_disabled.dart similarity index 96% rename from packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.dart rename to packages/package_info_plus/package_info_plus/test/package_info_plus_web_test_disabled.dart index c6bb8208bc..b50071e556 100644 --- a/packages/package_info_plus/package_info_plus_web/test/package_info_plus_web_test.dart +++ b/packages/package_info_plus/package_info_plus/test/package_info_plus_web_test_disabled.dart @@ -1,10 +1,10 @@ import 'dart:convert'; import 'package:flutter_test/flutter_test.dart'; +import 'package:http/http.dart' as http; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:package_info_plus_web/package_info_plus_web.dart'; -import 'package:http/http.dart' as http; +import 'package:package_info_plus/src/package_info_plus_web.dart'; import 'package_info_plus_web_test.mocks.dart'; @@ -20,12 +20,12 @@ void main() { 'build_signature': '', }; - late PackageInfoPlugin plugin; + late PackageInfoPlusWebPlugin plugin; late MockClient client; setUp(() { client = MockClient(); - plugin = PackageInfoPlugin(client); + plugin = PackageInfoPlusWebPlugin(client); }); group( diff --git a/packages/package_info_plus/package_info_plus_windows/test/package_info_plus_windows_test.dart b/packages/package_info_plus/package_info_plus/test/package_info_plus_windows_test.dart similarity index 50% rename from packages/package_info_plus/package_info_plus_windows/test/package_info_plus_windows_test.dart rename to packages/package_info_plus/package_info_plus/test/package_info_plus_windows_test.dart index 416d48f9b0..47425b31d0 100644 --- a/packages/package_info_plus/package_info_plus_windows/test/package_info_plus_windows_test.dart +++ b/packages/package_info_plus/package_info_plus/test/package_info_plus_windows_test.dart @@ -1,10 +1,10 @@ import 'package:flutter_test/flutter_test.dart'; +import 'package:package_info_plus/src/package_info_plus_windows.dart'; import 'package:package_info_plus_platform_interface/package_info_platform_interface.dart'; -import 'package:package_info_plus_windows/src/package_info_plus_windows.dart'; void main() { test('registered instance', () { - PackageInfoWindows.registerWith(); - expect(PackageInfoPlatform.instance, isA()); + PackageInfoPlusWindowsPlugin.registerWith(); + expect(PackageInfoPlatform.instance, isA()); }); } diff --git a/packages/package_info_plus/package_info_plus_linux/.gitignore b/packages/package_info_plus/package_info_plus_linux/.gitignore deleted file mode 100644 index e9dc58d3d6..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -.DS_Store -.dart_tool/ - -.packages -.pub/ - -build/ diff --git a/packages/package_info_plus/package_info_plus_linux/.metadata b/packages/package_info_plus/package_info_plus_linux/.metadata deleted file mode 100644 index fd128294d1..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/.metadata +++ /dev/null @@ -1,10 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: be6f496e463b995c36d49fd509cff1fc8652402a - channel: unknown - -project_type: plugin diff --git a/packages/package_info_plus/package_info_plus_linux/CHANGELOG.md b/packages/package_info_plus/package_info_plus_linux/CHANGELOG.md deleted file mode 100644 index b3580c4d3c..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/CHANGELOG.md +++ /dev/null @@ -1,36 +0,0 @@ -## 2.0.0 - - - Update a dependency to the latest release. - -## 1.0.5 - -- Resolve package_name - -## 1.0.4 - -- Fix MissingPluginException - -## 1.0.3 -- Add `buildSignature` to Android package info to retrieve the signing certifiate SHA1 at runtime. - -## 1.0.2 - -- Fix async loading: #247 - -## 1.0.1 - -- Improve documentation - -## 1.0.0 - -- Migrate to null-safety -- Update dependencies -- Fix dart SDK constraints - -## 0.1.1 - -- Fix platform interface dependency version - -## [0.1.0] - -- Initial version for Linux. diff --git a/packages/package_info_plus/package_info_plus_linux/LICENSE b/packages/package_info_plus/package_info_plus_linux/LICENSE deleted file mode 100644 index 0c91662b3f..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2020 The Chromium Authors. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/package_info_plus/package_info_plus_linux/README.md b/packages/package_info_plus/package_info_plus_linux/README.md deleted file mode 100644 index 5504349a2e..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Package Info Plus Linux - -[![Flutter Community: package_info_plus_linux](https://fluttercommunity.dev/_github/header/package_info_plus_linux)](https://github.com/fluttercommunity/community) - -[![pub package](https://img.shields.io/pub/v/package_info_plus_linux.svg)](https://pub.dev/packages/package_info_plus_linux) - -The Linux implementation of [`package_info_plus`](https://pub.dev/packages/package_info_plus). - -## Usage - -This package is already included as part of the `package_info_plus` package dependency, and will -be included when using `package_info_plus` as normal. diff --git a/packages/package_info_plus/package_info_plus_linux/lib/package_info_plus_linux.dart b/packages/package_info_plus/package_info_plus_linux/lib/package_info_plus_linux.dart deleted file mode 100644 index 6fe2d17dd2..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/lib/package_info_plus_linux.dart +++ /dev/null @@ -1,4 +0,0 @@ -/// The Linux implementation of `package_info_plus`. -library package_info_plus_linux; - -export 'src/package_info.dart'; diff --git a/packages/package_info_plus/package_info_plus_linux/pubspec.yaml b/packages/package_info_plus/package_info_plus_linux/pubspec.yaml deleted file mode 100644 index db44274d2c..0000000000 --- a/packages/package_info_plus/package_info_plus_linux/pubspec.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: package_info_plus_linux -description: Linux implementation of the package_info_plus plugin -version: 2.0.0 -homepage: https://plus.fluttercommunity.dev/ -repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ - -environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.20.0" - -dependencies: - package_info_plus_platform_interface: ^2.0.0 - flutter: - sdk: flutter - path: ^1.8.0 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ">=1.0.4 <3.0.0" - -flutter: - plugin: - implements: package_info_plus - platforms: - linux: - dartPluginClass: PackageInfoLinux - pluginClass: none diff --git a/packages/package_info_plus/package_info_plus_macos/CHANGELOG.md b/packages/package_info_plus/package_info_plus_macos/CHANGELOG.md deleted file mode 100644 index ea9610f1bc..0000000000 --- a/packages/package_info_plus/package_info_plus_macos/CHANGELOG.md +++ /dev/null @@ -1,39 +0,0 @@ -## 2.0.0 - -> Note: This release has breaking changes. - - - **BREAKING** **FEAT**: Add information about the installer store (#1135). - -## 1.3.0 - -- Removed `Reachability` dependency - -## 1.2.0 - -- fix app name on macOS - -## 1.1.1 - -- Improve documentation - -## 1.1.0 - -- Renamed plugin class to avoid collision with package_info - -## 1.0.0 - -- Migrate to null-safety -- Update dependencies -- Fix dart SDK constraints - -## 0.2.0 - -- Changed method channel name - -## 0.1.0 - -- Transfer to plus-plugins monorepo - -# 0.0.1 - -- Initial release. diff --git a/packages/package_info_plus/package_info_plus_macos/LICENSE b/packages/package_info_plus/package_info_plus_macos/LICENSE deleted file mode 100644 index 758c714fad..0000000000 --- a/packages/package_info_plus/package_info_plus_macos/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright 2019 The Chromium Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/packages/package_info_plus/package_info_plus_macos/README.md b/packages/package_info_plus/package_info_plus_macos/README.md deleted file mode 100644 index aa1a12b289..0000000000 --- a/packages/package_info_plus/package_info_plus_macos/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Package Info Plus macOS - -[![Flutter Community: package_info_plus_macos](https://fluttercommunity.dev/_github/header/package_info_plus_macos)](https://github.com/fluttercommunity/community) - -[![pub package](https://img.shields.io/pub/v/package_info_plus_macos.svg)](https://pub.dev/packages/package_info_plus_macos) - -The macOS implementation of [`package_info_plus`](https://pub.dev/packages/package_info_plus). - -## Usage - -This package is already included as part of the `package_info_plus` package dependency, and will -be included when using `package_info_plus` as normal. diff --git a/packages/package_info_plus/package_info_plus_macos/macos/package_info_plus_macos.podspec b/packages/package_info_plus/package_info_plus_macos/macos/package_info_plus_macos.podspec deleted file mode 100644 index d6bc24161c..0000000000 --- a/packages/package_info_plus/package_info_plus_macos/macos/package_info_plus_macos.podspec +++ /dev/null @@ -1,20 +0,0 @@ -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html -# -Pod::Spec.new do |s| - s.name = 'package_info_plus_macos' - s.version = '0.0.1' - s.summary = 'Flutter Package Info' - s.description = <<-DESC - A macOS implementation of the package_info_plus plugin. - DESC - s.homepage = 'https://github.com/fluttercommunity/package_info_plus/tree/main/package_info_plus/package_info_plus_macos' - s.license = { :file => '../LICENSE' } - s.author = { 'Flutter Community' => 'authors@fluttercommunity.dev' } - s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.public_header_files = 'Classes/**/*.h' - s.dependency 'FlutterMacOS' - s.platform = :osx, '10.11' - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } -end diff --git a/packages/package_info_plus/package_info_plus_macos/pubspec.yaml b/packages/package_info_plus/package_info_plus_macos/pubspec.yaml deleted file mode 100644 index 2ffb13355a..0000000000 --- a/packages/package_info_plus/package_info_plus_macos/pubspec.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: package_info_plus_macos -description: macOS implementation of the package_info_plus plugin. -version: 2.0.0 -homepage: https://plus.fluttercommunity.dev/ -repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ - -flutter: - plugin: - platforms: - macos: - pluginClass: FLTPackageInfoPlusPlugin - fileName: package_info_plus_macos.dart - -environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.20.0" - -dependencies: - flutter: - sdk: flutter diff --git a/packages/package_info_plus/package_info_plus_web/CHANGELOG.md b/packages/package_info_plus/package_info_plus_web/CHANGELOG.md deleted file mode 100644 index 79aad0aa79..0000000000 --- a/packages/package_info_plus/package_info_plus_web/CHANGELOG.md +++ /dev/null @@ -1,50 +0,0 @@ -## 2.0.0 - -> Note: This release has breaking changes. - - - **BREAKING** **FEAT**: Add information about the installer store (#1135). - -## 1.0.6 - -- Add support for chrome extensions - -## 1.0.5 - -- Resolve package_name - -## 1.0.4 - -- Fixed url resolving for the version.json - -## 1.0.3 -- Add `buildSignature` to Android package info to retrieve the signing certifiate SHA1 at runtime. - -## 1.0.2 - -- Add cache buster to version.json - -## 1.0.1 - -- Improve documentation - -## 1.0.0 - -- Migrate to null-safety -- Update dependencies -- Fix dart SDK constraints - -## 0.2.1 - -- Fix base URI resolving - -## 0.2.0 - -- Use interface plugin 0.3.0 - -## 0.1.0 - -- Transfer to plus-plugins monorepo - -## 0.0.1 - -- Initial release. diff --git a/packages/package_info_plus/package_info_plus_web/LICENSE b/packages/package_info_plus/package_info_plus_web/LICENSE deleted file mode 100644 index 2af62a93a3..0000000000 --- a/packages/package_info_plus/package_info_plus_web/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ - - -// Copyright 2017 The Chromium Authors. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/packages/package_info_plus/package_info_plus_web/README.md b/packages/package_info_plus/package_info_plus_web/README.md deleted file mode 100644 index 6df1a8da9c..0000000000 --- a/packages/package_info_plus/package_info_plus_web/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Package Info Plus Web - -[![Flutter Community: package_info_plus_web](https://fluttercommunity.dev/_github/header/package_info_plus_web)](https://github.com/fluttercommunity/community) - -[![pub package](https://img.shields.io/pub/v/package_info_plus_web.svg)](https://pub.dev/packages/package_info_plus_web) - -The Web implementation of [`package_info_plus`](https://pub.dev/packages/package_info_plus). - -## Usage - -This package is already included as part of the `package_info_plus` package dependency, and will -be included when using `package_info_plus` as normal. diff --git a/packages/package_info_plus/package_info_plus_web/pubspec.yaml b/packages/package_info_plus/package_info_plus_web/pubspec.yaml deleted file mode 100644 index 0bc9124834..0000000000 --- a/packages/package_info_plus/package_info_plus_web/pubspec.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: package_info_plus_web -description: Web platform implementation of package_info_plus -version: 2.0.0 -homepage: https://plus.fluttercommunity.dev/ -repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ - -flutter: - plugin: - platforms: - web: - pluginClass: PackageInfoPlugin - fileName: package_info_plus_web.dart - -dependencies: - flutter: - sdk: flutter - flutter_web_plugins: - sdk: flutter - http: ^0.13.0 - meta: ^1.3.0 - package_info_plus_platform_interface: ^2.0.0 -dev_dependencies: - flutter_test: - sdk: flutter - mockito: ^5.0.7 - build_runner: ^2.0.3 - flutter_lints: ">=1.0.4 <3.0.0" - -environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.20.0" diff --git a/packages/package_info_plus/package_info_plus_windows/.gitignore b/packages/package_info_plus/package_info_plus_windows/.gitignore deleted file mode 100644 index 1985397a2c..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/.gitignore +++ /dev/null @@ -1,74 +0,0 @@ -# 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 -**/doc/api/ -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -build/ - -# Android related -**/android/**/gradle-wrapper.jar -**/android/.gradle -**/android/captures/ -**/android/gradlew -**/android/gradlew.bat -**/android/local.properties -**/android/**/GeneratedPluginRegistrant.java - -# iOS/XCode related -**/ios/**/*.mode1v3 -**/ios/**/*.mode2v3 -**/ios/**/*.moved-aside -**/ios/**/*.pbxuser -**/ios/**/*.perspectivev3 -**/ios/**/*sync/ -**/ios/**/.sconsign.dblite -**/ios/**/.tags* -**/ios/**/.vagrant/ -**/ios/**/DerivedData/ -**/ios/**/Icon? -**/ios/**/Pods/ -**/ios/**/.symlinks/ -**/ios/**/profile -**/ios/**/xcuserdata -**/ios/.generated/ -**/ios/Flutter/App.framework -**/ios/Flutter/Flutter.framework -**/ios/Flutter/Flutter.podspec -**/ios/Flutter/Generated.xcconfig -**/ios/Flutter/app.flx -**/ios/Flutter/app.zip -**/ios/Flutter/flutter_assets/ -**/ios/Flutter/flutter_export_environment.sh -**/ios/ServiceDefinitions.json -**/ios/Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!**/ios/**/default.mode1v3 -!**/ios/**/default.mode2v3 -!**/ios/**/default.pbxuser -!**/ios/**/default.perspectivev3 diff --git a/packages/package_info_plus/package_info_plus_windows/.metadata b/packages/package_info_plus/package_info_plus_windows/.metadata deleted file mode 100644 index 7e57c5f4a3..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/.metadata +++ /dev/null @@ -1,10 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: ec40df9576d6020dd56820b9b5aff8f828706e49 - channel: master - -project_type: package diff --git a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md b/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md deleted file mode 100644 index 772215be75..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/CHANGELOG.md +++ /dev/null @@ -1,48 +0,0 @@ -## 3.0.0 - - - Update a dependency to the latest release. - -## 2.1.0 - -- Allow win32 3.x to be used. - -## 2.0.0 - -- **Breaking change**. Bump minimum dart version to 2.17.0. -- Updated ffi to 2.0.1. -- Updated win32 to 2.7.0. -- Updated flutter_lints to 2.0.1. - -## 1.0.5 - -- Fix MissingPluginException - -## 1.0.4 - -- Annotate int with external in preparation of Flutter 2.5 - -## 1.0.3 - -- Add `buildSignature` to Android package info to retrieve the signing certifiate SHA1 at runtime. - -## 1.0.2 - -- Remove trailing null characters - -## 1.0.1 - -- Improve documentation - -## 1.0.0 - -- Migrate to null-safety -- Update dependencies -- Fix dart SDK constraints - -## [0.2.0] - -- Use interface plugin 0.3.0 - -## [0.1.0] - -- Initial version for Windows. diff --git a/packages/package_info_plus/package_info_plus_windows/LICENSE b/packages/package_info_plus/package_info_plus_windows/LICENSE deleted file mode 100644 index 0c91662b3f..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2020 The Chromium Authors. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/package_info_plus/package_info_plus_windows/README.md b/packages/package_info_plus/package_info_plus_windows/README.md deleted file mode 100644 index 5de64d4c60..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Package Info Plus Windows - -[![Flutter Community: package_info_plus_windows](https://fluttercommunity.dev/_github/header/package_info_plus_windows)](https://github.com/fluttercommunity/community) - -[![pub package](https://img.shields.io/pub/v/package_info_plus_windows.svg)](https://pub.dev/packages/package_info_plus_windows) - -The Windows implementation of [`package_info_plus`](https://pub.dev/packages/package_info_plus). - -## Usage - -This package is already included as part of the `package_info_plus` package dependency, and will -be included when using `package_info_plus` as normal. diff --git a/packages/package_info_plus/package_info_plus_windows/lib/package_info_plus_windows.dart b/packages/package_info_plus/package_info_plus_windows/lib/package_info_plus_windows.dart deleted file mode 100644 index b94dd62f82..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/lib/package_info_plus_windows.dart +++ /dev/null @@ -1 +0,0 @@ -export 'src/package_info_plus_windows.dart'; diff --git a/packages/package_info_plus/package_info_plus_windows/pubspec.yaml b/packages/package_info_plus/package_info_plus_windows/pubspec.yaml deleted file mode 100644 index e19437a48b..0000000000 --- a/packages/package_info_plus/package_info_plus_windows/pubspec.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: package_info_plus_windows -description: Windows implementation of the package_info_plus plugin -version: 3.0.0 -homepage: https://plus.fluttercommunity.dev/ -repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/ - -environment: - sdk: ">=2.17.0 <3.0.0" - flutter: ">=1.20.0" - -dependencies: - package_info_plus_platform_interface: ^2.0.0 - ffi: ^2.0.1 - flutter: - sdk: flutter - win32: ">=2.7.0 <4.0.0" - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.1 - -flutter: - plugin: - implements: package_info_plus - platforms: - windows: - dartPluginClass: PackageInfoWindows - pluginClass: none