I have some secret keys which I want to store in a File, define the path in the environment variable and then get the values inside it in build.gradle.
I have a file - somekeys and there are 2 3 key-value pair - (Key1 - value 1) (Key2 - value 2) (key3 - value 3)
I will define the path of the file in the system variable. SOME_KEY and its path.
I get the file inside the gradle using - System.getenv("SOME_KEY")
Now that I have the file How to extract the value from the keys inside the file.
And then pass it to the build(release and debug) type keys like this -
resValue "string", "fc_app_id", "getting the key from the file in environment variable".