I want to add custom fields in local.properties
like
debug.username=test123
debug.password=abcd1234
can add .properties
files in assets folder and read that easily.
Resources resources = context.getResources();
AssetManager assetManager = resources.getAssets();
Properties properties = null;
InputStream inputStream = assetManager.open(fileName);
properties = new Properties();
properties.load(inputStream);
But don't want to do this.
As i want every team member of our to use local.properties
to specify there custom attribute. which is not the part of version control system.
So how to read local.properties
placed in the root folder of gradle based android project in java files at runtime?