Skip to content

emusute1212/LifecycleLogger

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LifecycleLogger

This library save each lifecycle log.

Usage

  1. Setting build.gradle.
  2. Bind your Activity or Fragment.
  3. Install App!!!

1. Setting build.gradle.

Add https://emusute1212.github.io/LifecycleLogger/repository/ to build.gradle.

buildscript {
    // ...
    repositories {
        // ...
        maven {
            url 'https://emusute1212.github.io/LifecycleLogger/repository/'
        }
        
    }
    // ...
}

allprojects {
    repositories {
        // ...
        maven {
            url 'https://emusute1212.github.io/LifecycleLogger/repository/'
        }
    }
}

And add com.github.emusute1212.lifecyclelogger:core:0.1.0.1 to app/build.gradle.

dependencies {
    // ...
    implementation "com.github.emusute1212.lifecyclelogger:core:0.1.0.1"
}

2. Bind your Activity or Fragment.

Call Logger.bind(lifecycleOwner) from MainActivity etc.

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        Logger.bind(this)
    }

3. Install App!!!

Install app so finish!!

About

Androidの各Lifecycleでログを残すライブラリ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages