Testing variant of app with different applicationId #1505
Unanswered
felixwiemuth
asked this question in
Technical Discussion
Replies: 1 comment
-
|
I found the places where one has to make further changes, all in
Applying these changes to the codebase, it really needs a single difference between development and release/other branches for having a different application ID, and this is the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To be able to test a development version of an app on a device where a release version is already installed, in my projects I use different application IDs on the main and development branches. It is usually enough to simply add a suffix, e.g. ".dev" to
applicationIdin the app'sbuild.gradle.However, it does not seem to work for this app: changing
applicationId = "org.isoron.uhabits.dev"inuhabits-android/build.gradle.ktsand then trying to run the build on a device where the release version (F-Droid) of the app is already installed gives the following error in AndroidStudio:Where is that provider name defined / at what other places is the application ID mentioned and has to be changed? (This shouldn't have anything to do with the package name in
AndroidManifest.xml, which can be removed and replaced bynamespace = "org.isoron.uhabits"inbuild.gradle).Would it be an option to apply this approach in this repository, i.e. have the dev branch permanently change the application ID to have a ".dev" suffix? (If one commits this on the dev branch, one can have another branch
dev-stagingor so where this is removed again and from where one merges into release branches; or one always merges the commit which removes the suffix when creating a release branch.)Beta Was this translation helpful? Give feedback.
All reactions