xref: /MusicFree/src/constants/pathConst.ts (revision 42a9f3e6edf48cfb1acc40cd35cb6621e7f940e9)
12d0ec5c1S猫头猫import {Platform} from 'react-native';
2cfa0fc07S猫头猫import RNFS, {CachesDirectoryPath} from 'react-native-fs';
36c6f45bdS猫头猫
42d0ec5c1S猫头猫export const basePath =
52d0ec5c1S猫头猫    Platform.OS === 'android'
66c6f45bdS猫头猫        ? RNFS.ExternalDirectoryPath
72d0ec5c1S猫头猫        : RNFS.DocumentDirectoryPath;
86c6f45bdS猫头猫
96c6f45bdS猫头猫export default {
1050800d1bS猫头猫    basePath,
116c6f45bdS猫头猫    pluginPath: `${basePath}/plugins/`,
127f771613S猫头猫    logPath: `${basePath}/log/`,
13233cafa6S猫头猫    dataPath: `${basePath}/data/`,
147f771613S猫头猫    cachePath: `${basePath}/cache/`,
15cfa0fc07S猫头猫    musicCachePath: CachesDirectoryPath + '/TrackPlayer',
16cfa0fc07S猫头猫    imageCachePath: CachesDirectoryPath + '/image_manager_disk_cache',
1726f32636S猫头猫    localLrcPath: `${basePath}/local_lrc/`,
182d0ec5c1S猫头猫    lrcCachePath: `${basePath}/cache/lrc/`,
19*42a9f3e6Smaotoumao    downloadCachePath: `${basePath}/cache/download/`,
208c94d91fS猫头猫    downloadPath: `${basePath}/download/`,
218c94d91fS猫头猫    downloadMusicPath: `${basePath}/download/music/`,
2243eb30bfS猫头猫    mmkvPath: `${basePath}/mmkv`,
2343eb30bfS猫头猫    mmkvCachePath: `${basePath}/cache/mmkv`,
242d0ec5c1S猫头猫};
25