tool_purchases 0.0.1
tool_purchases: ^0.0.1 copied to clipboard
Contains common classes for in app purchases
We analyzed this package 28 hours ago, and awarded it 50 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.
Homepage URL doesn't exist.
At the time of the analysis https://gitlab.com/debertz/game-flutter/-/blob/development/tools/tool_purchases/README.md was unreachable. Make sure that the website is reachable via HEAD requests.
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: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
2 out of 121 API elements (1.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: fake_purchases_repository, fake_purchases_repository.FakePurchasesRepositoryImpl, fake_purchases_repository.FakePurchasesRepositoryImpl.FakePurchasesRepositoryImpl.new, fake_purchases_repository.FakePurchasesRepositoryImpl.buyConsumable, fake_purchases_repository.FakePurchasesRepositoryImpl.buyNonConsumable.
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)
- ✓ Android
These platforms are not supported:
Package does not support platform `iOS`.
Because:
package:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat imports:package:in_app_purchase_android/in_app_purchase_android.dartthat declares support for platforms:Android.
Package does not support platform `Windows`.
Because:
package:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat declares support for platforms:Android,iOS,macOS.
Package does not support platform `Linux`.
Because:
package:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat declares support for platforms:Android,iOS,macOS.
Package does not support platform `macOS`.
Because:
package:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat imports:package:in_app_purchase_android/in_app_purchase_android.dartthat declares support for platforms:Android.
Package does not support platform `Web`.
Because:
package:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat declares support for platforms:Android,iOS,macOS.
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:tool_purchases/data/errors/purchases_error_handler_provider.dartthat imports:package:tool_purchases/purchases.dartthat imports:package:tool_purchases/domain/purchases_repository.dartthat imports:package:in_app_purchase/in_app_purchase.dartthat imports:package:in_app_purchase_storekit/in_app_purchase_storekit.dartthat declares support for platforms:iOS,macOS.
0/0 points: WASM compatibility
Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.
See https://dart.cn/web/wasm for details.
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
ERROR: The named parameter 'stackTrace' is required, but there's no corresponding argument.
lib/data/errors/purchases_error_handler_provider.dart:15:14
╷
15 │ return ErrorInfo.message(
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/data/errors/purchases_error_handler_provider.dart
ERROR: The named parameter 'stackTrace' is required, but there's no corresponding argument.
lib/data/errors/purchases_error_handler_provider.dart:20:14
╷
20 │ return ErrorInfo.message(
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/data/errors/purchases_error_handler_provider.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
freezed_annotation |
^2.4.1 |
2.4.4 | 3.1.0 | |
get_it |
^7.6.4 |
7.7.0 | 8.2.0 | |
in_app_purchase |
^3.1.11 |
3.2.3 | 3.2.3 | |
tool_app_info |
^0.0.4 |
0.0.6+2 | 0.0.8 | |
tool_errors |
^0.0.1 |
0.0.3+1 | 0.0.5 | |
tool_initializer |
^0.0.4 |
0.0.4+1 | 0.0.5 | |
tool_logger |
^0.0.4 |
0.0.8 | 0.0.8 | |
tool_storage |
^0.0.1 |
0.0.2+1 | 0.0.4 | |
tool_utils |
^0.0.5 |
0.0.6+1 | 0.0.8 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_flutterfire_internals |
- | 1.3.59 | 1.3.63 | |
android_id |
- | 0.4.0 | 0.4.0 | |
ansicolor |
- | 2.0.3 | 2.0.3 | |
async |
- | 2.13.0 | 2.13.0 | |
bloc |
- | 9.1.0 | 9.1.0 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
cross_file |
- | 0.3.4+2 | 0.3.4+2 | |
crypto |
- | 3.0.6 | 3.0.6 | |
device_info_plus |
- | 10.1.2 | 12.2.0 | |
device_info_plus_platform_interface |
- | 7.0.3 | 7.0.3 | |
dio |
- | 5.9.0 | 5.9.0 | |
dio_web_adapter |
- | 2.1.1 | 2.1.1 | |
fake_async |
- | 1.3.3 | 1.3.3 | |
ffi |
- | 2.1.4 | 2.1.4 | |
file |
- | 7.0.1 | 7.0.1 | |
firebase_core |
- | 3.15.2 | 4.2.0 | |
firebase_core_platform_interface |
- | 6.0.2 | 6.0.2 | |
firebase_core_web |
- | 2.24.1 | 3.2.0 | |
firebase_crashlytics |
- | 4.3.10 | 5.0.3 | |
firebase_crashlytics_platform_interface |
- | 3.8.10 | 3.8.14 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
group_button |
- | 5.3.4 | 5.3.4 | |
http |
- | 1.5.0 | 1.5.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
in_app_purchase_android |
- | 0.4.0+6 | 0.4.0+6 | |
in_app_purchase_platform_interface |
- | 1.4.0 | 1.4.0 | |
in_app_purchase_storekit |
- | 0.4.6 | 0.4.6 | |
intl |
- | 0.19.0 | 0.20.2 | |
json_annotation |
- | 4.9.0 | 4.9.0 | |
leak_tracker |
- | 11.0.2 | 11.0.2 | |
leak_tracker_flutter_testing |
- | 3.0.10 | 3.0.10 | |
leak_tracker_testing |
- | 3.0.2 | 3.0.2 | |
matcher |
- | 0.12.17 | 0.12.17 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
mime |
- | 2.0.0 | 2.0.0 | |
package_info_plus |
- | 8.3.1 | 9.0.0 | |
package_info_plus_platform_interface |
- | 3.2.1 | 3.2.1 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider |
- | 2.1.5 | 2.1.5 | |
path_provider_android |
- | 2.2.20 | 2.2.20 | |
path_provider_foundation |
- | 2.4.3 | 2.4.3 | |
path_provider_linux |
- | 2.2.1 | 2.2.1 | |
path_provider_platform_interface |
- | 2.1.2 | 2.1.2 | |
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 | |
quiver |
- | 3.2.2 | 3.2.2 | |
rxdart |
- | 0.28.0 | 0.28.0 | |
share_plus |
- | 11.1.0 | 12.0.1 | |
share_plus_platform_interface |
- | 6.1.0 | 6.1.0 | |
shared_preferences |
- | 2.5.3 | 2.5.3 | |
shared_preferences_android |
- | 2.4.15 | 2.4.15 | |
shared_preferences_foundation |
- | 2.5.5 | 2.5.5 | |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 | |
shared_preferences_platform_interface |
- | 2.4.1 | 2.4.1 | |
shared_preferences_web |
- | 2.4.3 | 2.4.3 | |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
sprintf |
- | 7.0.0 | 7.0.0 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.0 | 3.4.0 | |
talker |
- | 4.9.3 | 5.0.2 | |
talker_bloc_logger |
- | 4.9.3 | 5.0.2 | |
talker_dio_logger |
- | 4.9.3 | 5.0.2 | |
talker_flutter |
- | 4.9.3 | 5.0.2 | |
talker_logger |
- | 4.9.3 | 5.0.2 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.6 | 0.7.7 | |
tuple |
- | 2.0.2 | 2.0.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
universal_io |
- | 2.2.2 | 2.2.2 | |
url_launcher_linux |
- | 3.2.1 | 3.2.1 | |
url_launcher_platform_interface |
- | 2.3.2 | 2.3.2 | |
url_launcher_web |
- | 2.4.1 | 2.4.1 | |
url_launcher_windows |
- | 3.1.4 | 3.1.4 | |
uuid |
- | 4.5.1 | 4.5.1 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
vm_service |
- | 15.0.2 | 15.0.2 | |
web |
- | 1.1.1 | 1.1.1 | |
win32 |
- | 5.15.0 | 5.15.0 | |
win32_registry |
- | 1.1.5 | 2.1.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 `^2.4.1` on freezed_annotation does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions freezed_annotation to update the constraint.
The constraint `^7.6.4` on get_it does not support the stable version `8.0.0`.
Try running dart pub upgrade --major-versions get_it to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 8 errors:
UNDEFINED_GETTER-lib/declaration/purchases_initializer.dart:24:80- The getter 'isMobile' isn't defined for the type 'AppInfoRepository'.UNDEFINED_GETTER-lib/declaration/tool_purchases_di.dart:41:37- The getter 'isMobile' isn't defined for the type 'AppInfoRepository'.UNDEFINED_CLASS-lib/domain/in_app_purchases_purchases_repo.dart:12:8- Undefined class 'ValueStream'.
Run flutter pub downgrade and then flutter analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.22.24, Flutter 3.35.5, Dart 3.9.2.
Check the analysis log for details.