I am managing the activity or inactivity of a function in build gradle in fastlane.
Because when sending a version from fastlane, this function prevents compiling for other applications.
if (project.rootProject.file('dev.props').exists()){
def devProps = new Properties()
devProps.load(project.rootProject.file('dev.props').newDataInputStream())
def currentDevFlavor = devProps.DEV_FLAVOR
android.variantFilter { variant ->
def flavorName = variant.getFlavors().get(0).name
if(currentDevFlavor && flavorName != currentDevFlavor) {
variant.setIgnore(true)
}
}
}
Is there a way to do this?
sorry for my English level