Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple Android custom build export directories #5212

Closed
novalis opened this issue Aug 19, 2022 · 1 comment
Closed

Add support for multiple Android custom build export directories #5212

novalis opened this issue Aug 19, 2022 · 1 comment

Comments

@novalis
Copy link

novalis commented Aug 19, 2022

Describe the project you are working on

A series of small mobile-first games: the first one, Surfwords, is available now.

Describe the problem or limitation you are having in your project

I want to have two different Android exports (using custom templates):

One has a "Unique name" of com.surfwords.surfwords and the other of com.surfwords.surfwordstest. I want this so that I can have both the release version and the testing version installed at the same time on my phone. I also want them to have different "Name" fields (so that I can tell which one I'm tapping to run!). Unfortunately, there's only one "android" subdirectory in my Godot project, so whichever one I've exported last overwrites what the other one has done. This is annoying, since some of the files under android/ are under version control (and I don't know which ones are supposed to be and which ones aren't).

Describe the feature / enhancement and how it helps to overcome the problem or limitation

If it were possible to have two different android directories, one per export, that would make my life simpler.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

The directory would be just another field in the android export screen

If this enhancement will not be used often, can it be worked around with a few lines of script?

Of course, I could have different git branches and merge frequently, or maybe it turns out that everything that gets overwritten shouldn't go into version control -- but the gitignore functionality for Android doesn't seem to be quite there yet, per this comment -- and the gitignore linked from that comment wouldn't work for me, because my build.gradle file has custom stuff to work around Play Games Services v2 badness.

Is there a reason why this should be core and not an add-on in the asset library?

The android path seems to be controlled by core Godot; I'm not sure an add-on could easily fix this, and it's something that I would imagine every Android developer would want.

@Calinou Calinou changed the title Multiple Android export directories Add support for multiple Android custom build export directories Aug 19, 2022
@m4gr3d
Copy link

m4gr3d commented Jun 23, 2024

Fixed by godotengine/godot#88297

@m4gr3d m4gr3d closed this as completed Jun 23, 2024
@Calinou Calinou added this to the 4.3 milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants