Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Installation

Ben Myers edited this page Feb 7, 2022 · 3 revisions

Thanks for choosing EasyFirebase! πŸŽ‰ Follow these steps to implement EasyFirebase into your iOS or macOS project.

Create a Firebase Project

If you haven't already, create a Firebase project and follow the steps outlined on the Firebase website.

⚠️ Note: Don't forget to add GoogleService-Info.plist to your project!

Add Package

Add the EasyFirebase package to your Xcode project by navigating to File > Add Packages... and enter the following URL into the search bar:

https://github.com/Flowductive/easy-firebase

Import EasyFirebase wherever necessary:

import EasyFirebase

Configure EasyFirebase

Configure EasyFirebase at app launch.

UIKit + iOS

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
  EasyFirebase.configure()
  return true
}

UIKit + macOS

func applicationDidFinishLaunching(_ aNotification: Notification) {
  EasyFirebase.configure()
}

SwiftUI

var body: some Scene {
  WindowGroup {
    ContentView()
      .onAppear {
        EasyFirebase.configure()
      }
  }
}