Как поместить строку в Gradle File и Acce на это 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