Skip to content

Commit 3da9670

Browse files
committed
Prepared for publishing
1 parent 30f4f1d commit 3da9670

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

lib/src/main/AndroidManifest.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest>
2+
3+
</manifest>

lib/src/main/java/ua/at/tsvetkov/util/logger/interceptor/LogToFileInterceptor.kt renamed to logger/src/main/java/ua/at/tsvetkov/util/logger/interceptor/LogToFileInterceptor.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*/
3232
package ua.at.tsvetkov.util.logger.interceptor
3333

34+
import android.annotation.SuppressLint
3435
import android.content.Context
3536
import android.os.Build
3637
import android.util.Log
@@ -40,7 +41,7 @@ import java.io.BufferedReader
4041
import java.io.File
4142
import java.io.FileReader
4243
import java.io.IOException
43-
import java.util.*
44+
import java.util.Date
4445

4546
/**
4647
* Create the Log Interceptor which save a log messages to file (default dir - context.filesDir file Log.txt).
@@ -189,7 +190,9 @@ Version code: $verCode
189190
const val LOG_LINE_SEPARATOR = '\u2028'
190191
const val LOG_SEPARATOR = '\u2063'
191192

193+
@SuppressLint("StaticFieldLeak")
192194
private var sharedInstance: LogToFileInterceptor? = null
195+
193196
fun getSharedInstance(context: Context): LogToFileInterceptor {
194197
return init(context)
195198
}

lib/src/main/java/ua/at/tsvetkov/util/logger/interceptor/LogToMemoryCacheInterceptor.kt renamed to logger/src/main/java/ua/at/tsvetkov/util/logger/interceptor/LogToMemoryCacheInterceptor.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*/
3232
package ua.at.tsvetkov.util.logger.interceptor
3333

34+
import kotlinx.coroutines.DelicateCoroutinesApi
3435
import kotlinx.coroutines.Dispatchers
3536
import kotlinx.coroutines.GlobalScope
3637
import kotlinx.coroutines.InternalCoroutinesApi
@@ -57,6 +58,7 @@ class LogToMemoryCacheInterceptor(
5758
var filterLevel = Level.VERBOSE
5859
var filterSearchString: CharSequence? = null
5960

61+
@OptIn(DelicateCoroutinesApi::class)
6062
@InternalCoroutinesApi
6163
override fun log(level: Level, tag: String?, msg: String?, throwable: Throwable?) {
6264
val logItem = LogItem(Date(), level, tag, msg)

lib/src/main/res/layout/fragment_log.xml renamed to logger/src/main/res/layout/fragment_log.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:layout_height="match_parent"
77
android:background="@color/log_fragment_background"
88
android:orientation="vertical"
9-
tools:context=".logger.ui.LogFragment">
9+
tools:context=".ui.LogFragment">
1010

1111
<LinearLayout
1212
android:layout_width="match_parent"

lib/src/main/res/layout/log_tool_bar.xml renamed to logger/src/main/res/layout/log_tool_bar.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
43
android:layout_width="match_parent"
54
android:layout_height="wrap_content"
65
android:orientation="horizontal">

0 commit comments

Comments
 (0)