1import path from 'path'; 2 3import { IOS_DIR, VERSIONED_RN_IOS_DIR } from '../../Constants'; 4 5/** 6 * Returns the prefix that we add to filenames and symbols for given SDK number. 7 */ 8export function getVersionPrefix(sdkNumber: number): string { 9 return `ABI${sdkNumber}_0_0`; 10} 11 12/** 13 * Returns the target directory with versioned code for given SDK number. 14 */ 15export function getVersionedDirectory(sdkNumber: number): string { 16 return path.join(IOS_DIR, 'versioned', `sdk${sdkNumber}`); 17} 18 19/** 20 * Returns the path to versioned ExpoKit lib. 21 */ 22export function getVersionedExpoKitPath(versionName: string): string { 23 return path.join(VERSIONED_RN_IOS_DIR, versionName, 'Expo', 'ExpoKit'); 24} 25