flutter_twitter_login icon indicating copy to clipboard operation
flutter_twitter_login copied to clipboard

Incompatible with Twitter Kit 3

Open deckerst opened this issue 6 years ago • 9 comments

It seems that flutter_twitter_login 1.1.0 is only compatible with Twitter Kit v2.x, and fails to compile with Twitter Kit v3.x.

This is a blocker for me because other dependencies require that my iOS project has a minimum deployment target of 10.0, which then enforces Twitter Kit v3.x (I'm not proficient at Xcode/iOS development, but this seems to be the reason).

deckerst avatar Aug 22 '18 05:08 deckerst

@deckerst I forked this repo and updated TwitterKit to 3>. Checkout => https://github.com/eudangeld/flutter_twitter_login In your pubspec add =>

flutter_twitter_login:
  git: git://github.com/eudangeld/flutter_twitter_login.git

eudangeld avatar Aug 31 '18 18:08 eudangeld

@eudangeld great, thank you!

I've tried it and it works fine, but I'd like to suggest a few things regarding the doc in README:

  • you could remove the "IOS SETUP" AppDelegate change section (copied from the official Twitter doc) as it works without the change,
  • same with the "SETUP YOUR PODFILE" section, the default seems fine,
  • you could mention the requirement that the minimum deployment target is iOS 10.1.

deckerst avatar Sep 03 '18 01:09 deckerst

@deckerst Thank's for your feedback, i changed the readme .

eudangeld avatar Sep 03 '18 14:09 eudangeld

flutter_twitter_login: git: git://github.com/eudangeld/flutter_twitter_login.git

If I add the above lines in pubspec, I get the below error.

Error on line 24, column 8 of pubspec.yaml: Invalid version constraint: Could not parse version "git://github.com/eudangeld/flutter_twitter_login.git". Unknown text at "git://github.com/eudangeld/flutter_twitter_login.git". git: git://github.com/eudangeld/flutter_twitter_login.git ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pub upgrade failed (65)

devapalanisamy avatar Sep 14 '18 22:09 devapalanisamy

@devapalanisamy You have to add a tab (usually, 2 spaces), YAML parsing is strongly relaying on that, like Python.

flutter_twitter_login:
  git: git://github.com/eudangeld/flutter_twitter_login.git

leocavalcante avatar Sep 15 '18 19:09 leocavalcante

Thanks @leocavalcante It works

devapalanisamy avatar Sep 19 '18 16:09 devapalanisamy

@deckerst I forked this repo and updated TwitterKit to 3>. Checkout => https://github.com/eudangeld/flutter_twitter_login In your pubspec add =>

flutter_twitter_login:
  git: git://github.com/eudangeld/flutter_twitter_login.git

All right, thank you for that, it is compiling as well, but when I try to instantiate the TwitterLogin class the app suddenly closes without any feedback =/

My question is: Where can I open an issue with my env configuration to try figure it out?

marcobraghim avatar Nov 27 '20 18:11 marcobraghim

@marcobraghim Open in my forked repo and i'l try to help you....

eudangeld avatar Dec 01 '20 19:12 eudangeld

@marcobraghim Open in my forked repo and i'l try to help you....

Thank you, but the issues option does not shows up in your repo.

Anyway, I found another package that works well for me, thank you very much.

marcobraghim avatar Dec 01 '20 19:12 marcobraghim