Adding permission setup into build file