Skip to content

Commit

Permalink
fix(database, macos): conditional imports for headers
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Nov 27, 2024
1 parent 66e700e commit c007cdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import FirebaseDatabase;
#import <TargetConditionals.h>

#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#import <FirebaseDatabase/FirebaseDatabase.h>
#else
#import <Flutter/Flutter.h>
@import FirebaseDatabase;
#endif

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@import FirebaseDatabase;

#import <TargetConditionals.h>

#if TARGET_OS_OSX
#import <FlutterMacOS/FlutterMacOS.h>
#import <FirebaseDatabase/FirebaseDatabase.h>
#else
#import <Flutter/Flutter.h>
@import FirebaseDatabase;
#endif

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if TARGET_OS_OSX
#import <FirebaseDatabase/FirebaseDatabase.h>
#else
@import FirebaseDatabase;
#endif
#import <Foundation/Foundation.h>

@interface FLTFirebaseDatabaseUtils : NSObject
Expand Down

0 comments on commit c007cdd

Please sign in to comment.