Skip to content

Commit

Permalink
Updated extension to support macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
JCash committed Mar 25, 2024
1 parent dfe847a commit ec20163
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions firebase/manifests/osx/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
platform :osx '10.15'

pod 'FirebaseCore', '10.22.0'
pod 'FirebaseInstallations', '10.22.0'
3 changes: 1 addition & 2 deletions firebase/src/firebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
#define LIB_NAME "Firebase"
#define MODULE_NAME "firebase"

#define DLIB_LOG_DOMAIN LIB_NAME
#include <dmsdk/dlib/log.h>
#include <dmsdk/sdk.h>

#include "firebase_private.h"
#include "firebase_callback.h"

#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS)
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS) || defined(DM_PLATFORM_MACOS)

namespace dmFirebase {

Expand Down
2 changes: 1 addition & 1 deletion firebase/src/firebase_callback.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS)
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS) || defined(DM_PLATFORM_MACOS)

#include "firebase_callback.h"
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion firebase/src/firebase_callback.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS)
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS) || defined(DM_PLATFORM_MACOS)
#pragma once

#include <dmsdk/sdk.h>
Expand Down
2 changes: 1 addition & 1 deletion firebase/src/firebase_ios.mm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if defined(DM_PLATFORM_IOS)
#if defined(DM_PLATFORM_IOS) || defined(DM_PLATFORM_MACOS)

#include <FirebaseInstallations/FirebaseInstallations.h>
#import <FirebaseCore/FIROptions.h>
Expand Down
2 changes: 1 addition & 1 deletion firebase/src/firebase_private.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS)
#if defined(DM_PLATFORM_ANDROID) || defined(DM_PLATFORM_IOS) || defined(DM_PLATFORM_MACOS)

#pragma once

Expand Down

0 comments on commit ec20163

Please sign in to comment.