Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] JS interop and package:web migration #407

Open
shrijanRegmi opened this issue May 20, 2024 · 2 comments
Open

[Feature Request] JS interop and package:web migration #407

shrijanRegmi opened this issue May 20, 2024 · 2 comments
Labels
feature help wanted Extra attention is needed

Comments

@shrijanRegmi
Copy link

What version are you using?

flutter_facebook_auth : ^7.0.0

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

macOS 14.4.1

What platforms are you seeing the problem on?

web

pubspec.yaml

flutter_facebook_auth: ^7.0.0

Describe the Bug

I'm trying to use WASM as a compilation target when building my application for the web. flutter_facebook_auth hasn't migrated to dart:js_interop, which replaces package:js & dart:js and package:web, which replaces dart:html (and other web libraries). Therefore, I am not able to use WASM for my application.

Would really appreciate if you could take this matter into consideration!

Expected Behavior

JS interop and package:web migration

To Reproduce

  1. Just run flutter build web --wasm in the terminal

Relevant log output

No response

flutter doctor -v

[!] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-NP)
    • Flutter version 3.22.0 on channel stable at /Users/shrijanregmi/fvm/versions/3.22.0
! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.2.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/shrijanregmi/fvm/versions/3.22.0. Consider adding /Users/shrijanregmi/fvm/versions/3.22.0/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (11 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3
    • 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 33.0.2)
    • Android SDK at /Users/shrijanregmi/Library/Android/sdk
    • Platform android-34, build-tools 33.0.2
    • 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.6b802.4-9586694)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2022.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
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

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

[✓] Connected device (4 available)
    • Shrijan’s iPhone  (mobile)      • 00008130-001420681A90001C • ios            • iOS 17.4.1 21E236
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 125.0.6422.60

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

! Doctor found issues in 1 category.

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
Copy link
Owner

@shrijanRegmi at the moment I am so busy. Please feel free to open a PR to add this new feature

@darwin-morocho darwin-morocho added feature help wanted Extra attention is needed labels Jun 11, 2024
@cuong0993
Copy link
Contributor

#422

Can be used now to build wasm like below

dependency_overrides:
  flutter_facebook_auth_web:
    git:
      path: facebook_auth_web
      url: https://github.com/cuong0993/flutter-facebook-auth.git
  flutter_secure_storage_web: 2.0.0-beta.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants