korge icon indicating copy to clipboard operation
korge copied to clipboard

Support specifying a path to an existing AndroidManifest.xml file

Open yvolk opened this issue 1 year ago • 2 comments

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:

  • use the provided AndroidManifest.xml instead
  • skip generation of MainActivity.kt (assuming that provided AndroidManifest.xml takes care of it)

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...)

yvolk avatar Oct 29 '23 16:10 yvolk

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?

soywiz avatar Nov 03 '23 13:11 soywiz

  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.

yvolk avatar Nov 03 '23 18:11 yvolk