fast_ads 1.1.0
fast_ads: ^1.1.0 copied to clipboard
本地 Flutter 广告封装包,集成 google_mobile_ads,支持 Banner、插屏、激励、原生广告,内置广告池、优先级兜底、重试等高级特性。
We analyzed this package 5 days ago, and awarded it 110 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.
0/5 points: Provide a valid README.md
`README.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.
`CHANGELOG.md` does not contain reference to the current version ("1.1.0").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
167 out of 199 API elements (83.9 %) have documentation comments.
Some symbols that are missing documentation: fast_ads, fast_ads.FastAdPool.ads, fast_ads.FastAdPool.length, fast_ads.FastAdPool.loadNativeAd, fast_ads.FastAdUnit.FastAdUnit.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 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat declares support for platforms:Android,iOS.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat imports:package:google_mobile_ads/src/mobile_ads.dartthat imports:package:google_mobile_ads/src/ad_instance_manager.dartthat imports:package:webview_flutter_wkwebview/webview_flutter_wkwebview.dartthat declares support for platforms:iOS,macOS.
Package does not support platform `iOS`.
Because:
package:fast_ads/fast_ads.dartthat imports:package:google_mobile_ads/google_mobile_ads.dartthat imports:package:google_mobile_ads/src/mobile_ads.dartthat imports:package:google_mobile_ads/src/ad_instance_manager.dartthat imports:package:webview_flutter_android/webview_flutter_android.dartthat declares support for platforms:Android.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 15 issues. Showing the first 2:
INFO: Missing type annotation.
lib/fast_ads.dart:94:10
╷
94 │ static addInterceptor(FastAdUnitInterceptor interceptor) => interceptors.add(interceptor);
│ ^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/fast_ads.dart
INFO: The import of 'package:fast_ads/src/pool/fast_base_ad.dart' is unnecessary because all of the used elements are also provided by the import of 'package:fast_ads/fast_ads.dart'.
lib/src/banner_ad.dart:4:8
╷
4 │ import 'package:fast_ads/src/pool/fast_base_ad.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/banner_ad.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
google_mobile_ads |
^6.0.0 |
6.0.0 | 9.0.0 | |
logger |
^2.0.2 |
2.7.0 | 2.7.0 | |
shared_preferences |
^2.2.2 |
2.5.5 | 2.5.5 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
ffi |
- | 2.2.0 | 2.2.0 | |
file |
- | 7.0.1 | 7.0.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.18.0 | 1.18.3 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_linux |
- | 2.2.1 | 2.2.1 | |
path_provider_platform_interface |
- | 2.1.3 | 2.1.3 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
shared_preferences_android |
- | 2.4.26 | 2.4.26 | |
shared_preferences_foundation |
- | 2.5.6 | 2.5.6 | |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 | |
shared_preferences_platform_interface |
- | 2.4.2 | 2.4.2 | |
shared_preferences_web |
- | 2.4.3 | 2.4.3 | |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 | |
vector_math |
- | 2.2.0 | 2.4.0 | |
web |
- | 1.1.1 | 1.1.1 | |
webview_flutter |
- | 4.14.0 | 4.14.0 | |
webview_flutter_android |
- | 4.13.0 | 4.13.0 | |
webview_flutter_platform_interface |
- | 2.15.1 | 2.15.1 | |
webview_flutter_wkwebview |
- | 3.26.0 | 3.26.0 | |
xdg_directories |
- | 1.1.0 | 1.1.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^6.0.0` on google_mobile_ads does not support the stable version `7.0.0`.
Try running dart pub upgrade --major-versions google_mobile_ads to update the constraint.
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.23.12, Flutter 3.44.2, Dart 3.12.2.
Check the analysis log for details.