AA-23 | Reyaz | Add Timber for logging
This commit is contained in:
@@ -49,4 +49,5 @@ dependencies {
|
||||
implementation 'com.google.android.material:material:1.0.0'
|
||||
implementation 'com.android.support:cardview-v7:29.0.2'
|
||||
implementation 'com.android.support:design:29.0.2'
|
||||
implementation 'com.jakewharton.timber:timber:4.7.1'
|
||||
}
|
||||
|
||||
@@ -6,22 +6,23 @@
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
|
||||
<application
|
||||
android:name=".common.TimberApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:usesCleartextTraffic="true"
|
||||
android:theme="@style/AppTheme">
|
||||
android:theme="@style/AppTheme"
|
||||
android:usesCleartextTraffic="true">
|
||||
<activity
|
||||
android:name=".ui.activities.OtpActivity"
|
||||
android:noHistory="true"></activity>
|
||||
<activity android:name=".ui.activities.BottomNavigationActivity" />
|
||||
<activity
|
||||
android:name=".ui.activities.LoginActivity"
|
||||
android:noHistory="true">
|
||||
</activity>
|
||||
<activity android:name=".ui.activities.SplashScreenActivity"
|
||||
android:noHistory="true"></activity>
|
||||
<activity
|
||||
android:name=".ui.activities.SplashScreenActivity"
|
||||
android:noHistory="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.navi.medici.androidCustomerApp.common
|
||||
|
||||
import android.app.Application
|
||||
import timber.log.Timber
|
||||
|
||||
class TimberApplication : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
Timber.plant(Timber.DebugTree())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user