darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
197 stars 144 forks source link

upgrade js from js ^0.6.3 to js ^0.7.3 #392

Open Yoda-Man opened 9 months ago

Yoda-Man commented 9 months ago

What version are you using?

latest version

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

Ubuntu

What platforms are you seeing the problem on?

Android

pubspec.yaml

version: 0.9.34+1

environment:
  sdk: ">=3.3.0 <4.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: 
  just_audio:
  share_plus: 
  firebase_core:
  firebase_auth: 
  google_sign_in: 
  flutter_facebook_auth:
  chewie:
  webview_universal:
  dio:
  pdfrx: ^1.0.6
  validators:
  file_picker:
  mime:
  http_parser:
  envied:
  flutter_spinkit:
  custom_bottom_sheet:
  path_provider:
  http:
  path:
  audio_session:
  rxdart:
  video_player:
  package_info_plus:
  synchronized:
  url_launcher:
  aws_s3_upload_lite:
  carousel_slider:

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^3.0.1
  envied_generator: 
  build_runner:

Describe the Bug

unable to build project due to old dependencies

Expected Behavior

I expect the app to buid

To Reproduce

flutter build appbundle

Relevant log output

No response

flutter doctor -v

[✓] Flutter (Channel stable, 3.19.0, on Ubuntu 22.04.4 LTS 6.5.0-18-generic, locale en_ZA.UTF-8)
    • Flutter version 3.19.0 on channel stable at /home/ind/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bae5e49bc2 (4 days ago), 2024-02-13 17:46:18 -0800
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/ind/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /snap/android-studio/148/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
    • cmake version 3.28.3
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from
      https://github.com/ninja-build/ninja/releases
    ✗ pkg-config is required for Linux development.
      It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from
      https://www.freedesktop.org/wiki/Software/pkg-config/

[✓] Android Studio (version 2023.1)
    • Android Studio at /snap/android-studio/148
    • Flutter plugin version 77.2.1
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.86.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.82.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.4 LTS 6.5.0-18-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 121.0.6167.184

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

! Doctor found issues in 2 categories.

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 9 months ago

@Yoda-Man at the moment there is no way to upgrade to js:0.7.1 due to https://pub.dev/packages/flutter_secure_storage needs to upgrade their dependencies too.

Try using dependencies_override in your pubspec.yaml

alexobviously commented 6 months ago

@Yoda-Man at the moment there is no way to upgrade to js:0.7.1 due to https://pub.dev/packages/flutter_secure_storage needs to upgrade their dependencies too.

Try using dependencies_override in your pubspec.yaml

flutter_secure_storage now has a web version with js 0.7.1 - flutter_secure_storage_web: ^2.0.0-beta.1

darwin-morocho commented 5 months ago

@Yoda-Man at the moment there is no way to upgrade to js:0.7.1 due to https://pub.dev/packages/flutter_secure_storage needs to upgrade their dependencies too. Try using dependencies_override in your pubspec.yaml

flutter_secure_storage now has a web version with js 0.7.1 - flutter_secure_storage_web: ^2.0.0-beta.1

I have tried to upgrade the flutter_secure_storage but it did not working

Maybe using the next code you can solve your issue

dependency_overrides:
  flutter_secure_storage_web: ^2.0.0-beta.1