Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.8
// @dart = 2.9
Copy link
Contributor

Choose a reason for hiding this comment

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

connectivity hasn't moved to nnbd yet, my migration PR will handle this. Do you want to maybe revert it for now?

Copy link
Author

Choose a reason for hiding this comment

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

@dart = 2.9 is non-null safety. @dart = 2.10 enables null safety.


import 'package:connectivity/connectivity.dart';
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// TODO(cyanglaz): Remove once https://github.com/flutter/plugins/pull/3158 is landed.
// @dart = 2.9

import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:device_info/device_info.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
// @dart = 2.9

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

// TODO(cyanglaz): Remove once https://github.com/flutter/flutter/issues/59879 is fixed.
// @dart = 2.9

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:device_info_platform_interface/device_info_platform_interface.dart';

import 'package:device_info_platform_interface/method_channel/method_channel_device_info.dart';

void main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.8
// @dart = 2.9

import 'dart:async';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.8
// @dart = 2.9

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// TODO(egarciad): Remove once integration_test is migrated to null safety.
// @dart = 2.9

import 'dart:io' show Platform;

import 'package:flutter/foundation.dart' show kIsWeb;
Expand Down
2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MyHomePage extends StatefulWidget {
}

class _MyHomePageState extends State<MyHomePage> {
late Future<void> _launched;
Future<void>? _launched;
String _phone = '';

Future<void> _launchInBrowser(String url) async {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// TODO(egarciad): Remove once mockito is migrated to null safety.
// @dart = 2.9

import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:mockito/mockito.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// TODO(egarciad): Remove once flutter_driver is migrated to null safety.
// @dart = 2.9

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
25 changes: 20 additions & 5 deletions packages/url_launcher/url_launcher/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,31 @@ dependencies:
flutter:
sdk: flutter
# TODO(mvanbeusekom): Update to use pub.dev once null safety version is published.
url_launcher_platform_interface:
path: ../url_launcher_platform_interface
url_launcher_platform_interface:
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/url_launcher/url_launcher_platform_interface
# The design on https://flutter.dev/go/federated-plugins was to leave
# this constraint as "any". We cannot do it right now as it fails pub publish
# validation, so we set a ^ constraint.
# TODO(amirh): Revisit this (either update this part in the design or the pub tool).
# https://github.com/flutter/flutter/issues/46264
url_launcher_linux: ^0.0.1
url_launcher_macos: ^0.0.1
url_launcher_windows: ^0.0.1
url_launcher_linux:
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/url_launcher/url_launcher_linux
url_launcher_macos:
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/url_launcher/url_launcher_macos
url_launcher_windows:
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/url_launcher/url_launcher_windows
# TODO(mvanbeusekom): Temporary disabled until web is migrated to nnbd (advised by @blasten).
#url_launcher_web: ^0.1.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.8
// TODO(mvanbeusekom): Remove once Mockito is migrated to null safety.
// @dart = 2.9

import 'dart:async';
import 'dart:ui';

import 'package:flutter_test/flutter_test.dart';
// TODO(mvanbeusekom): Remove once Mockito is migrated to null safety.
// @dart = 2.9
import 'package:mockito/mockito.dart';
import 'package:flutter/foundation.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
Expand Down
4 changes: 4 additions & 0 deletions packages/url_launcher/url_launcher_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0-nullsafety

* Migrate to null safety.

## 0.0.1+2

* Check in linux/ directory for example/
Expand Down
4 changes: 2 additions & 2 deletions packages/url_launcher/url_launcher_linux/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: url_launcher_linux
description: Linux implementation of the url_launcher plugin.
version: 0.0.1+2
version: 0.1.0-nullsafety
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_linux

flutter:
Expand All @@ -10,7 +10,7 @@ flutter:
pluginClass: UrlLauncherPlugin

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=2.10.0-56.0.dev <3.0.0"
flutter: ">=1.12.8 <2.0.0"

dependencies:
Expand Down
4 changes: 4 additions & 0 deletions packages/url_launcher/url_launcher_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.0-nullsafety

* Migrate to null safety.

# 0.0.1+8

* Remove no-op android folder in the example app.
Expand Down
4 changes: 2 additions & 2 deletions packages/url_launcher/url_launcher_macos/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: macOS implementation of the url_launcher plugin.
# 0.0.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
version: 0.0.1+8
version: 0.1.0
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_macos

flutter:
Expand All @@ -14,7 +14,7 @@ flutter:
fileName: url_launcher_macos.dart

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=2.10.0-56.0.dev <3.0.0"
flutter: ">=1.12.8 <2.0.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/url_launcher/url_launcher_web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# 0.1.2

- Adds "tel" and "sms" support
- Adds "tel" and "sms" support

# 0.1.1+6

Expand Down
4 changes: 0 additions & 4 deletions packages/url_launcher/url_launcher_web/analysis_options.yaml

This file was deleted.

7 changes: 5 additions & 2 deletions packages/url_launcher/url_launcher_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ flutter:

dependencies:
# TODO(mvanbeusekom): Update to use pub.dev once null safety version is published.
url_launcher_platform_interface:
path: ../url_launcher_platform_interface
url_launcher_platform_interface:
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/url_launcher/url_launcher_platform_interface
flutter:
sdk: flutter
flutter_web_plugins:
Expand Down
4 changes: 4 additions & 0 deletions packages/url_launcher/url_launcher_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0-nullsafety

* Migrate to null-safety.

## 0.0.1+1

* Update README to reflect endorsement.
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated 0.0.1+1. Looks like a merge error.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch

Expand Down
4 changes: 2 additions & 2 deletions packages/url_launcher/url_launcher_windows/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Windows implementation of the url_launcher plugin.
# 0.0.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
version: 0.0.1+1
version: 0.1.0-nullsafety
homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_windows

flutter:
Expand All @@ -13,7 +13,7 @@ flutter:
pluginClass: UrlLauncherPlugin

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=2.10.0-56.0.dev <3.0.0"
flutter: ">=1.12.8 <2.0.0"

dependencies:
Expand Down
14 changes: 8 additions & 6 deletions packages/video_player/video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@ flutter:
dependencies:
meta: ^1.3.0-nullsafety.3
video_player_platform_interface:
path: ../video_player_platform_interface
# git:
# url: https://github.com/flutter/plugins.git
# ref: nnbd
# path: packages/video_player/video_player_platform_interface
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/video_player/video_player_platform_interface

# The design on https://flutter.dev/go/federated-plugins was to leave
# this constraint as "any". We cannot do it right now as it fails pub publish
# validation, so we set a ^ constraint.
# TODO(amirh): Revisit this (either update this part in the design or the pub tool).
# https://github.com/flutter/flutter/issues/46264
video_player_web:
path: ../video_player_web
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/video_player/video_player_web

flutter:
sdk: flutter
Expand Down
9 changes: 4 additions & 5 deletions packages/video_player/video_player_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ dependencies:
sdk: flutter
meta: ^1.3.0-nullsafety.3
video_player_platform_interface:
path: ../video_player_platform_interface
# git:
# url: https://github.com/flutter/plugins.git
# ref: nnbd
# path: packages/video_player/video_player_platform_interface
git:
url: https://github.com/flutter/plugins.git
ref: nnbd
path: packages/video_player/video_player_platform_interface

dev_dependencies:
flutter_test:
Expand Down