Skip to content

juansoilan/Firebase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase-Carthage

Carthage compatible GitHub release

Unofficial Carthage support for Firebase.

If you are looking for open source Firebase repository you may refer to Firebase-iOS-SDK.


Usage

The iOS Example file is a sample of using core firebase (analytics).

You need to add GoogleService info plist to your main project. (iOS Example project also needs Googleservice info plist)

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Firebase into your Xcode project using Carthage, specify it in your Cartfile:

github "soheilbm/Firebase" 

Run carthage update to build the framework and drag the built Firebase.framework into your Xcode project.

  • Add the -ObjC flag to "Other Linker Settings"
  • Turn on ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES in your build settings.
  • Drag each framework from the directory named after the SDK into the Project Navigator pane. Note that there may be no additional frameworks, in which case this directory will be empty. For instance, if you want the Database SDK, look in the Database folder for the required frameworks. In the dialog box that appears, make sure the target you want this framework to be added to has a checkmark next to it, and that you've selected "Copy items if needed.

"(~> X)" below means that the SDK requires all of the frameworks from X. You should make sure to include all of the frameworks from X when including the SDK. Add the following Framework to your project with carthage copy-framework method.

Analytics

- FirebaseAnalytics.framework
- FirebaseCore.framework
- FirebaseCoreDiagnostics.framework
- FirebaseNanoPB.framework
- FirebaseInstanceID.framework
- GoogleToolboxForMac.framework
- nanopb.framework

ABTesting (~> Analytics)

- FirebaseABTesting.framework
- Protobuf.framework

AdMob (~> Analytics)

- GoogleMobileAds.framework

Auth (~> Analytics)

- FirebaseAuth.framework
- GTMSessionFetcher.framework

Crash (~> Analytics)

- FirebaseCrash.framework
- Protobuf.framework

Database (~> Analytics)

- FirebaseDatabase.framework
- leveldb-library.framework

DynamicLinks (~> Analytics)

- FirebaseDynamicLinks.framework

Firestore (~> Analytics)

- BoringSSL.framework
- FirebaseAuth.framework
- FirebaseFirestore.framework
- GTMSessionFetcher.framework
- Protobuf.framework
- gRPC.framework
- gRPC-Core.framework
- gRPC-ProtoRPC.framework
- gRPC-RxLibrary.framework
- leveldb-library.framework

Invites (~> Analytics)

You'll also need to add the resources in the Resources directory into your target's main bundle.

- FirebaseDynamicLinks.framework
- FirebaseInvites.framework
- GTMOAuth2.framework
- GTMSessionFetcher.framework
- GoogleAPIClientForREST.framework
- GoogleSignIn.framework
- Protobuf.framework

Messaging (~> Analytics)

You'll also need to add the resources in the Resources directory into your target's main bundle.

- FirebaseMessaging.framework
- Protobuf.framework

Performance (~> Analytics)

- FirebasePerformance.framework
- GTMSessionFetcher.framework
- Protobuf.framework

RemoteConfig (~> Analytics)

- FirebaseABTesting.framework
- FirebaseRemoteConfig.framework
- Protobuf.framework

Storage (~> Analytics)

- FirebaseStorage.framework
- GTMSessionFetcher.framework

Samples

You can get samples for Firebase from https://github.com/firebase/quickstart-ios:

git clone https://github.com/firebase/quickstart-ios

Note that several of the samples depend on SDKs that are not included with this archive; for example, FirebaseUI. For the samples that depend on SDKs not included in this archive, you'll need to use CocoaPods.

Versions

The frameworks in this directory map to these versions of the Firebase SDKs in Carthage.

Carthage Version
BoringSSL 9.0
Firebase 4.5.0
FirebaseABTesting 1.0.0
FirebaseAnalytics 4.0.4
FirebaseAuth 4.3.1
FirebaseCore 4.0.10
FirebaseCrash 2.0.2
FirebaseDatabase 4.1.0
FirebaseDynamicLinks 2.1.0
FirebaseFirestore 0.9.1
FirebaseInstanceID 2.0.5
FirebaseInvites 2.0.1
FirebaseMessaging 2.0.6
FirebasePerformance 1.0.6
FirebaseRemoteConfig 2.1.0
FirebaseStorage 2.0.2
GTMOAuth2 1.1.5
GTMSessionFetcher 1.1.12
Google-Mobile-Ads-SDK 7.25.0
GoogleAPIClientForREST 1.3.1
GoogleSignIn 4.1.1
GoogleToolboxForMac 2.1.3
Protobuf 3.4.0
gRPC 1.6.5
gRPC-Core 1.6.5
gRPC-ProtoRPC 1.6.5
gRPC-RxLibrary 1.6.5
leveldb-library 1.18.3

Author

Soheil B.Marvasti

License

I do not own this project. This is just a simple repository to bring Carthage compatibility to Firebase.

About

Carthage support for Firebase libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 59.9%
  • C 23.5%
  • C++ 16.2%
  • Shell 0.4%