royat_pay 0.0.2 royat_pay: ^0.0.2 copied to clipboard
RoyatPay is a library that allows Flutter applications to accept online card and apple payments through the Royat service.
We analyzed this package 3 days ago, and awarded it 100 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
-
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: GPL-3.0
.
0/10 points: 20% or more of the public API has dartdoc comments
10 out of 124 API elements (8.1 %) 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: apis_servicese
, apis_servicese.ApisServices
, apis_servicese.ApisServices.info
, apis_servicese.ApisServices.instance
, apis_servicese.ApisServices.payWithCard
.
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:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_linux.dart
that imports:package:nm/nm.dart
that declares support for platforms:Linux
.
Package does not support platform `Linux`.
Because:
package:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_windows.dart
that imports:package:win32/winsock2.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_windows.dart
that imports:package:win32/winsock2.dart
that declares support for platforms:Windows
.
Package does not support platform `Web`.
Because:
package:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_linux.dart
that imports:package:nm/nm.dart
that declares support for platforms:Linux
.
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:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_windows.dart
that imports:package:win32/winsock2.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_windows.dart
that imports:package:win32/winsock2.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:royat_pay/royat_pay.dart
that imports:package:royat_pay/services/apis_servicese.dart
that imports:package:network_info_plus/network_info_plus.dart
that imports:package:network_info_plus/src/network_info_plus_windows.dart
that imports:package:win32/winsock2.dart
that imports:package:win32/src/win32/ws2_32.g.dart
that imports:package:win32/src/variant.dart
that imports:package:win32/src/win32/oleaut32.g.dart
that imports:package:win32/src/structs.g.dart
that imports:package:win32/src/guid.dart
that imports:package:win32/src/win32/ole32.g.dart
that imports:package:win32/src/combase.dart
that imports:package:win32/src/utils.dart
that imports:package:win32/src/win32/user32.g.dart
that imports:package:win32/src/callbacks.dart
that imports:package:win32/src/types.dart
that imports:package:ffi/ffi.dart
that imports:package:ffi/src/utf8.dart
that imports:dart:ffi
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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
WARNING: The '?' is unnecessary because 'dynamic' is nullable without it.
lib/models/error_response.dart:20:10
╷
20 │ dynamic? result;
│ ^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/error_response.dart
WARNING: The left operand can't be null, so the right operand is never executed.
lib/models/pay_data.dart:133:27
╷
133 │ country: country ?? this.country, lastName: '',
│ ^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/pay_data.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
dio |
any |
5.7.0 | 5.7.0 |
edfapg_sdk |
any |
0.1.2 | 0.1.2 |
flutter |
flutter |
0.0.0 | 0.0.0 |
flutter_credit_card |
any |
4.0.1 | 4.0.1 |
network_info_plus |
any |
6.1.2 | 6.1.2 |
webview_flutter |
any |
4.10.0 | 4.10.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
args |
- | 2.6.0 | 2.6.0 |
async |
- | 2.12.0 | 2.12.0 |
characters |
- | 1.3.0 | 1.4.0 |
clock |
- | 1.1.2 | 1.1.2 |
collection |
- | 1.19.0 | 1.19.1 |
dbus |
- | 0.7.10 | 0.7.10 |
dio_web_adapter |
- | 2.0.0 | 2.0.0 |
ffi |
- | 2.1.3 | 2.1.3 |
flutter_web_plugins |
- | 0.0.0 | 0.0.0 |
http_parser |
- | 4.1.1 | 4.1.1 |
intl |
- | 0.18.1 | 0.20.1 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
network_info_plus_platform_interface |
- | 2.0.2 | 2.0.2 |
nm |
- | 0.5.0 | 0.5.0 |
path |
- | 1.9.1 | 1.9.1 |
petitparser |
- | 6.0.2 | 6.0.2 |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 |
sky_engine |
- | 0.0.0 | 0.0.0 |
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_math |
- | 2.1.4 | 2.1.4 |
web |
- | 1.1.0 | 1.1.0 |
webview_flutter_android |
- | 4.2.0 | 4.2.0 |
webview_flutter_platform_interface |
- | 2.10.0 | 2.10.0 |
webview_flutter_wkwebview |
- | 3.16.3 | 3.16.3 |
win32 |
- | 5.9.0 | 5.9.0 |
xml |
- | 6.5.0 | 6.5.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
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 28 errors:
NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT
-lib/royat_iframe.dart:38:18
- The class 'WebViewController' doesn't have an unnamed constructor.UNDEFINED_METHOD
-lib/royat_iframe.dart:39:9
- The method 'setJavaScriptMode' isn't defined for the type 'WebViewController'.UNDEFINED_IDENTIFIER
-lib/royat_iframe.dart:39:27
- Undefined name 'JavaScriptMode'.
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.17
, Flutter 3.27.0
, Dart 3.6.0
.
Check the analysis log for details.