Extending android tauri configuration for multiple apps #12681
-
While searching for a way to handle building of different apps from the same codebase / repo, based on different environments (dev, stage, production) I stumbled on this section in the official guide. It gives an example of changing the Relevant part of the main config: What I put in the extended config: The command I'm running : The problem is that running this script for my android build fails, as it seems the initialised tauri app just can't handle changes in the I get the following error: And it's true, that path doesn't exist. The tauri app during So I'm a bit confused. Based on what I understand so far on tauri, this example in the guilde just can't work for android. Am I missing something obvious? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For this to work you'll have to delete the gen/android dir and re-run android init as the error suggests. If you don't modify files in there for any native features this isn't really a problem, i know many that even gitignore that folder 🤷 I hope we can improve the whole situation here (iirc we wanted some kind of patch system so nobody has to commit the gen dir) but for now that's it. |
Beta Was this translation helpful? Give feedback.
For this to work you'll have to delete the gen/android dir and re-run android init as the error suggests. If you don't modify files in there for any native features this isn't really a problem, i know many that even gitignore that folder 🤷 I hope we can improve the whole situation here (iirc we wanted some kind of patch system so nobody has to commit the gen dir) but for now that's it.