Skip to content

Commit

Permalink
Merge pull request #92 from droibit/feature/update_flutter_custom_tab…
Browse files Browse the repository at this point in the history
…s_web

Update the dependencies of `flutter_custom_tabs_web` package
  • Loading branch information
droibit authored Sep 11, 2023
2 parents 18f184d + 44ef05d commit 095b1bb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
12 changes: 12 additions & 0 deletions flutter_custom_tabs_web/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
# Ignore generated files
- '**/*.g.dart'
- '**/*.mocks.dart' # Mockito @GenerateMocks

linter:
rules:
depend_on_referenced_packages: false
avoid_web_libraries_in_flutter: false
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void main() {
webOnlyWindowName: anyNamed('webOnlyWindowName'),
)).thenAnswer((_) async => true);

final url = 'https://example.com';
const url = 'https://example.com';
await plugin.launch(
url,
customTabsOptions: const CustomTabsOptions(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:html';

import 'package:mockito/mockito.dart';
Expand Down Expand Up @@ -28,7 +29,7 @@ class MockUrlLauncherPlugin extends Mock
bool? universalLinksOnly = false,
Map<String, String>? headers = const <String, String>{},
String? webOnlyWindowName,
}) {
}) async {
return super.noSuchMethod(
Invocation.method(#launch, [
url
Expand Down
6 changes: 4 additions & 2 deletions flutter_custom_tabs_web/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import 'package:flutter/material.dart';

void main() => runApp(TestApp());
void main() => runApp(const TestApp());

class TestApp extends StatelessWidget {
const TestApp({super.key});

@override
Widget build(BuildContext context) {
return Directionality(
return const Directionality(
textDirection: TextDirection.ltr,
child: Text('Now testing...'),
);
Expand Down
5 changes: 3 additions & 2 deletions flutter_custom_tabs_web/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
mockito: ^5.0.9
plugin_platform_interface: ^2.0.0
mockito: ^5.4.2
plugin_platform_interface: ^2.1.5
flutter_lints: ^2.0.1
4 changes: 2 additions & 2 deletions flutter_custom_tabs_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dependencies:
flutter_custom_tabs_platform_interface:
path: ../flutter_custom_tabs_platform_interface
meta: ^1.9.1
url_launcher_web: ^2.0.1
url_launcher_platform_interface: ^2.0.3
url_launcher_web: ^2.0.16
url_launcher_platform_interface: ^2.1.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 095b1bb

Please sign in to comment.