Skip to content

Commit de4236b

Browse files
committed
Promote 2.0.0 beta to prod
1 parent c648220 commit de4236b

10 files changed

Lines changed: 11 additions & 16 deletions

File tree

example/analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linter:
2222
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
2323
# producing the lint.
2424
rules:
25+
use_build_context_synchronously: false
2526
# avoid_print: false # Uncomment to disable the `avoid_print` rule
2627
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
2728

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:adblocker_manager/adblocker_manager.dart';
21
import 'package:adblocker_webview/adblocker_webview.dart';
32
import 'package:flutter/material.dart';
43

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ packages:
2323
path: ".."
2424
relative: true
2525
source: path
26-
version: "2.0.0-beta"
26+
version: "2.0.0"
2727
async:
2828
dependency: transitive
2929
description:

lib/src/adblocker_webview_controller.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import 'dart:collection';
22

3-
import 'package:adblocker_manager/adblocker_manager.dart';
43
import 'package:adblocker_webview/adblocker_webview.dart';
5-
import 'package:adblocker_webview/src/adblocker_webview_controller_impl.dart';
64
import 'package:adblocker_webview/src/internal_adblocker_webview_controller.dart';
75

86
/// The controller for [AdBlockerWebview].

lib/src/adblocker_webview_controller_impl.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:collection';
22

3-
import 'package:adblocker_manager/adblocker_manager.dart';
43
import 'package:adblocker_webview/adblocker_webview.dart';
54
import 'package:webview_flutter/webview_flutter.dart';
65

lib/src/block_resource_loading.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ String getResourceLoadingBlockerScript(List<ResourceRule> rules) {
77
url: '${rule.url}',
88
isException: ${rule.isException}
99
}
10-
''').join(',\n');
10+
''',).join(',\n');
1111

1212
final content = '''
1313
window.adBlockerRules = [$jsRules];
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import 'filter_type.dart';
1+
import 'package:adblocker_manager/src/config/filter_type.dart';
22

33
/// Configuration for the AdblockFilterManager
44
class FilterConfig {
5-
/// List of filter types to be used
6-
final List<FilterType> filterTypes;
75

86
/// Creates a new [FilterConfig] instance
97
///
@@ -14,4 +12,6 @@ class FilterConfig {
1412
filterTypes.isNotEmpty,
1513
'At least one filter type must be specified',
1614
);
15+
/// List of filter types to be used
16+
final List<FilterType> filterTypes;
1717
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
/// Base class for all filter-related exceptions
22
class FilterException implements Exception {
3+
4+
/// Creates a new [FilterException]
5+
FilterException(this.message, [this.error]);
36
/// Error message
47
final String message;
58

69
/// Optional error that caused this exception
710
final Object? error;
811

9-
/// Creates a new [FilterException]
10-
FilterException(this.message, [this.error]);
11-
1212
@override
1313
String toString() =>
1414
'FilterException: $message${error != null ? '\nCaused by: $error' : ''}';
1515
}
1616

1717
/// Exception thrown when filter initialization fails
1818
class FilterInitializationException extends FilterException {
19-
FilterInitializationException(String message, [Object? error])
20-
: super(message, error);
19+
FilterInitializationException(super.message, [super.error]);
2120
}

packages/adblocker_manager/lib/src/filter_manager.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:adblocker_core/adblocker_core.dart';
21
import 'package:adblocker_manager/adblocker_manager.dart';
32
import 'package:flutter/services.dart';
43

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: adblocker_webview
22
description: A webview for flutter with adblocking capability. It's currently based on Flutter InAppWebview Plugin.
33
repository: https://github.com/islamdidarmd/flutter_adblocker_webview
44
issue_tracker: https://github.com/islamdidarmd/flutter_adblocker_webview/issues
5-
version: 2.0.0-beta
5+
version: 2.0.0
66
homepage: https://github.com/islamdidarmd/flutter_adblocker_webview
77

88
environment:

0 commit comments

Comments
 (0)