mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
fix: fixed MATCH_INIT for SDKv44
This commit is contained in:
2 files changed
+3
-4
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ function addBranchAppDelegateImport(src) {
|
||||
}
|
||||
exports.addBranchAppDelegateImport = addBranchAppDelegateImport;
|
||||
// Match against `UMModuleRegistryAdapter` (unimodules), and React Native without unimodules (Expo Modules).
|
||||
const MATCH_INIT = /(?:(self\.|_)(\w+)\s?=\s?\[\[UMModuleRegistryAdapter alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[\[RCTBridge alloc\])/g;
|
||||
const MATCH_INIT = /(?:(self\.|_)(\w+)\s?=\s?\[\[UMModuleRegistryAdapter alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[\[RCTBridge alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[self\.(\w+))/g;
|
||||
function addBranchAppDelegateInit(src) {
|
||||
const newSrc = [];
|
||||
newSrc.push(" [RNBranch initSessionWithLaunchOptions:launchOptions isReferrable:YES];");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { withAppDelegate, withInfoPlist } from "@expo/config-plugins";
|
||||
import { withAppDelegate, withInfoPlist, IOSConfig } from "@expo/config-plugins";
|
||||
import type { ConfigPlugin, InfoPlist } from "@expo/config-plugins";
|
||||
import type { ExpoConfig } from '@expo/config-types';
|
||||
import { mergeContents } from "@expo/config-plugins/build/utils/generateCode";
|
||||
@@ -18,8 +18,7 @@ export function addBranchAppDelegateImport(src: string): MergeResults {
|
||||
}
|
||||
|
||||
// Match against `UMModuleRegistryAdapter` (unimodules), and React Native without unimodules (Expo Modules).
|
||||
const MATCH_INIT =
|
||||
/(?:(self\.|_)(\w+)\s?=\s?\[\[UMModuleRegistryAdapter alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[\[RCTBridge alloc\])/g;
|
||||
const MATCH_INIT = /(?:(self\.|_)(\w+)\s?=\s?\[\[UMModuleRegistryAdapter alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[\[RCTBridge alloc\])|(?:RCTBridge\s?\*\s?(\w+)\s?=\s?\[self\.(\w+))/g;
|
||||
|
||||
export function addBranchAppDelegateInit(src: string): MergeResults {
|
||||
const newSrc = [];
|
||||
|
||||
Reference in new issue
Block a user