Skip to content

[camerax] the camera_android_camerax plugin drags in integration_test dependency #145992

Closed
flutter/packages
#6445

Description

@ekuleshov

Steps to reproduce

When you add the camera_android_camerax as a dependency to your project it also drags in the integration_test dependency with all its test-related dependency subtree.

Expected results

The integration_test should be in the dev_dependencies section of the plugins' pubspec.yaml

Actual results

The integration_test is currently listed in the dependencies section of the plugins' pubspec.yaml

Code sample

N/A

Screenshots or Video

N/A

Logs

N/A

Flutter Doctor output

N/A

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Apr 1, 2024
  2. huycozy commented on Apr 1, 2024

    @huycozy
    Member

    The issue is on the current version camera_android_camerax: ^0.6.1:

    https://github.com/flutter/packages/blob/d5aff1980bc8d13c714864e49d2ba295bf6a9e9a/packages/camera/camera_android_camerax/pubspec.yaml#L20-L26

    flutter doctor -v (stable and master)
    [✓] Flutter (Channel stable, 3.19.5, on macOS 14.1 23B74 darwin-x64, locale en-VN)
        • Flutter version 3.19.5 on channel stable at /Users/huynq/Documents/GitHub/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 300451adae (25 hours ago), 2024-03-27 21:54:07 -0500
        • Engine revision e76c956498
        • Dart version 3.3.3
        • DevTools version 2.31.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-34, build-tools 34.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 15.2)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 15C500b
        • CocoaPods version 1.15.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2023.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • android-studio-dir = /Applications/Android Studio.app/
        • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    
    [✓] VS Code (version 1.87.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.84.0
    
    [✓] Connected device (3 available)
        • Pixel 7 (mobile) • 2B171FDH20084L • android-arm64  • Android 14 (API 34)
        • macOS (desktop)  • macos          • darwin-x64     • macOS 14.1 23B74 darwin-x64
        • Chrome (web)     • chrome         • web-javascript • Google Chrome 123.0.6312.86
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.22.0-1.0.pre.37, on macOS 14.1 23B74 darwin-x64, locale en-VN)
        • Flutter version 3.22.0-1.0.pre.37 on channel master at /Users/huynq/Documents/GitHub/flutter_master
        ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision fd8561a917 (6 hours ago), 2024-03-31 17:12:24 -0400
        • Engine revision 4f6b832c8e
        • Dart version 3.5.0 (build 3.5.0-5.0.dev)
        • DevTools version 2.34.1
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-34, build-tools 34.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 15.2)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 15C500b
        • CocoaPods version 1.15.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2023.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • android-studio-dir = /Applications/Android Studio.app/
        • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    
    [✓] VS Code (version 1.87.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.84.0
    
    [✓] Connected device (3 available)
        • iPad (mobile)   • 00008103-000A1464346A201E • ios            • iOS 17.2 21C62
        • macOS (desktop) • macos                     • darwin-x64     • macOS 14.1 23B74 darwin-x64
        • Chrome (web)    • chrome                    • web-javascript • Google Chrome 123.0.6312.87
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
  3. added
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    team-androidOwned by Android platform team
    and removed
    in triagePresently being triaged by the triage team
    on Apr 1, 2024
  4. self-assigned this
    on Apr 1, 2024
  5. added
    P1High-priority issues at the top of the work list
    on Apr 1, 2024
  6. reidbaker commented on Apr 1, 2024

    @reidbaker
    Contributor

    @ekuleshov Thank you for finding and filing this issue!

  7. ekuleshov commented on Apr 1, 2024

    @ekuleshov
    Author

    @ekuleshov Thank you for finding and filing this issue!

    You may have to close/reject my PR then flutter/packages#6437

  8. camsim99 commented on Apr 1, 2024

    @camsim99
    Contributor

    @ekuleshov Thank you for finding and filing this issue!

    You may have to close/reject my PR then flutter/packages#6437

    Ah yes I don't think they saw it. My apologies -- I should have linked it. Looks like flutter/packages#6445 will land first.

  9. added a commit that references this issue on Apr 1, 2024
    1b9a9c5
  10. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 2, 2024
  11. github-actions commented on Apr 16, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Apr 16, 2024
  13. added a commit that references this issue on May 22, 2024
    978d9c0
  14. added a commit that references this issue on Jun 10, 2026
    1af7956
  15. added a commit that references this issue on Jun 19, 2026
    e4ec15e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listfound in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions