kakao / kakao_flutter_sdk

Flutter SDK for Kakao Open API
Apache License 2.0
192 stars 71 forks source link

[Bug] share_plus dependency issue #194

Closed Jaew00Shin closed 2 months ago

Jaew00Shin commented 3 months ago

이슈 설명 (Issue description)

Flutter : 3.24.0
Dart: 3.5.0
kakao_flutter_sdk: ^1.9.5
kakao_flutter_sdk_user: ^1.9.5
share_plus: ^10.0.2
Because share_plus >=10.0.1 depends on web ^1.0.0 and kakao_flutter_sdk_common 1.9.5 depends on web ^0.5.1, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_common 1.9.5.
And because kakao_flutter_sdk_auth 1.9.5 depends on kakao_flutter_sdk_common 1.9.5, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_auth 1.9.5.
And because kakao_flutter_sdk_user 1.9.5 depends on kakao_flutter_sdk_auth 1.9.5 and no versions of kakao_flutter_sdk_user match >1.9.5 <2.0.0, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_user ^1.9.5.
So, because rock2you depends on both kakao_flutter_sdk_user ^1.9.5 and share_plus ^10.0.2, version solving failed.

You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on share_plus: flutter pub add share_plus:^10.0.0

share_plus 최신버전과 kakao_flutter_sdk 최신버전이 서로 의존성 이슈가 맞지 않습니다. 이에 수정이 필요해보입니다.

앱 ID (App ID)

1107113

플랫폼 (Platform)

Android, iOS

디바이스 (Device)

Samsung Galaxy S9+

Version

^1.9.5

Flutter SDK

3.24.0

재현 방법 (Steps to reproduce)

kakao_flutter_sdk: ^1.9.5
kakao_flutter_sdk_user: ^1.9.5
share_plus: ^10.0.2

코드 샘플 (Code Sample)

No response

Logs

Because share_plus >=10.0.1 depends on web ^1.0.0 and kakao_flutter_sdk_common 1.9.5 depends on web ^0.5.1, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_common 1.9.5.
And because kakao_flutter_sdk_auth 1.9.5 depends on kakao_flutter_sdk_common 1.9.5, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_auth 1.9.5.
And because kakao_flutter_sdk_user 1.9.5 depends on kakao_flutter_sdk_auth 1.9.5 and no versions of kakao_flutter_sdk_user match >1.9.5 <2.0.0, share_plus >=10.0.1 is incompatible with kakao_flutter_sdk_user ^1.9.5.
So, because rock2you depends on both kakao_flutter_sdk_user ^1.9.5 and share_plus ^10.0.2, version solving failed.

You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on share_plus: flutter pub add share_plus:^10.0.0
Process finished with exit code 1

Flutter Doctor

flutter doctor -v                                                                                                   ✔ │ took 4h 10m 57s │ at 20:45:31 
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64, locale ko-KR)
    • Flutter version 3.24.0 on channel stable at /Users/shinjaewoo/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3주 전), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/shinjaewoo/Library/Android/sdk
    • Platform android-34, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • 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
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (6 available)            
    • SM G965N (mobile)               • 2193d76caf0c7ece          • android-arm64  • Android 10 (API 29)
    • 신재우의 iPhone (mobile)            • 00008130-001240622483401C • ios            • iOS 17.6.1 21G93
    • 신재우의 iPad (mobile)              • 00008103-000671983ED9001E • ios            • iOS 17.6.1 21G93
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.6.1 23G93 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.6.1 23G93 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 128.0.6613.84

[✓] Network resources
    • All expected network resources are available.

• No issues found!
mbkim95 commented 3 months ago

안녕하세요

이슈 확인했고, 빠른 시일 내에 대응하도록 하겠습니다. 급하신 경우 pubspec.yaml 파일에 아래와 같이 명시해서 임시조치를 해서 사용하실 수 있을 것 같아요

 dependency_overrides:
  web: ^1.0.0

그리고 이슈와 별개로 첨부해주신 pubspec.yaml 파일을 보면 kakao_flutter_sdkkakao_flutter_sdk_user 모두 의존성을 추가해주셨는데요, kakao_flutter_sdk의존성을 추가하는 경우 kakao_flutter_sdk_user 를 포함한 kakao_flutter_sdk 관련 패키지 모두 의존성 추가하기 때문에 중복해서 명시할 필요 없는 점 참고 부탁드려요

mbkim95 commented 3 months ago

@Jaew00Shin 안녕하세요. package:web 1.0.0 버전으로 업데이트해서 1.9.6 버전 배포했습니다. 이슈 제보주셔서 감사합니다