Skip to content

Instantly share code, notes, and snippets.

@cohenItay
Last active June 27, 2022 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cohenItay/49e37598f31ca6b53dbfb06fb753f064 to your computer and use it in GitHub Desktop.
Save cohenItay/49e37598f31ca6b53dbfb06fb753f064 to your computer and use it in GitHub Desktop.
interface LogsFileProvider {
/**
* @return [File] directory in which the logs file will be saved in.
*/
fun provideLogsDirectory(appContext: Context): File
/**
* @return [File] of type .log, which you can write logs to it.
*/
suspend fun provideFile(appContext: Context): File?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment