多维构建风格中的不同签名配置

Мак*_*люк 5 android android-productflavors android-build-flavors android-flavors apk-signing

小例子将描述这种情况:

flavorDimensions 'shape', 'api'

productFlavors {
        fruit {
             dimension "shape"
        }

        vegtable {
             dimension "shape"
        }

        production {
             dimension "api"
        }

        development {
             dimension "api"
        }
}
Run Code Online (Sandbox Code Playgroud)

任务: 我需要为fruitProductionfruitDevelopment风格保留不同的签名配置。

我研究了 gradle 文档,但没有找到合适的任务,可以覆盖特殊风格的配置。