Revert "Android launcher now Kotlin, app should be recognized as Game"

This reverts commit 8bdad4c38d.
This commit is contained in:
Yair Morgenstern 2019-11-27 20:38:23 +02:00
parent 8232ca3aee
commit 127bafdbc6
3 changed files with 20 additions and 17 deletions

View file

@ -10,7 +10,6 @@
android:allowBackup="true"
android:icon="@drawable/uncivicon2"
android:label="@string/app_name"
android:isGame="true"
android:theme="@style/GdxTheme" >
<activity
android:name="com.unciv.app.AndroidLauncher"

View file

@ -0,0 +1,20 @@
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;
public class AndroidLauncher extends AndroidApplication {
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
String version = BuildConfig.VERSION_NAME;
config.useImmersiveMode=true;
initialize(new UncivGame(version), config);
}
}

View file

@ -1,16 +0,0 @@
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)
}
}