in_app_payment 0.0.2
in_app_payment: ^0.0.2 copied to clipboard
In app payment package for the stage 6 task of the HNGx Internship. This package would enable flutter developers make payments through google pay and apple pay in their application.
We analyzed this package 12 days ago, and awarded it 130 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description
field in your package's pubspec.yaml
file between 60 and 180 characters.
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
.
10/10 points: 20% or more of the public API has dartdoc comments
3 out of 10 API elements (30.0 %) have documentation comments.
Some symbols that are missing documentation: in_app_payment
, pay_buttons
, pay_buttons.HNGPay
, pay_buttons.HNGPay.HNGPay.new
, payment_config
.
10/10 points: Package has 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:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Linux`.
Because:
package:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `macOS`.
Because:
package:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Web`.
Because:
package:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that 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:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that imports:package:pay_ios/pay_ios.dart
that declares support for platforms:iOS
.
Package does not support platform `iOS`.
Because:
package:in_app_payment/in_app_payment.dart
that imports:package:in_app_payment/buttons/pay_buttons.dart
that imports:package:pay/pay.dart
that imports:package:pay_android/pay_android.dart
that declares support for platforms:Android
.
0/0 points: WASM compatibility
This package is compatible with runtime wasm
, and will be rewarded additional points in a future version of the scoring model.
See https://dart.cn/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: Missing type annotation.
lib/buttons/pay_buttons.dart:8:3
╷
8 │ googlePay(BuildContext context,
│ ^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/buttons/pay_buttons.dart
INFO: Missing type annotation.
lib/buttons/pay_buttons.dart:42:3
╷
42 │ applePay(BuildContext context,
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/buttons/pay_buttons.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
http |
^1.1.0 |
1.5.0 | 1.5.0 | |
pay |
^1.1.2 |
1.1.2 | 3.2.1 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
flutter_svg |
- | 2.2.1 | 2.2.1 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
intl |
- | 0.20.2 | 0.20.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_parsing |
- | 1.1.0 | 1.1.0 | |
pay_android |
- | 1.0.11 | 3.1.1 | |
pay_ios |
- | 1.0.11 | 1.1.0 | |
pay_platform_interface |
- | 1.0.4 | 2.0.0 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_graphics |
- | 1.1.19 | 1.1.19 | |
vector_graphics_codec |
- | 1.1.13 | 1.1.13 | |
vector_graphics_compiler |
- | 1.1.19 | 1.1.19 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xml |
- | 6.6.1 | 6.6.1 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^1.1.2` on pay does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions pay
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.22.23
, Flutter 3.35.5
, Dart 3.9.2
.
Check the analysis log for details.