Initial upload: iptv-android-tv-hermes

This commit is contained in:
Abderrahim-Mouhcine
2026-08-16 19:57:53 +01:00
commit 534d462553
222 changed files with 22516 additions and 0 deletions
@@ -0,0 +1,36 @@
package ma.tkgraph.xtreamtv
import android.app.Application
import timber.log.Timber
/**
* Point d'entrée de l'application iMedia TV+.
* Configure le logging et l'injection de dépendances.
*/
class XtreamApplication : Application() {
/** Container d'injection de dépendances (manual DI). */
lateinit var appContainer: AppContainer
private set
override fun onCreate() {
super.onCreate()
instance = this
appContainer = AppContainer(this)
initLogging()
}
private fun initLogging() {
if (BuildConfig.ENABLE_LOGGING) {
Timber.plant(Timber.DebugTree())
} else {
// En production : Crashlytics tree (à configurer)
// Timber.plant(CrashReportingTree())
}
}
companion object {
lateinit var instance: XtreamApplication
private set
}
}