fidelisa / flutter_plugins Goto Github PK
View Code? Open in Web Editor NEWFlutter plugins
License: MIT License
Flutter plugins
License: MIT License
When I try to run the example for flutter_firebase_ui I keep getting into this error:
PlatformException(sign_in_failed, Status{statusCode=DEVELOPER_ERROR, resolution=null}, null)
in: flutter\packages\flutter\lib\src\services\message_codecs.dart
Steps to reproduce:
Firebase_flutter_ui requires to use the Github repo flutter_twitter_login which does not build on Windows 10.
flutter run
fails when executed in the example folder:
agautam@jarvis ~/workspace/flutter/zz_samples/fidelisa-flutter_plusgins/packages/flutter_firebase_ui/example (master) $ flutter run
Launching lib/main.dart on iPhone 11 in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the
App Store.
Running pod install... 1.3s
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (`arm64`)
Finding Podfile changes
A google_sign_in_web
- Flutter
- firebase_auth
- firebase_core
- flutter_facebook_login
- flutter_twitter_login
- google_sign_in
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `flutter_facebook_login` from `.symlinks/plugins/flutter_facebook_login/ios`
-> Fetching podspec for `flutter_twitter_login` from `.symlinks/plugins/flutter_twitter_login/ios`
-> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`
-> Fetching podspec for `google_sign_in_web` from `.symlinks/plugins/google_sign_in_web/ios`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in
repo update
CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only perfomed
in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/6.24.0/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/5.16.0/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_b_3_c.txt exists! Returning local because checking is only perfomed
in repo update
CDN: trunk Relative path: Specs/b/3/c/FBSDKLoginKit/6.5.2/FBSDKLoginKit.podspec.json exists! Returning local
because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_d_4_0.txt exists! Returning local because checking is only perfomed
in repo update
CDN: trunk Relative path: Specs/d/4/0/GoogleSignIn/5.0.2/GoogleSignIn.podspec.json exists! Returning local
because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_b_a_9.txt exists! Returning local because checking is only perfomed
in repo update
CDN: trunk Relative path: Specs/b/a/9/TwitterKit/3.4.2/TwitterKit.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_a_8_e.txt exists! Returning local because checking is only perfomed
in repo update
CDN: trunk Relative path: Specs/a/8/e/TwitterCore/3.2.0/TwitterCore.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/5.19.0/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/5.20.0/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/5.20.1/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
CDN: trunk Relative path: Specs/0/3/5/Firebase/5.20.2/Firebase.podspec.json exists! Returning local because
checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In snapshot (Podfile.lock):
Firebase/Auth (= 5.16.0)
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 0.0.1, which depends on
Firebase/Auth (~> 5.19)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/Auth` inside your development pod `firebase_auth`.
You should run `pod update Firebase/Auth` to apply changes you've made.
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1065:in `block in
resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:1063:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:234:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
Error launching application on iPhone 11.
Not sure where this bug started. Does anyone have a fix on this?
Running pod install...
Starting Xcode build...
Xcode build done.
Falling back to loading access token from NSUserDefaults because of simulator bug
Falling back to storing access token in NSUserDefaults because of simulator bug
Falling back to loading access token from NSUserDefaults because of simulator bug
Falling back to storing access token in NSUserDefaults because of simulator bug
Falling back to loading access token from NSUserDefaults because of simulator bug
Falling back to storing access token in NSUserDefaults because of simulator bug
FBSDKLog: Missing [FBSDKAppEvents appID] for [FBSDKAppEvents publishInstall:]
FBSDKLog: Missing [FBSDKAppEvents appEventsState.appID] for [FBSDKAppEvents flushOnMainQueue:]
FBSDKLog: Missing [FBSDKAppEvents appEventsState.appID] for [FBSDKAppEvents flushOnMainQueue:]
[1.1 EBD4E4A9-47B1-4B73-8ACA-F43768B85BF1 192.168.1.7.51464<->216.58.220.202:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.488s, DNS @0.010s took 0.064s, TCP @0.077s took 0.089s, TLS took 0.202s
bytes in/out: 3308/1072, packets in/out: 9/10, rtt: 0.085s, retransmitted packets: 0, out-of-order packets: 0
[2.1 9C251829-7C8E-4A4A-8F82-D1C927E371F7 192.168.1.7.51465<->31.13.95.8:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.488s, DNS @0.001s took 0.090s, TCP @0.092s took 0.043s, TLS took 0.105s
bytes in/out: 4126/999, packets in/out: 8/8, rtt: 0.041s, retransmitted packets: 0, out-of-order packets: 0
5.4.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
Syncing files to device iPhone X...
5.4.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.50001000 started
5.4.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
[3.1 42F1BD47-5FCD-4865-B579-6A1D3E504F3B 192.168.1.7.51496<->172.217.161.138:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.813s, DNS @0.001s took 0.015s, TCP @0.019s took 0.093s, TLS took 0.206s
bytes in/out: 3704/1032, packets in/out: 9/10, rtt: 0.094s, retransmitted packets: 0, out-of-order packets: 0
flutter: null
flutter: NoSuchMethodError: The getter 'isEmpty' was called on null.
Receiver: null
Tried calling: isEmpty
I do not want to use facebook option in my app when I used this library. But is giving facebook SDK error when I include this dependency. how to disable facebook from default options?
Running the example works fine but when setting up my app and add flutter_firebase_ui: "^0.0.4" to pubspec.yaml will crash the app (http://take.ms/mXM5E). Even just adding the hello world sample code in my main.dart, the app will still crash. Is there anything missing here or this is a bug?
This will surely not occur often but you should always expect people to do strange things when using your app.
Steps to reproduce:
Expected behavior:
app creates a new firebase user with the updated credentials.
What's happening instead:
App creates a new user with from the entries before the change was made.
Hello,
Thank you for the library!! :) I was able to make it work easily. One question: Would you kindly allow us to disable the appBar in the UI?
Control over the colors of the text would also be handy, if it's not too much hassle.
Thank you!!
Using the following in pubspec.yaml.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
firebase_admob: "^0.5.4+1"
redux: "^3.0.0"
flutter_redux: "^0.5.0"
flutter_firebase_ui: "^0.0.4"
Build returns this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Seems related to:
I see you made a french and German localization of this library, but I can't find how to use it.
I set my locale to french in my app, I can get strings in french with MaterialLocalizations.of(context)
,
but the SignInScreen
is still in english.
my code for setting up the localization:
@override
Widget build(BuildContext context) {
return new MaterialApp(
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: [
const Locale('fr', 'fr')
]
...
)
I figured I could manually edit the library default locale, but I would like the lib to adapt to the device locale.
thank you for your help!
I've tried your project, updated the pubspec for auth login and got this
Throwing away cached asset graph because the build phases have changed. This most commonly would happen as a result of adding a new dependency or updating your dependencies.
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
import 'generated_plugin_registrant.dart';
from flutter_firebase_ui|lib/main_web_entrypoint.dart at 5:1
Failed after 8.5s
Finished with error: Failed to build application for the Web.
I have a stateful widget, with a FirebaseAnimatedList inside the build method. If there is initially no data retrieved from the Query, and I add data after the initial build method, the list does not update to show the data. If I dismiss the page, and come back after adding the data, it will show up just fine. I've set up break points inside the animated list, and it will partially rebuild when I add the data, but it will not get to the point where it returns the widget. Is this a bug or expected behavior?
Hi, thanks for sharing your plugin. I'm having difficulty getting it to work. My app immediately stops working on my Android device when I launch it. However, I was able to download, build and launch your example app on the same Android device without any problems.
I am new to Flutter, so I'm probably doing something wrong. I tried for a couple of hours to get your plugin to work in my app without success, so any suggestions are greatly appreciated.
I was already using the firebase_auth plugin and was able to log in using Google with their example code copied into my main.dart file. This leads me to think I have FireBase Auth set up in my app correctly.
I removed the firebase_auth and google_sign_in dependencies and added a dependency for your plugin in my pubspec.yaml file, and copied your example code into my main.dart file.
Before:
dependencies:
flutter:
sdk: flutter
google_sign_in: ^3.0.4
firebase_auth: ^0.5.15
After:
dependencies:
flutter:
sdk: flutter
flutter_firebase_ui: ^0.0.8
The only difference I've found is in my google-services.json file. My oauth_client section looks like this (note the client_type value of 1 and android_info subsection):
"oauth_client": [
{
"client_id": "xxxxxxxxxxxxx.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.xxxxxxxxx.xxxxxxxxxx",
"certificate_hash": "xxxxxxxxxxxxxxxx"
}
},
In your example app's google-services.json file, your oauth_client section has a client_type value of 3 and is missing the android_info:
"oauth_client": [
{
"client_id": "417099856437-4im65rk0ch0f9u9d5iajrkivi93fu8o9.apps.googleusercontent.com",
"client_type": 3
}
],
Do you know if the different client type value is causing my issue? Any suggestions on how to fix this? Thanks again.
[email protected] is the email indicated on your library page at flutter.dev. I have tried contacting you and that email doesn't work. Please contact me at [email protected] or [email protected], I am trying to make this thing work and it's not working!!!!!!!!!!!!!!!!!!!
I using the same gmail that I use to login as Google account to login as email. It prompt me the email already used and as me proceed Sign in as Google.
After I select "Sign in with Google" it hangs. below is the log
W/DynamiteModule( 7066): Local module descriptor class for com.google.firebase.auth not found.
W/BiChannelGoogleApi( 7066): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@7c74f93
W/DynamiteModule( 7066): Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth( 7066): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth( 7066): [FirebaseAuth:] Preparing to create service connection to gms implementation
I/flutter ( 7066): [google.com]
I/flutter ( 7066): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter ( 7066): The following assertion was thrown while handling a gesture:
I/flutter ( 7066): type 'String' is not a subtype of type 'Null' of 'result'
I/flutter ( 7066):
I/flutter ( 7066): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 7066): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 7066): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 7066): https://github.com/flutter/flutter/issues/new
I/flutter ( 7066):
I/flutter ( 7066): When the exception was thrown, this was the stack:
I/flutter ( 7066): #0 _ModalRoute&TransitionRoute&LocalHistoryRoute.didPop (package:flutter/src/widgets/routes.dart)
I/flutter ( 7066): #1 NavigatorState.pop (package:flutter/src/widgets/navigator.dart:1682:15)
I/flutter ( 7066): #2 _EmailViewState._showDialogSelectOtherProvider... (package:flutter_firebase_ui/email_view.dart:121:47)
I/flutter ( 7066): #3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:494:14)
I/flutter ( 7066): #4 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:549:30)
I/flutter ( 7066): #5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
I/flutter ( 7066): #6 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9)
I/flutter ( 7066): #7 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:94:7)
I/flutter ( 7066): #8 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
I/flutter ( 7066): #9 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
I/flutter ( 7066): #10 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
I/flutter ( 7066): #11 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19)
I/flutter ( 7066): #12 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
I/flutter ( 7066): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
I/flutter ( 7066): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
I/flutter ( 7066): #15 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
I/flutter ( 7066): #16 _invoke1 (dart:ui/hooks.dart:134:13)
I/flutter ( 7066): #17 _dispatchPointerDataPacket (dart:ui/hooks.dart:91:5)
I/flutter ( 7066):
I/flutter ( 7066): Handler: onTap
I/flutter ( 7066): Recognizer:
I/flutter ( 7066): TapGestureRecognizer#d55d4(debugOwner: GestureDetector, state: possible, won arena, finalPosition:
I/flutter ( 7066): Offset(189.1, 361.3), sent tap down)
I/flutter ( 7066): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/FirebaseAuth( 7066): [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth( 7066): [FirebaseAuth:] Preparing to create service connection to gms implementation
"Because flutter_firebase_ui >=0.0.13 depends on firebase_auth ^0.6.2+1 and flutter_starter depends on firebase_auth 0.8.2, flutter_firebase_ui >=0.0.13 is forbidden.
So, because flutter_starter depends on flutter_firebase_ui ^0.0.13, version solving failed."
The "Sign in with email" process leads to an unwanted and unpredictable issue.
The time between the hit of the submit button and the ending of the operation, the submit button remain clickable and this could lead to receiving error message, due to user double click.
This behavior has been erroneously identified as a bug during iOS Apple Store verification, considering it an issue regarding "Guideline 2.1 - Performance - App Completeness".
Steps to reproduce:
start the app
hit 'Sign in with email' button
enter email
enter name
enter password
submit
In the meanwhile, hit the submit button once again
Expected behavior:
app creates correctly a new firebase user with the updated credentials
app show an error message (in our case, app did not recognize the password field is over 6 characters long), causing the user to believe that the registration process has not been completed
Having firebase_auth
at version ^0.5.7
in my project as requested by the flutter_firebase_ui
causes the following error to be thrown:
FAILURE: Build failed with an exception.
* What went wrong:
Failed to capture fingerprint of input files for task ':app:checkDebugClasspath' property 'compileClasspath' during up-to-date check.
> The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
Please bump the version to ^0.6.2
I made an UI which is looking more like the native Firebase Auth UI. Can we maybe colaborate on this, and create something nice?
It's in https://github.com/joostlek/Eros
Page title stays "Connexion" for new email sign ups.
Should change to "FFULocalizations.of(context).signInLabel"
sign_up_view.dart:
Possible problematic code:
appBar: new AppBar(
title: new Text("Connexion"),
elevation: 4.0,
),
Expected:
Page title should adapt to supported Locale
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.