From 94f645e0057f1b5361ee570a6863fc5682370726 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Mon, 10 Jan 2022 13:42:40 -0500 Subject: [PATCH] Remove dependencies on 'meta' (#4647) Flutter re-exports everything from meta that we actually use, and all plugins by definition require Flutter, so there's no need to use `meta` instead of Flutter to access common annotations (e.g., immutable, visibleForTesting). This removes all use of `meta`, as well as dependencies on the package, from all plugins. Fixes https://github.com/flutter/flutter/issues/95658 --- url_launcher/CHANGELOG.md | 4 ++++ url_launcher/lib/src/link.dart | 1 - url_launcher/pubspec.yaml | 3 +-- url_launcher_android/CHANGELOG.md | 3 ++- url_launcher_android/pubspec.yaml | 3 +-- url_launcher_ios/CHANGELOG.md | 3 ++- url_launcher_ios/pubspec.yaml | 3 +-- url_launcher_web/CHANGELOG.md | 4 ++++ url_launcher_web/lib/url_launcher_web.dart | 2 +- url_launcher_web/pubspec.yaml | 3 +-- 10 files changed, 17 insertions(+), 12 deletions(-) diff --git a/url_launcher/CHANGELOG.md b/url_launcher/CHANGELOG.md index 2290fd0..80065cd 100644 --- a/url_launcher/CHANGELOG.md +++ b/url_launcher/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.0.18 + +* Removes dependency on `meta`. + ## 6.0.17 * Updates code for new analysis options. diff --git a/url_launcher/lib/src/link.dart b/url_launcher/lib/src/link.dart index 67aa244..016f97d 100644 --- a/url_launcher/lib/src/link.dart +++ b/url_launcher/lib/src/link.dart @@ -6,7 +6,6 @@ import 'dart:async'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; -import 'package:meta/meta.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher_platform_interface/link.dart'; import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart'; diff --git a/url_launcher/pubspec.yaml b/url_launcher/pubspec.yaml index 4ccf48b..128c380 100644 --- a/url_launcher/pubspec.yaml +++ b/url_launcher/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL. Supports web, phone, SMS, and email schemes. repository: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 -version: 6.0.17 +version: 6.0.18 environment: sdk: ">=2.14.0 <3.0.0" @@ -28,7 +28,6 @@ flutter: dependencies: flutter: sdk: flutter - meta: ^1.3.0 url_launcher_android: ^6.0.13 url_launcher_ios: ^6.0.13 url_launcher_linux: ^2.0.0 diff --git a/url_launcher_android/CHANGELOG.md b/url_launcher_android/CHANGELOG.md index 1b60e86..819b0cc 100644 --- a/url_launcher_android/CHANGELOG.md +++ b/url_launcher_android/CHANGELOG.md @@ -1,6 +1,7 @@ -## NEXT +## 6.0.14 * Updates code for new analysis options. +* Removes dependency on `meta`. ## 6.0.13 diff --git a/url_launcher_android/pubspec.yaml b/url_launcher_android/pubspec.yaml index 959e6d0..b660af9 100644 --- a/url_launcher_android/pubspec.yaml +++ b/url_launcher_android/pubspec.yaml @@ -2,7 +2,7 @@ name: url_launcher_android description: Android implementation of the url_launcher plugin. repository: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_android issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 -version: 6.0.13 +version: 6.0.14 environment: sdk: ">=2.14.0 <3.0.0" @@ -19,7 +19,6 @@ flutter: dependencies: flutter: sdk: flutter - meta: ^1.3.0 url_launcher_platform_interface: ^2.0.3 dev_dependencies: diff --git a/url_launcher_ios/CHANGELOG.md b/url_launcher_ios/CHANGELOG.md index 0f9190d..83d4e4e 100644 --- a/url_launcher_ios/CHANGELOG.md +++ b/url_launcher_ios/CHANGELOG.md @@ -1,6 +1,7 @@ -## NEXT +## 6.0.14 * Updates code for new analysis options. +* Removes dependency on `meta`. ## 6.0.13 diff --git a/url_launcher_ios/pubspec.yaml b/url_launcher_ios/pubspec.yaml index 1e1ee87..87bb0e9 100644 --- a/url_launcher_ios/pubspec.yaml +++ b/url_launcher_ios/pubspec.yaml @@ -2,7 +2,7 @@ name: url_launcher_ios description: iOS implementation of the url_launcher plugin. repository: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_ios issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 -version: 6.0.13 +version: 6.0.14 environment: sdk: ">=2.14.0 <3.0.0" @@ -18,7 +18,6 @@ flutter: dependencies: flutter: sdk: flutter - meta: ^1.3.0 url_launcher_platform_interface: ^2.0.3 dev_dependencies: diff --git a/url_launcher_web/CHANGELOG.md b/url_launcher_web/CHANGELOG.md index 5790e11..ebc4ab9 100644 --- a/url_launcher_web/CHANGELOG.md +++ b/url_launcher_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.6 + +* Removes dependency on `meta`. + ## 2.0.5 * Updates code for new analysis options. diff --git a/url_launcher_web/lib/url_launcher_web.dart b/url_launcher_web/lib/url_launcher_web.dart index 571acaf..76ef1d1 100644 --- a/url_launcher_web/lib/url_launcher_web.dart +++ b/url_launcher_web/lib/url_launcher_web.dart @@ -5,8 +5,8 @@ import 'dart:async'; import 'dart:html' as html; +import 'package:flutter/foundation.dart' show visibleForTesting; import 'package:flutter_web_plugins/flutter_web_plugins.dart'; -import 'package:meta/meta.dart'; import 'package:url_launcher_platform_interface/link.dart'; import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart'; diff --git a/url_launcher_web/pubspec.yaml b/url_launcher_web/pubspec.yaml index 37d3193..fd88206 100644 --- a/url_launcher_web/pubspec.yaml +++ b/url_launcher_web/pubspec.yaml @@ -2,7 +2,7 @@ name: url_launcher_web description: Web platform implementation of url_launcher repository: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_web issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22 -version: 2.0.5 +version: 2.0.6 environment: sdk: ">=2.12.0 <3.0.0" @@ -21,7 +21,6 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - meta: ^1.3.0 # null safe url_launcher_platform_interface: ^2.0.0 dev_dependencies: