Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃槆 I鈥檇 like to add this to the ReadMe Documentation. #466

Open
JosephRidge opened this issue Apr 16, 2022 · 0 comments 路 May be fixed by #468
Open

馃槆 I鈥檇 like to add this to the ReadMe Documentation. #466

JosephRidge opened this issue Apr 16, 2022 · 0 comments 路 May be fixed by #468

Comments

@JosephRidge
Copy link

I added more details on the existing ReadMe file , focusing on setting up Timber once the dependencies have been downloaded.

Step 1 : Create an Application class that inherrits from Application class .

open class MyProjectApplication : Application() {
}

Step 2 : import the application package

import android.app.Application

Step 3 : override the onCreate() method and initialize the Timber class

override the onCreate() method in your Application class

open class MyProjectApplication : Application() {
    if (BuildConfig.DEBUG) {
      Timber.plant(new DebugTree());
    } else {
      Timber.plant(new CrashReportingTree());
    }
}

Step 4 : Define it in your Android Manifest , Application tag

In your application tag, add it as a name attribute :

<application  
       ....
       android:name=".MyProjectApplication"
       android:theme="@style/AppTheme"
      .... >

There was no clear set up process after setting up the dependencies .

@JosephRidge JosephRidge changed the title Addition of Setting up Timber section in the existing ReadMe Documentation File. 馃槆 I鈥檇 like to add this to the ReadMe Documentation. Apr 16, 2022
@JosephRidge JosephRidge linked a pull request May 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant