Skip to content

Commit

Permalink
修复日志无法清空的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Dec 20, 2023
1 parent a9a088c commit 5e2ffb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils/log.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import { requestStoragePermission } from '@/utils/common'
import { temporaryDirectoryPath, existsFile, appendFile, unlink } from '@/utils/fs'
import { readFile, writeFile } from './nativeModules/utils'
import { temporaryDirectoryPath, existsFile, appendFile } from '@/utils/fs'
import { readFile, unlink, writeFile } from './nativeModules/utils'

const logPath = temporaryDirectoryPath + '/error.log'

Expand Down
4 changes: 2 additions & 2 deletions src/utils/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Platform, ToastAndroid, BackHandler, Linking, Dimensions, Alert, Appear
import Clipboard from '@react-native-clipboard/clipboard'
import { storageDataPrefix } from '@/config/constant'
import { gzipFile, unGzipFile } from '@/utils/nativeModules/gzip'
import { temporaryDirectoryPath, unlink } from '@/utils/fs'
import { getSystemLocales, isIgnoringBatteryOptimization, isNotificationsEnabled, requestNotificationPermission, readFile, requestIgnoreBatteryOptimization, shareText, writeFile } from '@/utils/nativeModules/utils'
import { temporaryDirectoryPath } from '@/utils/fs'
import { getSystemLocales, isIgnoringBatteryOptimization, isNotificationsEnabled, requestNotificationPermission, readFile, requestIgnoreBatteryOptimization, shareText, writeFile, unlink } from '@/utils/nativeModules/utils'
import musicSdk from '@/utils/musicSdk'
import { getData, removeData, saveData } from '@/plugins/storage'
import BackgroundTimer from 'react-native-background-timer'
Expand Down

0 comments on commit 5e2ffb1

Please sign in to comment.