korlibs / korge

KorGE Game Engine. Multiplatform Kotlin Game Engine
https://korge.org/
Other
2.55k stars 125 forks source link

Support specifying a path to an existing AndroidManifest.xml file #1999

Open yvolk opened 1 year ago

yvolk commented 1 year ago

Hello @soywiz. Thanks for your great Game engine. I'm using it for my Open Source 2048 game and I recently updated it to the latest KorGe builds...

I could even technically customize AndroidManifest.xml as I need, but current approach with several "injection points" into auto-generated AndroidManifest.xml file is ugly. Please see how I managed to have my own custom MyMainActivity instead of auto-generated one: https://github.com/andstatus/game2048/blob/c63b7358cb82c9282695148e0a76a395ec5b057a/build.gradle.kts#L44

Please allow to configure a path to a complete AndroidManifest.xml file, and in a case that custom AndroidManifest.xml file exists:

PS: And I do have another reason to have my static AndroidManifest.xml and MainActivity in another folder: to be able to publish my app as a simple "Android app" to F-Droid repository, with its own Gradle build file... (I will need to figure out how to update dependencies there yet...)

soywiz commented 1 year ago

The KorGE plugin generates a standalone Android/iOS apps, and it is not directly modify it. If you want to publish it to Android with a custom activity, shouldn't it better to just include KorGE as a library and skip the KorGE plugin alltogether?

yvolk commented 1 year ago
  1. I like that currently my project is multiplatform. Although currently I use it as a Java app mostly for testing and distribute as Android app only. I hope that some day I will be able to publish Kotlin native app also...
  2. If it's possible, it would be good to have another multiplatform "Hello world" app, where KorGE is a library. So I could simply use it as a template, as I currently use existing Hello World during my upgrades.