Skip to content

Twitter integration #131

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

Merged
merged 5 commits into from
Sep 15, 2016
Merged

Conversation

yramanchuk
Copy link
Contributor

  • Implemented Twitter Provider for Firebase Auth UI
  • Implemented Obj-C demo for Twiter Provider

…nto twitter-integration

* 'master' of https://github.com/firebase/FirebaseUI-iOS:
  add ruby and pod versions to travis yml
  fix nonexistant scheme in travis yml
  fix auth tests
  move files around in auth tests
  fix licensing header
  add auth provider test
  update comment
  only ignore googleservice plists in samples
  move around gitignore stuff
  initial FIRAuthUI tests
  clean up (no code changes)

# Conflicts:
#	FirebaseUI.xcodeproj/project.pbxproj
#import "FIRTwitterAuthUI.h"

/** @var kBundleFileName
@brief The name of the bundle containing Facebook auth provider assets/resources.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change Facebook to Twitter in comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

*/
static NSString *const kTableName = @"FirebaseTwitterAuthUI";

/** @var kSignInWithFacebook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to kSignInWithTwitter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@morganchen12
Copy link
Contributor

Looks like travis ci isn't running pod repo update and is failing because it can't find TwitterKit :/

[FIRAuthUIErrorUtils providerErrorWithUnderlyingError:error
providerID:FIRTwitterAuthProviderID];
if (completion) {
completion(nil, error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be completion(nil, newError)?

Copy link
Contributor Author

@yramanchuk yramanchuk Sep 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in both cases: completion(credential, nil); and completion(nil, newError)

//! Project version string for FirebaseTwitterAuthUI.
FOUNDATION_EXPORT const unsigned char FirebaseTwitterAuthUIVersionString[];

#import <FirebaseTwitterAuthUI/FIRTwitterAuthUI.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIRTwitterAuthUI.h needs to be marked as a Public header (not Project header) or it'll cause build errors when integrating as a framework.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2016-09-15 at 12 15 02 pm

@@ -7,6 +7,14 @@
objects = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FirebaseTwitterAuthUI target needs to have a target dependency on FirebaseAuthUI or it won't compile.
screen shot 2016-09-15 at 12 37 31 pm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@yramanchuk yramanchuk merged commit 91e6483 into firebase:master Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants