fast_ads 1.1.0
fast_ads: ^1.1.0 copied to clipboard
本地 Flutter 广告封装包,集成 google_mobile_ads,支持 Banner、插屏、激励、原生广告,内置广告池、优先级兜底、重试等高级特性。
We analyzed this package 9 days ago, and awarded it 100 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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 16 issues. Showing the first 2:
WARNING: Returning a 'Future' without 'await' inside a try block.
lib/src/pool/fast_base_ad.dart:265:9
╷
265 │ return show(placement: placement);
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/pool/fast_base_ad.dart
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
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.1.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.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_linux |
- | 2.2.2 | 2.2.2 | |
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.27 | 2.4.27 | |
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.4.2 | 2.4.2 | |
web |
- | 1.1.1 | 1.1.1 | |
webview_flutter |
- | 4.14.1 | 4.14.1 | |
webview_flutter_android |
- | 4.14.0 | 4.14.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.18, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.