darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
193 stars 127 forks source link

Conflicting with google_fonts package #346

Closed ellet0 closed 11 months ago

ellet0 commented 12 months ago

What version are you using?

5.0.11

What OS and version are you using to local deploy your application?

13.4 (22F66)

What platforms are you seeing the problem on?

Android, iOS

pubspec.yaml

name: Dump App
description: Dump app description
publish_to: 'none'
version: 1.0.0+1

environment:
  sdk: '>=3.0.0 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter

  flutter_facebook_auth: ^5.0.11
  google_fonts: ^4.0.5

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  generate: true

  uses-material-design: true

Describe the Bug

The issue that, when using the latest version of flutter_facebook_auth with the latest version of google_fonts which is 4.0.5 then there will be some conflicting:

Resolving dependencies... Because no versions of flutter_facebook_auth match >5.0.11 <6.0.0 and flutter_facebook_auth 5.0.11 depends on facebook_auth_desktop ^0.0.9, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop ^0.0.9. And because no versions of facebook_auth_desktop match >0.0.9 <0.1.0, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop 0.0.9. And because facebook_auth_desktop 0.0.9 depends on http ^0.13.5 and google_fonts >=4.0.5 depends on http ^1.0.0, flutter_facebook_auth ^5.0.11 is incompatible with google_fonts >=4.0.5. So, because alrayada depends on both google_fonts ^4.0.5 and flutter_facebook_auth ^5.0.11, version solving failed. exit code 1

this can be fixed by using google_fonts 4.0.4 but that just a workaround and not a real solution, the 4.0.5 version of google_fonts change notes: Bumped http version to 1.0.0 so can this conflict fixed by flutter_facebook_auth? or it need changes from both

Expected Behavior

We all should be be able to use the latest version of al the packages

To Reproduce

Create a new flutter flutter

Make sure you have the latest version of flutter: flutter upgrade

then add those two packages:

flutter pub add flutter_facebook_auth
flutter pub add google_fonts

if you didn't get the issue, please make sure to upgrade them to the latest version

fluter pub upgrade --major-versions

Relevant log output

Resolving dependencies...
Because no versions of flutter_facebook_auth match >5.0.11 <6.0.0 and flutter_facebook_auth 5.0.11 depends on facebook_auth_desktop ^0.0.9, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop ^0.0.9.
And because no versions of facebook_auth_desktop match >0.0.9 <0.1.0, flutter_facebook_auth ^5.0.11 requires facebook_auth_desktop 0.0.9.
And because facebook_auth_desktop 0.0.9 depends on http ^0.13.5 and google_fonts >=4.0.5 depends on http ^1.0.0, flutter_facebook_auth ^5.0.11 is incompatible with google_fonts >=4.0.5.
So, because alrayada depends on both google_fonts ^4.0.5 and flutter_facebook_auth ^5.0.11, version solving failed.
exit code 1

flutter doctor -v

[✓] Flutter (Channel stable, 3.10.1, on macOS 13.4 22F66 darwin-arm64, locale en-IQ)
    • Flutter version 3.10.1 on channel stable at /Users/ahmedhnewa/development/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d3d8effc68 (8 days ago), 2023-05-16 17:59:05 -0700
    • Engine revision b4fb11214d
    • Dart version 3.0.1
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/ahmedhnewa/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_SDK_ROOT = /Users/ahmedhnewa/Library/Android/sdk
    • Java binary at: /Users/ahmedhnewa/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

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

[✓] Android Studio (version 2022.2)
    • Android Studio at /Users/ahmedhnewa/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841/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.6b802.4-9586694)

[✓] IntelliJ IDEA Community Edition (version 2023.1.2)
    • IntelliJ at /Users/ahmedhnewa/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/231.9011.34/IntelliJ IDEA CE.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.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (3 available)
    • SM S908E (mobile) • R5CT5094LAV • android-arm64  • Android 13 (API 33)
    • macOS (desktop)   • macos       • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 110.0.5481.177

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

• No issues found!

Info.plist (iOS)

No response

Podfile (iOS)

No response

AndroidManifest.xml

No response

MainActivity.java

No response

MainActivity.kt

No response

index.html

No response

Info.plist (macOS)

No response

darwin-morocho commented 11 months ago

hi @ahmedhnewa the problem is that google_fonts package uses http:^1.0.0 witch requires dart 3.x , if I upgrade the http package every developer that is using this package must update their projects to dart 3.x

darwin-morocho commented 11 months ago

check 6.x.x