xref: /MusicFree/src/constants/pathConst.ts (revision 43eb30bf16ea88ab8e3cdff98faf307c8c8f93d3)
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',
172d0ec5c1S猫头猫    lrcCachePath: `${basePath}/cache/lrc/`,
188c94d91fS猫头猫    downloadPath: `${basePath}/download/`,
198c94d91fS猫头猫    downloadMusicPath: `${basePath}/download/music/`,
20*43eb30bfS猫头猫    mmkvPath: `${basePath}/mmkv`,
21*43eb30bfS猫头猫    mmkvCachePath: `${basePath}/cache/mmkv`,
222d0ec5c1S猫头猫};
23