-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from DroidKaigi/staging_app
Creatae StagingApp class for staging build type
- Loading branch information
Showing
4 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
frontend/android/src/staging/java/io/github/droidkaigi/confsched2019/StagingApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.github.droidkaigi.confsched2019 | ||
|
||
import com.facebook.stetho.Stetho | ||
import com.squareup.leakcanary.LeakCanary | ||
|
||
class StagingApp : App() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
setupLeakCanary() | ||
setupStetho() | ||
} | ||
|
||
private fun setupLeakCanary() { | ||
if (LeakCanary.isInAnalyzerProcess(this)) { | ||
return | ||
} | ||
LeakCanary.install(this) | ||
} | ||
|
||
private fun setupStetho() { | ||
Stetho.initializeWithDefaults(this) | ||
} | ||
|
||
override fun setupLogHandler() { | ||
super.setupLogHandler() | ||
enableLogcatLogging() | ||
} | ||
} |