I would like to have multiple property files checked in to my project that each define the same properties but for different environments. For instance, a development one and an operational one that each point to a different server.
Ex. myapp.properties.dev
-> server.host=1.2.3.4
-> server.port=8080
myapp.properties.ops
-> server.host=5.6.7.8
-> server.port=8081
I would like to have some way when building my android project to an apk to specify which property file to include and rename it to just myapp.properties.
How can I achieve this?
Is there a more android'esk way of doing this?
Thanks
Ex. myapp.properties.dev
-> server.host=1.2.3.4
-> server.port=8080
myapp.properties.ops
-> server.host=5.6.7.8
-> server.port=8081
I would like to have some way when building my android project to an apk to specify which property file to include and rename it to just myapp.properties.
How can I achieve this?
Is there a more android'esk way of doing this?
Thanks