xref: /MusicFree/src/constants/pathConst.ts (revision 095287552b9baf2f2ceeb9397c563c292a4f7934)
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