Open Bug 1964437 Opened 17 days ago Updated 16 days ago

Specify app bundle name in mozconfig for Android

Categories

(Firefox Build System :: Android Studio and Gradle Integration, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: jonalmeida, Unassigned)

Details

Sometimes developers want to have multiple versions of a debug build for Android and this can be a pain when you want to build and compare different things because there are a limited number of app IDs we can use today - release, beta, nightly, debug - all of which do slightly different things so are not useful for all kinds of comparisons.

There was a time when we used whoami for local debug builds and if my memory serves correctly, we had the ability to do this for any name too if specified, but I believe we lost this ability during the fennec-fenix migration.

We should add this again and possibly share the same mozconfig property that desktop probably uses.

Sure, I'd take a patch for this. It used to be that ANDROID_PACKAGE_NAME mattered a lot, but now it matters almost not at all. In fact, looking at https://searchfox.org/mozilla-central/search?q=ANDROID_PACKAGE_NAME&path=&case=false&regexp=false, we should stop pretending we know it at build time and remove ANDROID_PACKAGE_NAME entirely; it needs to be found dynamically, generally, by interrogating environment variable MOZ_ANDROID_PACKAGE_NAME, which is set pretty early.

So after cleaning up that cruft (and fixing up the few uses that should be dynamic), then we can "just" do this at the Gradle layer.

You need to log in before you can comment on or make changes to this bug.