mirror of https://github.com/auygun/kaliber.git
Workaround for what seems to be a bug in the Android Gradle plugin
Error: Could not determine the dependencies of task ':app:lintVitalReportDemoAllArchsRelease'. > Could not create task ':app:lintVitalAnalyzeDemoAllArchsRelease'. > No such property: productFlavors for class: org.gradle.api.internal.provider.DefaultProperty
This commit is contained in:
parent
f75a469e38
commit
5e80aa1a04
|
@ -193,7 +193,7 @@ tasks.configureEach { task ->
|
||||||
|
|
||||||
def match = task.name =~ /^merge/ + variantPattern + /JniLibFolders$/
|
def match = task.name =~ /^merge/ + variantPattern + /JniLibFolders$/
|
||||||
if (match) {
|
if (match) {
|
||||||
android.productFlavors.find { arch ->
|
utils.project.android.productFlavors.find { arch ->
|
||||||
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
||||||
// Depends on each arch type for multi-arch build flavors.
|
// Depends on each arch type for multi-arch build flavors.
|
||||||
arch.ndk.abiFilters.each { abi ->
|
arch.ndk.abiFilters.each { abi ->
|
||||||
|
@ -206,7 +206,7 @@ tasks.configureEach { task ->
|
||||||
}
|
}
|
||||||
match = task.name =~ /^generate/ + variantPattern + /Assets$/
|
match = task.name =~ /^generate/ + variantPattern + /Assets$/
|
||||||
if (match) {
|
if (match) {
|
||||||
android.productFlavors.find { arch ->
|
utils.project.android.productFlavors.find { arch ->
|
||||||
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
||||||
// Depends on each arch type for multi-arch build flavors.
|
// Depends on each arch type for multi-arch build flavors.
|
||||||
arch.ndk.abiFilters.each { abi ->
|
arch.ndk.abiFilters.each { abi ->
|
||||||
|
@ -219,7 +219,7 @@ tasks.configureEach { task ->
|
||||||
}
|
}
|
||||||
match = task.name =~ /^lintVitalAnalyze/ + variantPattern + /$/
|
match = task.name =~ /^lintVitalAnalyze/ + variantPattern + /$/
|
||||||
if (match) {
|
if (match) {
|
||||||
android.productFlavors.find { arch ->
|
utils.project.android.productFlavors.find { arch ->
|
||||||
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
if (arch.dimension == 'arch' && arch.name.capitalize() == match.group(2)) {
|
||||||
// Depends on each arch type for multi-arch build flavors.
|
// Depends on each arch type for multi-arch build flavors.
|
||||||
arch.ndk.abiFilters.each { abi ->
|
arch.ndk.abiFilters.each { abi ->
|
||||||
|
|
Loading…
Reference in New Issue