1import fs from 'fs-extra'; 2import path from 'path'; 3import { getExpotoolsDir } from '../../Directories'; 4 5export const JniLibNames = [ 6 'libfb', 7 'libfbjni', 8 'libfolly_json', 9 'libglog_init', 10 'glog', 11 'reactnativejni', 12 'reactnativejnifb', 13 'csslayout', 14 'yoga', 15 'fbgloginit', 16 'yogajni', 17 'jschelpers', 18 'packagerconnectionjnifb', 19 'privatedata', 20 'yogafastmath', 21 'fabricjscjni', 22 'jscexecutor', 23 'libjscexecutor', 24 'jsinspector', 25 'libjsinspector', 26 'fabricjni', 27 'turbomodulejsijni', 28 'reactnativeblob', 29 'jsijniprofiler', 30 'hermes', 31 'hermes-executor-release', 32 'hermes-executor-debug', 33 'reanimated', 34]; 35 36// this list is used in the shell scripts as well as directly by expotools 37// we read it in here to keep the source of truth in one place 38export const getJavaPackagesToRename = async () => { 39 const packagesToRename = await fs.readFile( 40 path.join(getExpotoolsDir(), 'src/versioning/android/android-packages-to-rename.txt'), 41 'utf8' 42 ); 43 return packagesToRename.split('\n').filter((p: string) => !!p); 44}; 45