Search code examples
androidandroid-manifestplaceholder

Access manifest placeholder values programmatically in code Android


I am using some manifest place holder values. As per our new requirement, I have to programmatically access those values from my code. Is there any way to achieve it?

manifestPlaceholders = [
    host_name: "dev.com",
]

Solution

  • I couldn't find a way to access manifest place holder values programmatically. I had to put the same values in buildConfigField