-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [build]: updated dependencies * [fix]: crash when no log file is available * [fix]: double-click navigation crash (#98) * [refactor]: rewritten recording feature to add custom recorders * [fix]: memory problems * [fix]: zip recording export * [refactor]: small code improvements * [feat]: saving all recorded logs * [feat]: exporting selected logs * [fix]: fixed text for LogsFragment * [build]: bumped app version * [feat]: update zh_rCN translation --------- Co-authored-by: huajijam <29218242+huajijam@users.noreply.github.com>
- Loading branch information
Showing
35 changed files
with
416 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/f0x1d/logfox/extensions/CoroutinesExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.f0x1d.logfox.extensions | ||
|
||
import com.f0x1d.logfox.LogFoxApp | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.launch | ||
|
||
fun onAppScope(block: suspend CoroutineScope.() -> Unit) = LogFoxApp.applicationScope.launch( | ||
Dispatchers.IO | ||
) { | ||
block(this) | ||
} | ||
|
||
fun runOnAppScope(block: suspend CoroutineScope.() -> Unit) { | ||
onAppScope(block) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 1 addition & 14 deletions
15
app/src/main/java/com/f0x1d/logfox/repository/base/BaseRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
package com.f0x1d.logfox.repository.base | ||
|
||
import com.f0x1d.logfox.LogFoxApp | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.launch | ||
|
||
abstract class BaseRepository { | ||
protected fun onAppScope(block: suspend CoroutineScope.() -> Unit) = LogFoxApp.applicationScope.launch(Dispatchers.IO) { | ||
block(this) | ||
} | ||
|
||
protected fun runOnAppScope(block: suspend CoroutineScope.() -> Unit) { | ||
onAppScope(block) | ||
} | ||
} | ||
abstract class BaseRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.