From a43758d7433861919e7becd1902833789339b4a8 Mon Sep 17 00:00:00 2001 From: CraZyLegenD Date: Thu, 18 Jun 2020 16:21:20 +0200 Subject: [PATCH] feature: additional function and update go gitignore --- .gitignore | 2 ++ .../java/com/crazylegend/crashyreporter/CrashyReporter.kt | 7 +++++++ 2 files changed, 9 insertions(+) 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