pathConst.ts (4060c00a75883036bbd315fb25c90065209312b3) | pathConst.ts (cfa0fc0757dad620cd0b0533a949d86b17086d32) |
---|---|
1import {Platform} from 'react-native'; | 1import {Platform} from 'react-native'; |
2import RNFS from 'react-native-fs'; | 2import RNFS, {CachesDirectoryPath} from 'react-native-fs'; |
3 4export const basePath = 5 Platform.OS === 'android' 6 ? RNFS.ExternalDirectoryPath 7 : RNFS.DocumentDirectoryPath; 8 9const storagePath = RNFS.ExternalStorageDirectoryPath; 10 11export default { 12 pluginPath: `${basePath}/plugins/`, 13 logPath: `${basePath}/log/`, 14 dataPath: `${basePath}/data/`, 15 cachePath: `${basePath}/cache/`, | 3 4export const basePath = 5 Platform.OS === 'android' 6 ? RNFS.ExternalDirectoryPath 7 : RNFS.DocumentDirectoryPath; 8 9const storagePath = RNFS.ExternalStorageDirectoryPath; 10 11export default { 12 pluginPath: `${basePath}/plugins/`, 13 logPath: `${basePath}/log/`, 14 dataPath: `${basePath}/data/`, 15 cachePath: `${basePath}/cache/`, |
16 musicCachePath: CachesDirectoryPath + '/TrackPlayer', 17 imageCachePath: CachesDirectoryPath + '/image_manager_disk_cache', |
|
16 lrcCachePath: `${basePath}/cache/lrc/`, 17 storagePath: `${storagePath}/musicfree/`, 18 downloadPath: `${storagePath}/musicfree/download/`, 19}; | 18 lrcCachePath: `${basePath}/cache/lrc/`, 19 storagePath: `${storagePath}/musicfree/`, 20 downloadPath: `${storagePath}/musicfree/download/`, 21}; |