Add crash reporting controller and email sending on android (#1509)

This commit is contained in:
Vladimir Tanakov
2019-12-23 23:12:35 +03:00
committed by Yair Morgenstern
parent 74dab9da63
commit 25a3467cb3
26 changed files with 189 additions and 33 deletions

View File

@ -8,9 +8,8 @@ import com.unciv.UncivGame
class AndroidLauncher : AndroidApplication() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val config = AndroidApplicationConfiguration()
val version = BuildConfig.VERSION_NAME
config.useImmersiveMode = true
initialize(UncivGame(version), config)
val config = AndroidApplicationConfiguration().apply { useImmersiveMode = true }
val game = UncivGame(BuildConfig.VERSION_NAME, UncivCrashReportSender(this))
initialize(game, config)
}
}