mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Android launcher now Kotlin, app should be recognized as Game
This commit is contained in:
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