adsense_web 0.0.2
adsense_web: ^0.0.2 copied to clipboard
Web implementation of AdSense plugin
We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 50 to 180 characters to describe the package, what it does, and its target use case.
-
pubspec.yaml
doesn't have ahomepage
entry. -
pubspec.yaml
doesn't have arepository
entry.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0
.
0/10 points: 20% or more of the public API has dartdoc comments
2 out of 12 API elements (16.7 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs
lint.
Some symbols that are missing documentation: ad_view_widget
, ad_view_widget.AdViewWidget
, ad_view_widget.AdViewWidget.AdViewWidget.new
, adsense_web
, adsense_web.AdsenseWeb.AdsenseWeb.new
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Web
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:adsense_web/adsense_web.dart
that declares support for platforms:Web
.
Package does not support platform `iOS`.
Because:
package:adsense_web/adsense_web.dart
that declares support for platforms:Web
.
Package does not support platform `Windows`.
Because:
package:adsense_web/adsense_web.dart
that declares support for platforms:Web
.
Package does not support platform `Linux`.
Because:
package:adsense_web/adsense_web.dart
that declares support for platforms:Web
.
Package does not support platform `macOS`.
Because:
package:adsense_web/adsense_web.dart
that declares support for platforms:Web
.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Web`.
Because:
package:adsense_web/adsense_web.dart
that imports:package:adsense_platform_interface/adsense_platform_interface.dart
that imports:package:adsense_mobile/adsense_mobile.dart
that declares support for platforms:Android
,iOS
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:adsense_web/adsense_web.dart
that imports:package:adsense_platform_interface/adsense_platform_interface.dart
that imports:package:adsense_mobile/adsense_mobile.dart
that imports:package:google_mobile_ads/google_mobile_ads.dart
that imports:package:google_mobile_ads/src/mobile_ads.dart
that imports:package:google_mobile_ads/src/ad_instance_manager.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.
lib/adsense_web.dart:6:1
╷
6 │ import 'dart:html' as html;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/adsense_web.dart
/tmp/pana_BGEXHK/lib/adsense_web.dart doesn't match the Dart formatter.
To format your files run: dart format .
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
adsense_platform_interface |
^0.0.1 |
0.0.2 | 0.0.2 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
adsense_mobile |
- | 0.0.2 | 0.0.2 | |
characters |
- | 1.4.0 | 1.4.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
google_mobile_ads |
- | 4.0.0 | 6.0.0 | |
material_color_utilities |
- | 0.11.1 | 0.12.0 | |
meta |
- | 1.16.0 | 1.16.0 | |
path |
- | 1.9.1 | 1.9.1 | |
vector_math |
- | 2.1.4 | 2.1.5 | |
webview_flutter |
- | 4.9.0 | 4.11.0 | |
webview_flutter_android |
- | 3.16.9 | 4.4.1 | |
webview_flutter_platform_interface |
- | 2.11.0 | 2.11.0 | |
webview_flutter_wkwebview |
- | 3.20.0 | 3.20.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.20
, Flutter 3.29.2
, Dart 3.7.2
.
Check the analysis log for details.