xref: /MusicFree/src/constants/pathConst.ts (revision 410a159129b1f6a7a1f44fde7bfad9a46f91e161)
1import {Platform} from 'react-native';
2import RNFS, {CachesDirectoryPath} from 'react-native-fs';
3
4export const basePath =
5    Platform.OS === 'android'
6        ? RNFS.ExternalDirectoryPath
7        : RNFS.DocumentDirectoryPath;
8
9export default {
10    basePath,
11    pluginPath: `${basePath}/plugins/`,
12    logPath: `${basePath}/log/`,
13    dataPath: `${basePath}/data/`,
14    cachePath: `${basePath}/cache/`,
15    musicCachePath: CachesDirectoryPath + '/TrackPlayer',
16    imageCachePath: CachesDirectoryPath + '/image_manager_disk_cache',
17    lrcCachePath: `${basePath}/cache/lrc/`,
18    downloadPath: `${basePath}/download/`,
19    downloadMusicPath: `${basePath}/download/music/`,
20    mmkvPath: `${basePath}/mmkv`,
21    mmkvCachePath: `${basePath}/cache/mmkv`,
22};
23