adjust_sdk 4.23.3
adjust_sdk: ^4.23.3 copied to clipboard
This is the Flutter SDK of Adjust™. You can read more about Adjust™ at adjust.com.
We analyzed this package on Jan 15, 2021, and awarded it 75 pub points (of a possible 110):
10/10 points: Provide a valid pubspec.yaml
0/5 points: Provide a valid README.md
Links in `README.md` should be secure. 7 links are insecure.
README.md:2:75
╷
2 │ <p>This is the Flutter SDK of Adjust™. You can read more about Adjust™ at <a href="http://adjust.com">adjust.com</a>.</p>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
Use https
URLs instead.
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Package has an example
- Found example at:
example/lib/main.dart
0/10 points: 20% or more of the public API has dartdoc comments
- 1 out of 205 API elements (0.5 %) 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.
10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)
Found 6 issues. Showing the first 2:
Consider supporting multiple platforms:
Package does not support Flutter platform Web
Because:
package:adjust_sdk/adjust.dart
that declares support for platforms: Android, iOS
20/30 points: code has no errors, warnings, lints, or formatting issues
Found 11 issues. Showing the first 2:
INFO: This function has a return type of 'Future
lib/adjust_config.dart:85:35
╷
85 │ _channel.setMethodCallHandler((MethodCall call) {
│ ┌───────────────────────────────────^
86 │ │ try {
87 │ │ switch (call.method) {
88 │ │ case _attributionCallbackName:
89 │ │ if (attributionCallback != null) {
90 │ │ AdjustAttribution attribution = AdjustAttribution.fromMap(call.arguments);
91 │ │ attributionCallback(attribution);
92 │ │ }
93 │ │ break;
94 │ │ case _sessionSuccessCallbackName:
95 │ │ if (sessionSuccessCallback != null) {
96 │ │ AdjustSessionSuccess sessionSuccess = AdjustSessionSuccess.fromMap(call.arguments);
97 │ │ sessionSuccessCallback(sessionSuccess);
98 │ │ }
99 │ │ break;
100 │ │ case _sessionFailureCallbackName:
101 │ │ if (sessionFailureCallback != null) {
102 │ │ AdjustSessionFailure sessionFailure = AdjustSessionFailure.fromMap(call.arguments);
103 │ │ sessionFailureCallback(sessionFailure);
104 │ │ }
105 │ │ break;
106 │ │ case _eventSuccessCallbackName:
107 │ │ if (eventSuccessCallback != null) {
108 │ │ AdjustEventSuccess eventSuccess = AdjustEventSuccess.fromMap(call.arguments);
109 │ │ eventSuccessCallback(eventSuccess);
110 │ │ }
111 │ │ break;
112 │ │ case _eventFailureCallbackName:
113 │ │ if (eventFailureCallback != null) {
114 │ │ AdjustEventFailure eventFailure = AdjustEventFailure.fromMap(call.arguments);
115 │ │ eventFailureCallback(eventFailure);
116 │ │ }
117 │ │ break;
118 │ │ case _deferredDeeplinkCallbackName:
119 │ │ String uri = call.arguments['uri'];
120 │ │ if (deferredDeeplinkCallback != null) {
121 │ │ deferredDeeplinkCallback(uri);
122 │ │ }
123 │ │ break;
124 │ │ default:
125 │ │ throw new UnsupportedError('[AdjustFlutter]: Received unknown native method: ${call.method}');
126 │ │ }
127 │ │ } catch (e) {
128 │ │ print(e.toString());
129 │ │ }
130 │ │ });
│ └─────^
╵
To reproduce make sure you are using pedantic and run flutter analyze lib/adjust_config.dart
lib/adjust.dart is not formatted according to dartfmt
To format your files run: dartfmt -w .
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
meta | >=1.1.6 <2.0.0 | 1.3.0-nullsafety.6 | 1.3.0-nullsafety.6 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
characters | - | 1.1.0-nullsafety.5 | 1.1.0-nullsafety.5 |
collection | - | 1.15.0-nullsafety.5 | 1.15.0-nullsafety.5 |
typed_data | - | 1.3.0-nullsafety.5 | 1.3.0-nullsafety.5 |
vector_math | - | 2.1.0-nullsafety.5 | 2.1.0-nullsafety.5 |
To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.