Closed simpleton closed 8 years ago
You can get packageName by applicationId:
andResGuard {
def packageName = android.defaultConfig.applicationId
whiteList = [
packageName + ".R.drawable.icon"
]
}
the defaultConfig is not always right, it need better solutions!
Read 'applicationId' from variant