fix(android): Envelope worker not starting when autoInitializeNativeSdk is disabled#3420
Package analysis results for sentry_flutter
Score
80/160 points
(50.0%)
Details
Follow Dart file conventions (30/30)
✔ 10/10 points: Provide a valid pubspec.yaml
✔ 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.
Provide documentation (20/20)
✔ 10/10 points: 20% or more of the public API has dartdoc comments
115 out of 175 API elements (65.7 %) have documentation comments.
Some symbols that are missing documentation: sentry_flutter.AdditionalInfoExtractor, sentry_flutter.BindingWrapper.BindingWrapper.new, sentry_flutter.ErrorCallback, sentry_flutter.FlutterSentryAttachment, sentry_flutter.LoadReleaseIntegration.LoadReleaseIntegration.new.
✔ 10/10 points: Package has an example
Platform support (20/20)
✔ 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
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:sentry_flutter/sentry_flutter.dartthat imports:package:sentry_flutter/src/sentry_flutter.dartthat imports:package:sentry_flutter/src/integrations/integrations.dartthat imports:package:sentry_flutter/src/integrations/load_release_integration.dartthat imports:package:package_info_plus/package_info_plus.dartthat imports:package:package_info_plus/src/package_info_plus_windows.dartthat imports:package:package_info_plus/src/file_version_info.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:sentry_flutter/sentry_flutter.dartthat imports:package:sentry_flutter/src/sentry_flutter.dartthat imports:package:sentry_flutter/src/native/factory.dartthat imports:package:sentry_flutter/src/native/factory_real.dartthat imports:package:sentry_flutter/src/native/java/sentry_native_java.dartthat imports:package:sentry_flutter/src/native/java/binding.dartthat imports:package:jni/jni.dartthat declares support for platforms:Android,Windows,Linux.
Package does not support platform `Linux`.
Because:
package:sentry_flutter/sentry_flutter.dartthat imports:package:sentry_flutter/src/sentry_flutter.dartthat imports:package:sentry_flutter/src/integrations/integrations.dartthat imports:package:sentry_flutter/src/integrations/load_release_integration.dartthat imports:package:package_info_plus/package_info_plus.dartthat imports:package:package_info_plus/src/package_info_plus_windows.dartthat imports:package:package_info_plus/src/file_version_info.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:sentry_flutter/sentry_flutter.dartthat imports:package:sentry_flutter/src/sentry_flutter.dartthat imports:package:sentry_flutter/src/native/factory.dartthat imports:package:sentry_flutter/src/native/factory_real.dartthat imports:package:sentry_flutter/src/native/java/sentry_native_java.dartthat imports:package:sentry_flutter/src/native/java/binding.dartthat imports:package:jni/jni.dartthat declares support for platforms:Android,Windows,Linux.
Package not compatible with platform Web
Because:
package:sentry_flutter/sentry_flutter.dartthat imports:package:sentry_flutter/src/sentry_flutter.dartthat imports:package:sentry_flutter/src/integrations/integrations.dartthat imports:package:sentry_flutter/src/integrations/load_release_integration.dartthat imports:package:package_info_plus/package_info_plus.dartthat imports:package:package_info_plus/src/package_info_plus_linux.dartthat imports:dart:io
Pass static analysis (0/50)
❌ 0/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
ERROR: Undefined name 'SentryInternalLogger'.
lib/src/isolate/isolate_worker.dart:145:3
╷
145 │ SentryInternalLogger.configure(
│ ^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/isolate/isolate_worker.dart
ERROR: Const variables must be initialized with a constant value.
lib/src/utils/internal_logger.dart:6:24
╷
6 │ const internalLogger = SentryInternalLogger('sentry_flutter');
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/utils/internal_logger.dart
Support up-to-date dependencies (10/40)
❌ 0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
^1.16.0 |
1.19.1 | 1.19.1 | |
ffi |
^2.0.0 |
2.1.4 | 2.1.4 | |
jni |
0.14.2 |
0.14.2 | 0.15.2 | |
meta |
^1.3.0 |
1.17.0 | 1.17.0 | |
package_info_plus |
>=1.0.0 |
9.0.0 | 9.0.0 | |
sentry |
9.9.1 |
9.9.1 | 9.9.1 | |
web |
^1.1.0 |
1.1.1 | 1.1.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 | |
crypto |
- | 3.0.7 | 3.0.7 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
package_config |
- | 2.2.0 | 2.2.0 | |
package_info_plus_platform_interface |
- | 3.2.1 | 3.2.1 | |
path |
- | 1.9.1 | 1.9.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
source_span |
- | 1.10.1 | 1.10.1 | |
stack_trace |
- | 1.12.1 | 1.12.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 | |
uuid |
- | 4.5.2 | 4.5.2 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
win32 |
- | 5.15.0 | 5.15.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `0.14.2` on jni does not support the stable version `0.15.0`.
Try running dart pub upgrade --major-versions jni 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 3 errors:
UNDEFINED_IDENTIFIER-lib/src/isolate/isolate_worker.dart:145:3- Undefined name 'SentryInternalLogger'.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE-lib/src/utils/internal_logger.dart:6:24- Const variables must be initialized with a constant value.UNDEFINED_FUNCTION-lib/src/utils/internal_logger.dart:6:24- The function 'SentryInternalLogger' isn't defined.
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.
Versions
- Pana: 0.23.3
- Dart: 3.10.4
- Flutter: 3.38.5