xref: /expo/tools/src/versioning/android/libraries.ts (revision da87f59e)
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  'hermes-inspector',
35  'fbjni',
36  'folly_futures',
37];
38
39// this list is used in the shell scripts as well as directly by expotools
40// we read it in here to keep the source of truth in one place
41export const getJavaPackagesToRename = async () => {
42  const packagesToRename = await fs.readFile(
43    path.join(getExpotoolsDir(), 'src/versioning/android/android-packages-to-rename.txt'),
44    'utf8'
45  );
46  return packagesToRename.split('\n').filter((p: string) => !!p);
47};
48