You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val logsTempDir =File(context.cacheDir, "logs") // This path needs to be in sync with android/app/src/main/res/xml/file_provider_paths.xml
105
+
val logsTempDir =File(context.cacheDir, Utils.LOGS_DIRECTORY_NAME) // This path needs to be in sync with android/app/src/main/res/xml/file_provider_paths.xml
106
106
logsTempDir.mkdir()
107
107
108
108
val dbFile =File(logsTempDir, "db.json")
@@ -135,7 +135,7 @@ class LogManager(private val reactContext: ReactApplicationContext) : ReactConte
135
135
val filesToZip = mutableListOf<File>(dbFile, statusLogFile)
136
136
137
137
// Get all files from the log directory
138
-
val logDirectory = utils.getLogDirectory()
138
+
val logDirectory = utils.getLogDirectory(usePublicLogDir)
139
139
if (logDirectory !=null&& logDirectory.exists()) {
140
140
val logFiles = logDirectory.listFiles()
141
141
if (logFiles !=null) {
@@ -192,29 +192,52 @@ class LogManager(private val reactContext: ReactApplicationContext) : ReactConte
0 commit comments