Comment mettre une chaîne dans un fichier gradle et accéder à It Android Studio

// its very useful to put your secret string, api in gradle file to protect it
// by using below code you can put your string Android gradle
// then access to that string by usual way:(Ex) R.string.app_name or @string/app_name
android {
    buildTypes {
        debug{
            resValue "string", "app_name", "My App Name Debug"
        }
        release {
            resValue "string", "app_name", "My App Name"
        }
    }
}
Mohamed Boumlyk