xref: /MusicFree/src/constants/pathConst.ts (revision 50800d1b3a25241a2f85a928ba722cc3e57e0b9a)
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 {
10*50800d1bS猫头猫    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/`,
202d0ec5c1S猫头猫};
21