File tree Expand file tree Collapse file tree
LogcatCountlyLib/src/main/java/info/hannes/logging
androidTest/java/info/hannes/logcat
java/info/hannes/logcat/sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import info.hannes.timber.CountlyTree
66import info.hannes.timber.DebugFormatTree
77import timber.log.Timber
88
9- abstract class LoggingApplication (
9+ abstract class LoggingCountlyApplication (
1010 private val countlyHost : String ,
1111 private val countlyKey : String ,
1212 private val debugBuildType : Boolean ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
1010import androidx.test.filters.SdkSuppress
1111import androidx.test.rule.GrantPermissionRule
1212import com.moka.utils.Screenshot
13+ import info.hannes.logcat.sample.MainActivity
1314import org.hamcrest.Matchers.allOf
1415import org.junit.Before
1516import org.junit.Rule
Original file line number Diff line number Diff line change 44 package =" info.hannes.logcat.sample" >
55
66 <application
7- android : name =" info.hannes.logcat .CrashlyticApplication"
7+ android : name =" .CrashlyticApplication"
88 android : allowBackup =" true"
99 android : icon =" @mipmap/ic_launcher"
1010 android : label =" @string/app_name"
1111 android : theme =" @style/AppTheme"
1212 tools : ignore =" AllowBackup,GoogleAppIndexingWarning" >
1313
1414 <activity
15- android : name =" info.hannes.logcat.MainActivity"
15+ android : name =" info.hannes.logcat.sample. MainActivity"
1616 android : exported =" true" >
1717 <intent-filter >
1818 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change 1- package info.hannes.logcat
1+ package info.hannes.logcat.sample
22
33import android.annotation.SuppressLint
44import android.os.Handler
55import android.os.Looper
66import android.provider.Settings
77import com.google.firebase.crashlytics.FirebaseCrashlytics
88import info.hannes.crashlytic.CrashlyticsTree
9+ import info.hannes.logcat.LoggingApplication
910import info.hannes.timber.FileLoggingTree
1011import timber.log.Timber
1112
@@ -20,7 +21,7 @@ class CrashlyticApplication : LoggingApplication() {
2021 Timber .plant(FileLoggingTree (it, this ))
2122 }
2223
23- FirebaseCrashlytics .getInstance().setCustomKey(" VERSION_NAME" , BuildConfig .VERSIONNAME )
24+ FirebaseCrashlytics .getInstance().setCustomKey(" VERSION_NAME" , info.hannes.logcat.ui. BuildConfig .VERSIONNAME )
2425 Timber .plant(CrashlyticsTree (Settings .Secure .getString(applicationContext.contentResolver, Settings .Secure .ANDROID_ID )))
2526
2627 Timber .d(" Debug test" )
Original file line number Diff line number Diff line change 1- package info.hannes.logcat
1+ package info.hannes.logcat.sample
22
33import android.content.Intent
44import android.net.Uri
@@ -10,7 +10,6 @@ import androidx.appcompat.widget.Toolbar
1010import androidx.core.view.GravityCompat
1111import androidx.drawerlayout.widget.DrawerLayout
1212import com.google.android.material.navigation.NavigationView
13- import info.hannes.logcat.sample.R
1413import info.hannes.logcat.ui.BothLogActivity
1514import info.hannes.logcat.ui.LogcatActivity
1615import info.hannes.logcat.ui.LogfileActivity
You can’t perform that action at this time.
0 commit comments