Skip to content

Commit

Permalink
add expo dep needed for plugin, update snapshots, auto-fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Mar 21, 2024
1 parent 3aa4c25 commit e5874c0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
11 changes: 10 additions & 1 deletion packages/app-check/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@
"appCheck"
],
"peerDependencies": {
"@react-native-firebase/app": "19.0.1"
"@react-native-firebase/app": "19.0.1",
"expo": ">=47.0.0"
},
"devDependencies": {
"expo": "^49.0.21"
},
"peerDependenciesMeta": {
"expo": {
"optional": true
}
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void InitializeFlipper(UIApplication *application) {
InitializeFlipper(application);
#endif
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-5b7813c3af090f886568429140e982730142dbe7
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-39c06fe0cc03ffe4bc9cc005b839c559e7ba13d2
[RNFBAppCheckModule sharedInstance];
// @generated end @react-native-firebase/app-check-didFinishLaunchingWithOptions
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
Expand Down Expand Up @@ -134,7 +134,7 @@ static void InitializeFlipper(UIApplication *application) {
InitializeFlipper(application);
#endif
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-5b7813c3af090f886568429140e982730142dbe7
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-39c06fe0cc03ffe4bc9cc005b839c559e7ba13d2
[RNFBAppCheckModule sharedInstance];
// @generated end @react-native-firebase/app-check-didFinishLaunchingWithOptions
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
Expand Down Expand Up @@ -201,7 +201,7 @@ exports[`Config Plugin iOS Tests tests changes made to AppDelegate.m with fallba
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// @generated begin @react-native-firebase/app-didFinishLaunchingWithOptions-fallback - expo prebuild (DO NOT MODIFY) sync-5b7813c3af090f886568429140e982730142dbe7
// @generated begin @react-native-firebase/app-didFinishLaunchingWithOptions-fallback - expo prebuild (DO NOT MODIFY) sync-39c06fe0cc03ffe4bc9cc005b839c559e7ba13d2
[RNFBAppCheckModule sharedInstance];
// @generated end @react-native-firebase/app-didFinishLaunchingWithOptions-fallback
Expand Down Expand Up @@ -287,7 +287,7 @@ static void InitializeFlipper(UIApplication *application) {
InitializeFlipper(application);
#endif
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-5b7813c3af090f886568429140e982730142dbe7
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-39c06fe0cc03ffe4bc9cc005b839c559e7ba13d2
[RNFBAppCheckModule sharedInstance];
// @generated end @react-native-firebase/app-check-didFinishLaunchingWithOptions
self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
Expand Down Expand Up @@ -386,7 +386,7 @@ exports[`Config Plugin iOS Tests works with AppDelegate.mm (RN 0.68+) 1`] = `
{
RCTAppSetupPrepareApp(application);
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-5b7813c3af090f886568429140e982730142dbe7
// @generated begin @react-native-firebase/app-check-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-39c06fe0cc03ffe4bc9cc005b839c559e7ba13d2
[RNFBAppCheckModule sharedInstance];
// @generated end @react-native-firebase/app-check-didFinishLaunchingWithOptions
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
Expand Down
3 changes: 1 addition & 2 deletions packages/app-check/plugin/__tests__/iosPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ describe('Config Plugin iOS Tests', function () {
});

it('does not add the firebase import multiple times', async function () {
const singleImport =
'#import "AppDelegate.h"\n#import <RNFBAppCheckModule.h>';
const singleImport = '#import "AppDelegate.h"\n#import <RNFBAppCheckModule.h>';
const doubleImport = singleImport + '\n#import <RNFBAppCheckModule.h>';

const appDelegate = await fs.readFile(path.join(__dirname, './fixtures/AppDelegate_sdk45.mm'), {
Expand Down
6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4119,8 +4119,14 @@ __metadata:
"@react-native-firebase/app-check@npm:19.0.1, @react-native-firebase/app-check@workspace:packages/app-check":
version: 0.0.0-use.local
resolution: "@react-native-firebase/app-check@workspace:packages/app-check"
dependencies:
expo: "npm:^49.0.21"
peerDependencies:
"@react-native-firebase/app": 19.0.1
expo: ">=47.0.0"
peerDependenciesMeta:
expo:
optional: true
languageName: unknown
linkType: soft

Expand Down

0 comments on commit e5874c0

Please sign in to comment.