mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
all codes are writen in Kotlin (#1452)
This commit is contained in:

committed by
Yair Morgenstern

parent
5d75c3d65e
commit
e937ea0af1
16
android/src/com/unciv/app/AndroidLauncher.kt
Normal file
16
android/src/com/unciv/app/AndroidLauncher.kt
Normal file
@ -0,0 +1,16 @@
|
||||
package com.unciv.app
|
||||
|
||||
import android.os.Bundle
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user