I\'m building a gradle plugin that adds a new task for every application variant. This new task needs the package name of the application variant.
This is my current cod
This will handle nullable applicationIdSuffix for you:
applicationIdSuffix
android.applicationVariants.all { variant -> def applicationId = [variant.mergedFlavor.applicationId, variant.buildType.applicationIdSuffix].findAll().join() println applicationId }