CS340-19 / CampusGroupChat

0 stars 2 forks source link

Configure Firebase for iOS #10

Open spencerhowell opened 5 years ago

spencerhowell commented 5 years ago

https://codelabs.developers.google.com/codelabs/flutter-firebase/#6

sunny2121 commented 5 years ago

Some code was added in "\ios\Runner\AppDelegate.m"

include "AppDelegate.h"

include "GeneratedPluginRegistrant.h"

@import Firebase; // new @implementation AppDelegate

//configure firebase [FIRApp configure]; // new

[GeneratedPluginRegistrant registerWithRegistry:self]; // Override point for customization after application launch. return [super application:application didFinishLaunchingWithOptions:launchOptions]; }

sunny2121 commented 5 years ago

Some code was added in "ios/Podfile"

pod 'Firebase/Core' pod 'Firebase/Auth'

sunny2121 commented 5 years ago

Some code was added in "pubspec.yaml"

dependencies: flutter: sdk: flutter firebase_core: ^0.2.5 # add dependency for Firebase Core

sunny2121 commented 5 years ago

Open Xcode using “open ios/Runner.xcworkspace” and mark the Target Membership option on the right sidebar from Xcode.

Screen Shot 2019-04-29 at 11 21 32 PM