Skip to content

Commit

Permalink
fix(app-check, ios): remove import loop to fix protocol def warning
Browse files Browse the repository at this point in the history
import loops can apparently be the root cause of protocol definition issues,
and if you ensure imports only happen once by chaining correctly then protocol
definitions are found correctly and the warning goes away
  • Loading branch information
mikehardy committed Nov 14, 2024
1 parent e4c57fa commit 789d41b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/app-check/ios/RNFBAppCheck/RNFBAppCheckModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
*/

#import <Firebase/Firebase.h>
#import <FirebaseAppCheck/FIRAppCheck.h>

#import <React/RCTUtils.h>

#import "RNFBApp/RNFBSharedUtils.h"
#import "RNFBAppCheckModule.h"

#import "FirebaseAppCheck/FIRAppCheck.h"

@implementation RNFBAppCheckModule
#pragma mark -
#pragma mark Module Setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

#import <FirebaseAppCheck/FIRAppCheck.h>
#import "RNFBAppCheckProvider.h"

@interface RNFBAppCheckProviderFactory : NSObject <FIRAppCheckProviderFactory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
*/

#import "RNFBAppCheckProviderFactory.h"
#import <Firebase/Firebase.h>
#import <FirebaseAppCheck/FIRAppCheck.h>
#import "RNFBApp/RNFBSharedUtils.h"
#import "RNFBAppCheckProvider.h"

@implementation RNFBAppCheckProviderFactory

Expand Down

0 comments on commit 789d41b

Please sign in to comment.