diff --git a/.gitignore b/.gitignore index 603b140..1116d75 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ /captures .externalNativeBuild .cxx +/.idea/codeStyles/ +/.idea/ diff --git a/crashyreporter/src/main/java/com/crazylegend/crashyreporter/CrashyReporter.kt b/crashyreporter/src/main/java/com/crazylegend/crashyreporter/CrashyReporter.kt index e6c5d88..43355d6 100644 --- a/crashyreporter/src/main/java/com/crazylegend/crashyreporter/CrashyReporter.kt +++ b/crashyreporter/src/main/java/com/crazylegend/crashyreporter/CrashyReporter.kt @@ -98,6 +98,13 @@ object CrashyReporter { @Throws(CrashyNotInitializedException::class) fun getLogsAsStrings() = dumpFolder.listFiles()?.map { it.readText() } + /** + * You can use this for manually dumping log + * @throws CrashyNotInitializedException see [NOT_REGISTERED_MESSAGE] + */ + @Throws(CrashyNotInitializedException::class) + fun getLots() = dumpFolder.listFiles()?.toList() + //endregion