Issue
This Content is from Stack Overflow. Question asked by Vahit Keskin
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
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.