mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
26 lines
640 B
Kotlin
26 lines
640 B
Kotlin
package su.xash.engine
|
|
|
|
import android.app.Application
|
|
import android.content.Context
|
|
import android.os.StrictMode
|
|
|
|
class MainApplication : Application() {
|
|
override fun attachBaseContext(base: Context?) {
|
|
super.attachBaseContext(base)
|
|
|
|
if (!BuildConfig.DEBUG) {
|
|
// initAcra {
|
|
// buildConfigClass = BuildConfig::class.java
|
|
// reportFormat = StringFormat.JSON
|
|
//
|
|
// httpSender {
|
|
// uri = "http://bodis.pp.ua:5000/report"
|
|
// }
|
|
// }
|
|
} else {
|
|
// enable strict mode to detect memory leaks etc.
|
|
StrictMode.enableDefaults();
|
|
}
|
|
}
|
|
}
|