Skip to content

Commit

Permalink
[expotools] Prepare versioning for SDK38
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed May 19, 2020
1 parent 74dee09 commit b8a0d96
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/expotools/src/versioning/ios/index.ts
Expand Up @@ -817,7 +817,7 @@ function getCppLibrariesToVersion() {
customHeaderDir: 'ReactCommon',
},
{
libName: 'jscallinvoker',
libName: 'callinvoker',
customHeaderDir: 'ReactCommon',
},
];
Expand Down
15 changes: 15 additions & 0 deletions tools/expotools/src/versioning/ios/transforms/postTransforms.ts
Expand Up @@ -42,6 +42,11 @@ export function postTransforms(versionName: string): TransformPipeline {
replace: /\b(RECONNECT_DELAY_MS)\b/g,
with: `${versionName}$1`,
},
{
paths: `${versionName}FBReactNativeSpec`,
replace: /\b(NSStringToNativeAppearanceColorSchemeName|NativeAppearanceColorSchemeNameToNSString)\b/g,
with: `${versionName}$1`,
},
{
paths: 'RCTView.m',
replace: /\b(SwitchAccessibilityTrait)\b/g,
Expand Down Expand Up @@ -69,6 +74,16 @@ export function postTransforms(versionName: string): TransformPipeline {
replace: /(EXScopedABI\d+_\d+_\d+ReactNative)/g,
with: 'EXScopedReactNative',
},
{
paths: `${versionName}EXFileSystem`,
replace: new RegExp(`NSData\\+${versionName}EXFileSystem\\.h`, 'g'),
with: `${versionName}NSData+EXFileSystem.h`
},
{
paths: `${versionName}EXNotifications`,
replace: new RegExp(`NSDictionary\\+${versionName}EXNotificationsVerifyingClass\\.h`, 'g'),
with: `${versionName}NSDictionary+EXNotificationsVerifyingClass.h`
},

// react-native-maps
{
Expand Down
@@ -1 +1 @@
["expo-branch", "expo-gl-cpp", "expo-notifications", "expo-updates"]
["expo-branch", "expo-gl-cpp", "expo-updates"]

0 comments on commit b8a0d96

Please sign in to comment.